* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #EFE9E3;
  overflow: scroll;
}

.banner {
  width: 100%;
  height: 20%;
  background-color: #D9CFC7;
  padding: 15px 20px;
  text-align: right;
  position: fixed;
  top: 0;
  z-index: 10;
  max-height: 60px;
  display: none;
}

.banner h2 {
  color: white;
  font-size: 24px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  margin: 0 10px;
  font-weight: bold;
  position: absolute;
}
  
.banner a {
  color: white;
  font-size: 24px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  margin: 0 10px;
  font-weight: bold;
  text-decoration: none;  
}

.dropdown {
  background-color: #D9CFC7;
  width: 100%;
  height: 20%;
  padding: 0 0;
  text-align: right;
  position: fixed;
  top: 0;
  z-index: 10;
  max-height: 60px;
  font-size: 0;
}

.dropdown h4 {
  color: white;
  font-size: 24px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  margin: 15px 32px;
  font-weight: bold;
  position: absolute;
  float: left;
  transition: transform 0.3s ease;
}
  

.dropdownlink {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-weight: bold;
  padding: 0;
  display: inline-block;
  margin: 15px 32px;
  width: 110px;
}

.dropdown a h4:hover {
  transform: scale(1.15);
}

.dropdown ul > a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-weight: bold;
  padding: 15px;
  display: inline-block;
  text-align: left;
}

.dropdown ul li ul li > a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-weight: bold;
  padding: 15px;
  display:block;
  text-align: left;
}

.dropdown ul {
  display: inline;
  margin: 0;
  padding: 0;
}

.dropdown ul li {
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown ul li a {
  transition: transform 0.3s ease;
}

.dropdown ul li a:hover {
  transform: scale(1.15);
}

.dropdown ul li:hover {background: #433732;}
.dropdown ul li:hover {transform: scale(1.05);}
.dropdown ul li:hover ul {display: block;}
.dropdown ul li ul {
  position: absolute;
  width: 174px;
  display: none;
  opacity: 0.95;
}

.dropdown ul li ul li { 
  background: #555; 
  display: block;
  font-size: 14px;
}

.dropdown ul li ul li a {display:block !important; font-size: 14px;} 
.dropdown ul li ul li:hover {background: #433732;}


.intro {
  padding: 40px 30px 0 30px;
  margin-top: 80px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  background-image: url("./kaylynnbg.jpg");
  display: flex;
  justify-content: space-around;
  position: relative;
}

.intro img {
  position: relative;
  top: 0;
  width: 50%;        
  max-width: 500px;  
  min-width: 200px; 
  height: auto;  
}

.intro p {
  max-width: 400px;
  padding: 24px 30px;
  margin-bottom: 60px;
  margin-right: 10px;
  text-align: center;
  color: #433732;
  font-size: 18px;
  font-family: "Lucida Bright", Georgia, serif;  
  background-color: #F9F8F6;
  border-radius: 40px;
  transition: transform 0.3s ease;
}

.intro p:hover {
  transform: scale(1.05);
  box-shadow: 10px 10px 10px rgba(67, 55, 50, 0.3);
}

.aboutme {
  margin: 40px auto;
  width: 90%;
  background-color: #F9F6F4;
  color: #433732;
  font-size: 20px;
  padding: 40px 50px;
  font-family: "Lucida Bright", Georgia, serif;
  border-radius: 40px;
}

h2 {
  font-size: 60px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  color: #433732;
}

.info {
  margin: 20px;
  padding: 0 40px 30px 40px;
}

.info table, th, td {
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border: 8px solid #EFE9E3;
  border-collapse: collapse;
  font-size: 24px;  
  line-height: 2;
  padding: 10px 20px;
  font-family: "Arial", Gadget, Arial, sans-serif;
  font-weight: bold;
  background-color: white;
  color: #B4A599;
}

.info th {
  width: 30%;
  text-align: left;
  font-family: "Arial Black", Gadget, Arial, sans-serif;

}

.info td {
  text-align: right;
}

.info td:hover, th:hover {
  background-color: #433732;
  color: white;
  }

.more {
  margin-top: 40px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  background-color: #F9F6F4;
  padding: 40px 40px;
}

.more h2 {
  font-size: 40px;
  text-align: center;
}

#morecontainer {
  display: flex;
  justify-content: space-between;
  padding: 40px 60px 0px 60px;
}

.smallercontainer {
  margin: 0 40px;
  text-align: center;
}

.smallercontainer p {
  transition: transform 0.3s ease;
}

.smallercontainer p:hover {
  cursor: pointer;
  transform: scale(1.15);
}

  @keyframes moreAnimation {
  0%   {background-image: url("./homeobo.jpg")}
  40%  {background-image: url("./homepianocomp.jpg")}
  60%  {background-image: url("./homecans.jpg")}
  80% {background-image: url("./homepenguin.jpg")}
  100% {background-image: url("./homerock.jpg")}
}

#homehobbies {
  width: 300px;
  height: 300px;
  background-size: cover;
  animation-name: moreAnimation;
  animation-duration: 30s;
  animation-iteration-count: infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

#homehobbies:hover {
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 10px 10px rgba(67, 55, 50, 0.6);
}

  @keyframes moreAnimation2 {
  0%   {background-image: url("./hometrack.jpg")}
  33%  {background-image: url("./homejumpi.jpg")}
  66%  {background-image: url("./homescratch.jpg")}
  100%  {background-image: url("./homepikachu.jpg")}

}

#homeprojects {
  width: 300px;
  height: 300px;
  background-size: cover;
  animation-name: moreAnimation2;
  animation-duration: 24s;
  animation-iteration-count: infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}


#homeprojects:hover {
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 10px 10px rgba(67, 55, 50, 0.6);
}

.smallercontainer p {
  font-size: 30px;
  font-family: "Arial", Gadget, Arial, sans-serif;
  color: #433732;
  font-weight: bold;
  line-height: 2;
  text-decoration: none;
  display: inline-block;
}

h1 {
  font-size: 60px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  color: #433732;
  text-align: center;
}
  
.bgcontainer {
  padding: 40px 30px 30px 30px;
  margin-top: 120px;
  margin-bottom: 60px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  position: relative;
  background-color: #F9F6F4;
  border-radius: 40px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
}


.bgcontainer p, ol > li {
  color: #433732;
  font-size: 20px;
  text-align: center;
  font-family: "Lucida Bright", Georgia, serif;
  margin-top: 20px;
  max-width: 90%;
}

.row {
  display: flex;
  margin: 50px ;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.row .summary p, h3 {
  color: #433732;
  margin: 0 0;
  font-size: 18px;
  text-align: left;
  font-family: "Lucida Bright", Georgia, serif;
  max-width: 90%;
}

.bgcontainer .row .summary h3 {
  font-size: 24px;
  line-height: 1.8;
}

.row img {
  display: block;
  width: 250px;
  height: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.summary h3 {
  display: inline-block; 
  transition: transform 0.3s ease;
}

.summary h3:hover {
  cursor: pointer;
  transform: scale(1.15);
}

.row img:hover {
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 10px 10px rgba(67, 55, 50, 0.6);
}

.row > a {
  flex: 0 0 200px;
}

#moozik {
  border-radius: 50%;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* This is the 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 20px; /* To match your image style */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lists {
  margin: 10px 20px 10px 20px;
  display: flex;
  align-content: space-between;
  justify-content: space-around;
  flex-wrap: wrap;
}

.lists br {
  line-height: 0.6;
}

.lists h5 {
  font-size: 30px;
  font-family: "Arial", Gadget, Arial, sans-serif;
  color: #433732;
  font-weight: bold;
  line-height: 2;
}

.lists .row2 li {
  color: #433732;
  font-size: 16px;
  text-align: left;
  font-family: "Lucida Bright", Georgia, serif;
}

.row2 {
  margin: 20px 20px;
}

.gallery { 
  width: 95%;
  margin-bottom: 40px;
}

.gallery h2 {
  text-align: center;
  line-height: 2;
}

.pics {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-content: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.pics img {
  width: 180px;
  height: auto;
  border-radius: 5px;
}
  
.pics.musichobby {
  max-height: 2400px;
}

.pics.cans {
  max-height: 900px;
}  

.pics.cans img {
  width: 140px;
}

.pics.crochet {
  max-height: 800px;
  
}

.pics.crochet img {
  object-fit: cover;
  height: 180px;
  width: 165px;
}

.pics.boulder {
  max-height: 600px;
}

.pics.boulder img {
  width: 220px;
  height: auto;
}

.vids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 50px;
}

.vids iframe {
  width: 400px;
  height: 225px;
}

.bgcontainer ol > li {
  text-align: left;
}

.bgcontainer ol {
  width: 800px;
}
  
/* --- COMPLETE MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {

  /* 1. Fix the Header (Image & Welcome Text) */
  .intro {
    flex-direction: column-reverse; /* Stack text above image */
    align-items: center;
    margin-top: 80px; /* Space for the fixed nav */
    margin-bottom: 0;
    padding: 20px 20px 0 20px;
    width: 90%;
  }

  .intro img {
    width: 90%;      /* Profile pic looks better larger on mobile */
    max-width: 300px;
    margin-bottom: 0;
  }

  .intro p {
    max-width: 100%;
    margin-right: 0;
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  
  .aboutme {
    width: 90%;
    margin: 40px auto;
    padding: 20px 30px;
  }

/* 2. Fix the Table (Basic Info) */
  .info {
    padding: 0; /* Remove extra padding that might push the table right */
    width: 90%;
    margin: 0 auto;
    
  }

  .info table {
    width: 90%;          /* The table itself is now 90% of the screen */
    margin: 0 auto 20px auto;   /* 'auto' left/right centers the table container */
    display: table;      /* Ensures it behaves like a table, not a block */
    table-layout: auto;  /* Allows columns to adjust to text size */
  }

  .info th {
    width: 40%;          /* Label column takes 40% of the table */
    text-align: left;
    font-size: 16px;
    padding: 10px;
  }

  .info td {
    width: 60%;          /* Content column takes 60% of the table */
    text-align: right;
    font-size: 16px;
    padding: 10px;
    line-height: 1.2;
    word-break: break-word; /* Prevents long school names from pushing the table wide */
  }

  /* 3. Fix the "Check out" Animation Boxes */
  #morecontainer {
    flex-direction: column; /* Stack Hobbies box over Projects box */
    align-items: center;
    padding: 20px;
    gap: 40px;
  }

  .smallercontainer {
    margin: 0;
  }

  #homehobbies, #homeprojects {
    width: 250px; /* Slightly smaller for mobile screens */
    height: 250px;
    margin: 0 auto;
  }
  
  .smallercontainer p {
    font-size: 24px;
  }

  /* 4. General Heading Fixes */
  h2 {
    font-size: 32px;
    text-align: center;
  }
  
  /* 1. Main Container Fixes */
  .bgcontainer {
    width: 90%;
    margin: 85px auto 20px auto; 
    padding: 20px 15px;
    height: auto;
    min-height: 100vh;
  }


  /* 2. Text Scaling */
  h1 { font-size: 36px; }
  .bgcontainer p { font-size: 14px; line-height: 1.5; }
  
  .bgcontainer a { margin-left: 15px; }

  /* 3. Hobby Rows (Image on top, Text below) */
  .row {
    flex-direction: column;
    margin: 30px 0;
    gap: 20px;
    align-items: center;
  }
  .row .summary p, .row .summary h3 { text-align: justify; font-size: 14px; line-height: 1.5; margin: 0 auto;}
  .row img { width: 180px; height: 180px; }

  /* 4. Navigation Fixes */
  .dropdown {
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
  }

  .dropdown h4 {
    position: static;
    margin: 0 0;
    font-size: 20px;
    text-align: left;
    padding: 8px 0;
  }

  /* Target the top-level list */
  .dropdown > ul {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 5px;
    padding: 0;
  }

  .dropdownlink {
    font-size: 16px;
    width: auto;
    margin: auto 0;
    padding: 8px 12px;
  }

  /* --- RESTORE SUB-MENU HOVER LOGIC --- */
  
  /* Keep nested lists hidden by default on mobile */
  ul li ul {
    position: absolute;
    display: none; /* This was being overridden */
    top: 100%;
    left: 0;
    width: 150px;
    z-index: 20;
    background: #555;
  }

  /* Show nested list when parent LI is hovered */
  ul li:hover ul {
    display: block; /* Restores the hover functionality */
  }

  /* Ensure nested links look right on mobile */
  ul li ul li a {
    display: block !important;
    padding: 10px;
    font-size: 14px;
    text-align: left;
  }
  
  /* --- FULL MOBILE CONSOLIDATED FIXES --- */

  /* 1. Lists: Prevent overflow */
  .lists {
    flex-direction: column;
    width: 100%;
    margin: 0;
  }

  .row2 {
    width: 100%;
    margin: 10px 0;
    padding: 0 5px;
    box-sizing: border-box;
  }

  .bgcontainer ol {
    width: 100%; 
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* 2. YouTube: Large (98%) & No Radius */
  .vids {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .vids iframe {
    width: 98% !important;
    max-width: none !important;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 10px auto;
    display: block;
    border-radius: 0 !important;
  }

  /* 3. Desmos: Fits inside & Shorter */
  iframe[src*="desmos.com"] {
    width: 100% !important; 
    margin-left: 0;         
    height: 250px !important; 
  }

  iframe[src*="scratch.mit.edu"] {
    width: 100%;
    height: 320px;
  }

  /* 4. Galleries: Specific Layouts per Page */

  /* MUSIC & CROCHET: Staggered Columns (Masonry) */
  .pics.musichobby, 
  .pics.crochet {
    display: block; 
    column-count: 2;
    column-gap: 10px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    max-height: none;
  }

  .pics.musichobby img, 
  .pics.crochet img {
    width: 100%;
    height: auto;
    display: block;
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 5px;
  }

  /* CANS: Row-Wrap Logic (Keeps it from spilling) */
  
  .bgcontainer.cans.yeah {
    padding-bottom: 10px;
  }
  
  .pics.cans {
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    min-height: 2230px;
  }
  
  .pics.cans img {
    width: 42%; 
    height: auto;
    border-radius: 5px;
  }

.bgcontainer.bould {
  height: 1760px;
}

.gallery .pics.boulder img {
  border-radius: 5px;
  width: 200px;
}

.gallery .pics.boulder {
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 10px;
}

.bgcontainer li {
  font-size: 16px;
}

  /* 5. Summary Rows (Index/Projects page) */
  .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .row img {
    width: 180px;
    height: 180px;
    margin: 15px 0;
  }


}
/*
justify-content = flex-start, flex-end, center, space-between, space-around, space-evenly
align-items = flex-start, flex-end, center, stretch, baseline
align-content = flex-start, flex-end, center, space-between, space-around, space-evenly, stretch
*/

