/* Personal Baseball Instructor My Story Page CSS */
*{box-sizing: border-box}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.background{
    position: relative;
    z-index: 1;
}

/* Background image applied to body */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images_and_videos/background-image2.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: blur(3px);
    opacity: 0.2;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav{
    position: relative;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color:rgba(0,0,0,0.5);
}

nav, nav ul, nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hamburger button styles */
.hamburger {
  width: 40px;      /* wider than current 25px */
  height: 40px;     /* taller than current 20px */
  padding: 8px;     /* optional, to add some inner spacing */
  cursor: pointer;
  position: absolute;
  top: 20px;
  left: 15px;
  z-index: 1001;
  display: none;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid white;
  border-radius: 6px;
  box-sizing: border-box;

}


.hamburger .bar {
  height: 3px;
  background: white;
  width: 24px;
  margin: 3px 0;
  transition: 0.4s;
}

.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.hamburger:hover{
  transform: scale(1.2);
  transition: transform 0.4s ease-in-out;
  border-color: white;
}

nav li.home{
  float: left;
}

nav li.MyStory{
    font-style: italic;
}

li {
    float: right;
}
  
li a {
    display: block;
    color: white;
    text-align: center;
    padding: 30px 12px;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 10px;
    text-transform: uppercase;
    transition: transform 0.4s ease, color 0.4s ease;
}
  
li a:hover:not(.active) {
    transform: scale(1.2);
    color: black;
}

li.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: visible;
    z-index: 5;
}

li.logo img {
    height: 100px;
    display: block;
}

/* Words inside logo */
.pop-word {
    position: absolute;
    color: white(255, 255, 255);
    font-weight: bold;
    font-size: 8px;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
    z-index: 10; /* ensure words appear above logo */
}

/* Pin words slightly inside the corners */
.top-left { 
  top: 35%; 
  left: -15% 
}
.top-right { 
  top: 35%; 
  right: -15%; 
}
.bottom-left { 
  bottom: 35%; 
  left: 0%; 
}
.bottom-right { 
  bottom: 35%; 
  right: -80%; 
}


.pop-word.show {
    opacity: 1;
    transform: scale(1.5);
}

h1{
     color: white;
  text-align: center;
  text-shadow:
    /* Black outline around main text */
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black,

    /* "Shadow" layer (2px offset, white text duplicated with black outline) */
    2px 2px 0 black,
    1px 1px 0 black,
    3px 3px 0 black;

    text-transform: uppercase;
}

.quoteContainer {
    text-align: center;
}

.quoteContainer img{
    
    height: 400px;
    width: 60%;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInBox 0.8s forwards;
    }
    @keyframes fadeInBox {
    to {
        opacity: 1;
        transform: translateY(0);
        }
    }


p.a{
    text-align: center;
    line-height: 2;
    padding-left: 50px;
    padding-right: 50px;
    margin-top: -10px;
    font-style: italic;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInBox 2s forwards;
    }
    @keyframes fadeInBox {
    to {
        opacity: 1;
        transform: translateY(0);
        }
    }

/* Fade-in base state */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When visible */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* First paragraph */
.containerYoungin{
    width: 100%;
}

.containerYoungin p{
    
    line-height: 3.5;
    text-align: justify;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: 35px;
    margin-left: 25px;
    
}

.containerYoungin img{
    margin-top: 25px;
    max-width: 325px;
    height: 400px;
    padding-left: 50px;
    float: left;
    margin-right: 20px;
    
}

/* Second Paragraph */
.containerHS{
    width: 100%;
  
   
}

.containerHS p{
    margin-left: 25px;
    margin-right: 25px;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 3.5;
    text-align: justify;
    

}

.containerHS img{
    margin-top: 25px;
    max-width: 600px;
    height: 400px;
    padding-right: 50px;
    float: right;
    margin-left: 20px;

}

/* Third Paragraph */
.containerCollege{
    width: 100%;
    

}

.containerCollege p{
    margin-left: 25px;
    margin-right: 30px;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 3.5;
    text-align: justify;
}

.containerCollege img{
    margin-top: 25px;
    max-width: 350px;
    height: 400px;
    padding-left: 50px;
    float: left;
    margin-right: 20px;

}

/* Fourth Paragraph */
.containerMan{
    width: 100%;
    float: right;
    vertical-align: top;

}

.containerMan p{
    margin-left: 25px;
    margin-right: 25px;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 3.5;
    text-align: justify;

}

.containerMan img{
    margin-top: 40px;
    max-width: 600px;
    height: 300px;
    padding-right: 50px;
    float: right;
    margin-left: 20px;
}

/* Fifth Paragraph*/
.containerPro{
    width: 100%;

}

.containerPro p{
    margin-left: 30px;
    margin-right: 25px;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 3.5;
    text-align: justify;
}

.containerPro img{
    margin-top: 25px;
    max-width: 550px;
    height: 300px;
    padding-left: 50px;
    float: left;
    margin-right: 20px;
}
/*Closing Paragraph */
.containerClosing{
    
    width: 100%;
    

}

.containerClosing p{
    
    padding-left: 20px;
    padding-right: 20px;
    line-height: 1.5;
    text-align: center;
}
/* Footer */
.footerBottom{
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    text-align: center;
    font-size: 15px;
    clear: both;
    margin-top: auto;
}

.footerBottom p{
    color: white;
}

.designer{
    text-transform: uppercase;
    font-weight: 400;
}




@media (max-width: 800px){
    nav li.home{
        float: none;
    }
    
    li{
        float: none;
    }

    li a{
    padding: 0px 12px;
  }

  li.logo{
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: fit-content;
    margin: 0 auto;
    
  }

  li.logo img{
    height: 125px;
  }

  .hamburger {
    position: absolute; /* stays on top */
    top: 15px;
    left: 15px;
    z-index: 1001;
    display: flex; /* make sure it shows on mobile */
  }
  
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(-80px);
  pointer-events: none; /* Disable interaction when hidden */

  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* Enable interaction when visible */
}


.mobile-menu li {
    margin: 70px 0; /* adds vertical space between each tab */
}
  nav.mobile-menu-open li.logo img {
    height: 100px;
    
  }

  .mobile-menu li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s;
}

  nav{
    display: block;
    height: auto;

  }


    .quoteContainer img{
        height: 350px;
        width: 80%;
    }
    
    .containerYoungin{
        float: none;
    }

    .containerYoungin p{
        margin-right: 20px;
    }

    .containerYoungin img{
        margin-left: px;
        float: none;
        max-width: 80%;
        height: 500px;
        padding-left: 10%;
        margin-right:0;
        
    }

    .containerHS{
        float: none;
    }

    .containerHS img{
        float: none;
        max-width: 100%;
        padding-right: 0;
        margin-left: 0; 
        height: 350px;
    }

    .containerHS p{
        margin-right: 20px;
    }

    .containerCollege{
        float: none;
    }

    .containerCollege p{
        margin-right: 20px;
    }

    .containerCollege img{
        float: none;
        max-width: 80%;
        padding-left: 10%;
        height: 500px;
        
    }

    .containerMan{
        float: none;
    }

    .containerMan img{
        float: none;
        max-width: 100%;
        padding-right: 0px;
        margin-left: 0px;
    }

    .containerMan p{
        margin-right: 20px;
    }

    .containerPro{
        float: none;
    }

    .containerPro img{
        float: none;
        max-width: 100%;
        max-height: 250px;
        padding-left: 0;
        margin-right: 0;
    }
    .containerPro p{
        margin-right: 20px;
    }
    .bottom-right{
    right: -65%;
    }
    .top-left { 
      top: 35%; 
      left: 0% 
    }

}

@media (max-width: 450px){

    .containerYoungin img{
        max-width: 100%;
        padding-left: 0;
    }

    .containerHS img{
        height: 250px
    }

    .containerCollege img{
        max-width: 100%;
        padding-left: 0;
    }

    .containerMan img{
        height: 225px;
    }
}