/* Personal Baseball Instructor Contact Page CSS */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family:Georgia, 'Times New Roman', Times, serif;
   
}
* {box-sizing:border-box}

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

.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;
}

.message{
    display: none;
}

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;
}

p.a{
    text-align: center;
    font-size: 17px;
    
}

/* Contact Form */
input[type=text], input[type=email], 
input[type=tel], 
input[type=date], 
input[type=time],select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; /* Ensures compatibility across browsers */
    width: 100%;
    padding: 12px;
    border: 1px solid #000000;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
  }
  
  input[type=submit] {
    background-color: #000000ac;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  input[type=submit]:hover {
    background-color: #1414146a;
  }
  
  .contactContainer {
    border-style: solid;
    border-radius: 5px;
    border-color: black;
    background-color: rgba(0,0,0,0.2);
    padding: 20px;
  }

p.b{
    text-align: center;
    padding: 10px;
}

/* Hyperlinks and images 
.InstagramContainer{
 
    text-align: center;
}

.InstagramContainer a p{
    text-align: center;
    color: blue;
  
    text-decoration: underline blue;
}

.InstagramContainer img{
    height: 175px;
    margin-top: 50px;

   
}

/*

.JRContainer{
    float: right;
}

.JRContainer a p{
    text-align: center;
    color: blue;
    margin-right: 250px;
    text-decoration: underline blue;

}

.JRContainer img{
    margin-right: 250px;
    
}

*/

/* 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;

  }
  .bottom-right{
    right: -65%;
  }
  .top-left { 
      top: 35%; 
      left: 0% 
  }
  


}

/*
@media (max-width: 912px){
    .JRContainer img{
        height: 150px;
        margin-right: 100px;
        float: none;
        
    }

    .JRContainer a p{
        margin-right: 100px;
    }

    .InstagramContainer img{
        height: 125px;
        margin-top: 25px;
        margin-left: 100px;
        float: none;
    }

    .InstagramContainer a p{
    margin-left: 100px;
    }
}


@media (max-width: 500px){
    .JRContainer img{
        height: 100px;
        margin-right: 50px;
        float: none;
    }
    .JRContainer a p{
        margin-right: 50px;
    }

    .InstagramContainer img{
        height: 75px;
        margin-top: 20px;
        float: none;
        margin-left: 50px;
    }

    .InstagramContainer a p{
       margin-left: 50px;
    }
}
*/