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

body {
    font-family: "Lexend", sans-serif;
    margin: 0 auto;    
}
html {
    scroll-behavior: smooth;
}
.button {
    padding: .7rem;
    background-color: #F7EA25;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    font-family: 'Lexend';
    border: none;
    transition: .2s all;
    width: 200px;
    margin-left: auto;
    color: #1D1F1C;
}
.button:hover{
    background-color: #dbce20;
}
/* nav start */
#navbar{
    height: 4rem;
    background-color: #F7EA25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1;
    border-bottom: 1px solid #1D1F1C;
}

#navbar img {
margin-left:-1rem;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navlink a{
    text-decoration: none;
    color: #1D1F1C;
    border-bottom: 1px solid transparent;
    transition: .2s all;
}
.navlink a:hover{
    border-bottom: 1px solid #1D1F1C;
}
  
  .menu > li {
    margin: 0 .5rem;

  }
  
  .menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  #menu-toggle {
    display: none;
  }
  
  .menu-button,
  .menu-button::before,
  .menu-button::after {
    display: block;
    background-color: #1D1F1C;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
  }
  
  .menu-button::before {
    content: '';
    margin-top: -8px;
  }
  
  .menu-button::after {
    content: '';
    margin-top: 8px;
  }
  
  #menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
  }
  
  #menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
  }
  
  #menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
  }
  
  @media (max-width: 700px) {
    .menu-button-container {
      display: flex;
    }
    .menu {
      position: absolute;
      top: 0;
      margin-top: 4rem;
      left: 0;
      flex-direction: column;
      width: 100%;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }
    #menu-toggle ~ .menu li {
      height: 0;
      margin: 0;
      padding: 0;
      transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
      font-size: 1.7rem;
    }
    #menu-toggle:checked ~ .menu li {
        height: 2.5em;
      padding: 0.5em;
      transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu > li {
      display: flex;
      justify-content: center;
      margin: 0;
      padding: 0.5em 0;
      width: 100%;
      color: white;
      background-color: #F7EA25;
    }
    
  }


 

/* nav end */
#header {
    height: calc(100vh - 4rem);
    background-image:linear-gradient(to right bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url('assets/hero-image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 4rem;
}

#header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-weight: 900;
    font-size: 4rem;
    text-align:center;
    color: #fff;
    opacity: .8;
    max-width: 100%;
}

@media (max-width:600px) {
    #header h1 {
        font-size: 3rem;
    }
  }
  @media (max-width:400px) {
    #header h1 {
        font-size: 2.5rem;
    }
  }
/* header end */
section {
    text-align: center;
    padding: 5rem;
}
section h2 {
    margin-bottom: 2rem;
    font-size: 3rem;
}
section p {
    font-size: 1.625rem;
    font-weight: 400;
}
#sectionGrowkit .section__paragraph:not(:last-child) {
    margin-bottom: 1rem;
}
#sectionAbout, #sectionGenetics, #sectionFaq, #footer{
    background-color: #F7EA25;
    color: #1D1F1C;
}
#sectionGrowkit, #sectionInstruction, #sectionContact{
    background-color: #1D1F1C;
    color: #F7EA25; 
}
/* genetics start */
#sectionGenetics p:first-of-type{
    margin-bottom: 2rem;
}
.section-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 2rem;
    justify-items: center;
    align-items: center;
    grid-gap: 2rem;    
    margin: 0 auto;
    margin-bottom: 1rem;
    max-width: 80%;
}
.section-items .item {
    height: 350px;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    display: grid;
    justify-items: center;
}
.tooltip {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #1D1F1C;
    color: #F7EA25;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .1s;
    overflow: hidden;
}

.tooltiptext {
    font-size: .9rem;
}
.tooltip:hover, .tooltip:active {
    visibility: visible;
    opacity: .9;
}


.section-items #momo {
    background-image: url(assets/SMS_GoldenTeacher.png);
}
.section-items #ape {
    background-image: url(assets/SMS_ApePipes.png);
}
.section-items #sbm {
    background-image: url(assets/SMS_SBM.png);
}
.section-items #mak {
    background-image: url(assets/SMS_MakShak.png);
}
.section-items #albino {
    background-image: url(assets/SMS_AlbinoMystery.png);
}
.section-items #starry {
    background-image: url(assets/SMS_StarryNightApe.png);
}

@media (max-width:1200px) {
    .section-items {        
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));  
        max-width: 100%;     
    }
    .section-items .item {
        height: 200px;
    }
}

@media(max-width:1000px){
    .tooltiptext {
        font-size: .6rem;
    }
}

@media (max-width:600px) {
    section {
        padding: 3rem;
        padding-top: 5rem;
    }
    section h2 {
        font-size: 2rem;
    }
    section p {
        font-size: 1rem;
    }
    .tooltiptext {
        font-size: .8rem;
    }    
  }

@media (max-width:500px) {
    .section-items {        
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));       
    }
    .section-items .item {
        height: 225px;
    }
    .tooltiptext {
        font-size: .5rem;
    } 
}
@media (max-width:400px) {
    .section-items {        
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));       
    }
    .section-items .item {
        height: 225px;
    }
    .tooltiptext {
        font-size: .6rem;
    } 
}


/* genetics end */

/* instruction start */
#sectionInstruction iframe{
    max-width: 100%;
}
#instruction-list {    
    text-align: left;
    width: 70%;
    margin: 0 auto;
}
.instruction-item {
    margin-bottom: .3rem;
}
/* instruction end */


/* details start */
details {
    text-align: left;
    margin: 0 auto;
    width: 70%;
    cursor: pointer;
    background-color: #1D1F1C;
    color: #F7EA25;
    padding: .5rem;
    border-radius: 5px;
    margin-bottom: .2rem;
}
details p {
    padding-left: 1rem;
    font-size: 1rem;
    margin-bottom: .5rem;
    margin-top: .5rem;
}

@media(max-width:600px) {
    #sectionFaq details {
        width: 100%;
    }
    #sectionFaq summary ,#sectionFaq p{
        font-size: .8rem;
    }
    #sectionFaq p{
        padding-left: .8rem;
    }
}

/* details end */

/* contact */
#sectionContact form {
    display: flex;
    flex-direction: column;
    width: 360px;
    margin: 0 auto;
    margin-top: 2rem;
    max-width: 100%;
}
#sectionContact form p {
    font-size: .625rem;
    margin-bottom: .5rem;
    text-align: left;
}

.form-input {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: .5rem;
    margin-bottom: .5rem;
}
.form-input input, .form-input textarea{
    background-color: #333333;
    color: #F7EA25;
    padding: .5rem;
    font-family: 'Lexend';
}
/* contact */

#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 4rem;
}

#footer img {
    object-fit: contain;
}

#footer #socials {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

#socials .social_link svg {
    width: 30px;
    height: 30px;
}


@media (max-width:400px) {
    body{
        font-size: 65%;
    }
}


#sectionSuccess {
    background-color: #1D1F1C;
    color: #F7EA25;
    height: calc(100vh - 4rem);
}


#scroll-top {
    position: fixed;
    bottom: 4.5rem;
    right: .5rem;
    z-index: 1111;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background-color: #F7EA25;
    cursor: pointer;
}

#scroll-top img{
    width: 100%;
    height: 100%;
}

