/* Global reset */
* {
  border: 0;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: rgb(1, 38, 81);
  box-sizing: border-box;
}
.header {
    display: flex;
    position: fixed;
    /* Changed justify-content for better alignment */
    justify-content: space-between; 
    align-items: center;
    width: 100vw;
    box-sizing: border-box;
    height: 64px;
    background-color: #FFFFFF;
    z-index: 3;
    top: 0;
    padding: 0 20px; /* Added padding */
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    height: 100%;
    color: #5B1ECF;
}
.logo img{
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px; /* Manages space between link group and buttons */
}

.header1,
.header2,
.header3 {
    display: flex;
    align-items: center; /* Vertically align items */
}
.header1{
    display: flex;
    height: 80%;
}

.header2 {
    gap: 27px;
}

.header3 {
    gap: 10px;
    /* Removed margin-left, as space-between on .header handles it */
}

.header31 a {
    display: flex;
    border-radius: 10px;
    padding: 10px;
    font-weight: 500;
}

.header31.ln a {
    background-color: #D8CAFE;
    color: #7132F5;
}

.header31.sp a {
    background-color: #5B1ECF;
    color: #FFFFFF;
}
.headerx{
    display: none;
}
/* --- Hamburger Menu & Checkbox Styles --- */
.nav-toggle {
    display: none; /* Hide the checkbox */
}

.hamburger-menu {
    display: none; /* Hide hamburger on desktop */
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}


.ibox1{
    display: flex;
    background-color: #F6F5F9;
    height: 80vh;
    justify-content: center;
    align-items: end;
    padding: 0 5vw;
    width: 100vw;
}
.ibox11{
    display: flex;
    height: 80%;
    gap: 40px;
}
.ibox111{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
    box-sizing: border-box;
    height: 60%;
}
.ibox111 .signup{
    display: flex;
    width: 100%;
}
.ibox111 .signup form{
    width: 100%;
}
.ibox111 .signup input{
    padding: 10px 15px;
}
.ibox111 h1{
    font-size: 3em;
}
.inp1{
    box-sizing: border-box;
    width: 69%;
}
.inp2{
    width: 29%;
    padding: 13px 30px;
    background-color: #7132F5;
    color: #ffffff;
}
.ibox112{
    display: flex;
    height: 100%;
}
.ibox112 img{
    height: 100%;
}


.ibox2{
    display: flex;
    justify-content: center;
    width: 100vw;
    padding: 50px 7vw;
    background: linear-gradient(90deg,#e9e5f7 0%, #F8F7FC 70%, #c0aee9 100%);
}
.ibox2 h1,
.ibox2 h2,
.ibox2 p{
    color: black;
}

.ibox21{
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 90%;
}
.ibox211{
    display: flex;
    text-align: center;
    justify-content: space-between;
    width: 100%;
}
.ibox211.top{
    justify-content: center;
}


.ibox31{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #e5e5e5;
    padding: 90px 20px;
}
.ibox311{
    display: flex;
}
.ibox311 a{
    padding: 13px 30px;
    background-color: #7132F5;
    border-radius: 16px;
    font-size: 1.3em;
    color: #ffffff;
}
.ticker-wrap {
  position: relative;
  width: 100%;
  padding: 5px 0;
  overflow: hidden;
  box-sizing: content-box;
}
.ticker {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  box-sizing: content-box;
  will-change: transform;
}
.ticker-wrap .ticker__item {
  display: flex;
  align-items: center;
  padding: 4px 20px;
  font-size: 1em;
  gap: 10px;
  background-color: rgb(255, 255, 255);
}
.ticker__item span{
    display: flex;
    flex-direction: column;
}

.ticker-wrap .ticker__item h3,
.ticker-wrap .ticker__item p {
    display: flex;
    padding: 0;
    color: rgb(0, 0, 0);
    min-width: max-content;
}

.ticker-wrap .ticker__item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}
@-webkit-keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}
@keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}



.ibox4{
    display: flex;
    justify-content: center;
    width: 100vw;
    align-items: center;
    padding: 60px 0;
}
.ibox41{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    gap: 50px;
}
.ibox411{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.ibox411 a{
    padding: 13px 30px;
    background-color: #7132F5;
    border-radius: 16px;
    font-size: 1.3em;
    color: #ffffff;
}
.ibox4111{
    display: flex;
    flex-direction: column;
    width: 32%;
    gap: 10px;
    border-radius: 25px;
    padding: 10px 10px 0 10px;
    border: 1px solid #676767;
}
.ibox44{
    display: flex;
}
.ibox44 a{
    padding: 10px;
    border-radius: 10px;
    color: #7132F5;
    background-color: #E3DDF9;
}
.ibox4img{
    display: flex;
    height: 200px;
    width: 100%;
}
.ibox4img img{
    width: 100%;
}


.ibox5{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    padding: 0 5vw;
}
.ibox51{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
}
.ibox511{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.ibox5111{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 175px;
    padding: 20px;
    border-radius: 20px;
    background-color: #F6F5F9;
    gap: 10px;
    text-align: center;
}
.ibox5111 img{
    width: 50px;
}
.ibox5111 p{
    padding: 5px;
    border-radius: 10px;
    font-size: 0.8em;
    background-color: #D6ECE4;
}




.ibox6{
    display: flex;
    justify-content: center;
    padding: 100px 5vw;
    width: 100vw;
}
.ibox61{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.ibox61 span{
    font-size: 2em;
}
.ibox612{
    display: flex;
}
.ibox612 a{
    padding: 13px 30px;
    background-color: #7132F5;
    border-radius: 16px;
    font-size: 1.3em;
    color: #ffffff;
}
.ibox613{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 50px;
    align-items: center;
    text-align: center;
}
.ibox613 p{
    color: #676767;
}




.ibox7{
    display: flex;
    justify-content: center;
    width: 100vw;
    padding: 50px 4vw;
    background-color: black;
}
.ibox71{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.ibox71 h1,
.ibox71 h2,
.ibox71 a,
.ibox71 h3{
    color: #F6F5F9;
}
.ibox712{
    width: 100%;
}
.ibox712 img{
    width: 100%;
}
.ibox713{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}
.ibox7131{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.ibox7131 span{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32%;
    text-align: center;
    gap: 18px;
}
.ibox7131 span img{
    width: 58px;
}
.ibox7132{
    display: flex;
}
.ibox7132 a{
    padding: 13px 30px;
    background-color: #7132F5;
    border-radius: 16px;
    font-size: 1.3em;
}



.ibox8{
    display: flex;
    background: #2A7B9B;
    background: linear-gradient(90deg,#2A7B9B 0%, #856cb4 35%, #411f7e 65%, #397230 100%);
    justify-content: center;
    width: 100vw;
    padding: 140px 10vw;
}
.ibox81{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    font-size: 1.6em;
}
.ibox81 h1,
.ibox81 p{
    color: #FFFFFF;
}
.ibox811{
    display: flex;
}
.ibox811 a{
    padding: 13px 30px;
    background-color: #ffffff;
    border-radius: 16px;
    color: #5B1ECF;
}



.ap{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
    width: 100vw;
  background: linear-gradient(70deg,#2A7B9B 0%, #856cb4 35%, #411f7e 65%, #397230 100%);
  padding: 110px 5vh;
}
.ap h2,
.ap h3{
    color: white;
    font-size: 2em;
    text-align: center;
}
.ap1{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
  background-color: #e5e5e5;
  padding: 20px 0 20px 0;
}
.ap11{
  display: flex;
  background-color: #F8F7FC;
  border-radius: 20px;
  padding: 10px;
  width: 95%;
  gap: 10px;
} 
.ap11 img{  
  display: flex;
  width: 70px;
  height: 70px;
  background-color: white;
  border-radius: 50%;

}
.ap111{
  display: flex;
  flex-direction: column;
  width: 95%;
  gap: 4px;

}
.ap111 h3{
  margin-top: 10px;
}




.ibox9{
    display: flex;
    background-color: #dedbe6;
    justify-content: center;
    width: 100%;
    padding: 50px 5vw;
}
.ibox91{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
}
.ibox91 p{
    color: #676767;
}


hr{
    display: flex;
    justify-self: center;
    width: 90vw;
    background-color: #2A7B9B;
    height: 3px;
    margin-bottom: 50px;
}


.ibox10{
    display: flex;
    width: 100%;
    padding: 0 5vw 50px 5vw;
}
.ibox101{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ibox101 span{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.ibox1011{
    display: flex;
    gap: 10px;
}
.ibox1012{
    display: flex;
    gap: 10px;
}
.ibox1012 img{
    width: 25px;
    height: 25px;
}




.lbox1{
    display: flex;
    justify-content: center;
    padding: 100px 5vh;
    width: 100vw;
    background: linear-gradient(150deg,#a5c1a1 0%, #c0b2db 35%, #ccafd3 65%, #98d48f 100%);

}
.lbox11{
    display: flex;
    padding: 20px;
    border-radius: 50px;
    flex-direction: column;
    background: linear-gradient(150deg,#bac7b8 0%, #e5d9fc 35%, #d9b9e1 65%, #cbe8c6 100%);
    align-items: center;
    width: 80%;
}
.lbox111.top{
    display: flex;
    width: 100%;
}
.lbox1111{
    display: flex;
    gap: 10px;
}
.lbox4x{
    display: flex;
    flex-direction: column;
}
.lbox1111 img{
    width: 30px;
}


.lbox111{
    display: flex;
    flex-direction: column;
    text-align: justify;
    gap: 4px;
}
.lbox111 h1{
    text-align: left;
    margin-top: 20px;
}
.lbox111.img{
    display: flex;
    margin: 20px 0 0 0;
    height: 55vh;
}
.lbox111.img img{
    border-radius: 17px;
    height: 100%;
}





.sbox { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    width: 100vw;
    padding: 0;

}
.sbox2 { 
    display: flex;
    height: 100vh;
    width: 100vw; 
    margin: 0;
    background-color: #E3D4FF;
}
.sboximg{
    display: flex;
    width: 45%;
    height: 100%;
    z-index: 3;
}
.sboximg img{   
    display: flex;
    width: 100%;
}
.sbox21 { 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px; 
    gap: 13vh;
    width: 55%;
    background-color: #E3D4FF;
}
.sbox-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}
.sbox-header .logo { 
    display: flex;
    height: 50px;
}
.sbox-header .logo img{ 
    height: 100%;
}
.sbox-header h2 { 
    margin: 0; 
    font-size: 1.8em; 
    color: #333; 
}
#signup-form-container,
#login-form-container{
    background-color: #ffffff;
    padding: 20px;
    width: 70%;

}
.form-group { 
    margin-bottom: 10px; 
}
.form-group label { 
    display: block; 
    font-weight: 500; 
    margin-bottom: 8px; 
    color: #555; 
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    box-sizing: border-box; 
}
.btn-submit { 
    width: 100%; 
    padding: 14px; 
    border: none; 
    border-radius: 8px; 
    background-color: #5B1ECF; 
    color: #ffffff; 
    font-size: 1em; 
    font-weight: bold; 
    cursor: pointer; 
}
.error-message { 
    color: #dc3545; 
    font-size: 0.875em; 
    margin-top: 5px; 
}
.alert-danger { 
    color: #721c24; 
    background-color: #f8d7da; 
    border: 1px solid #f5c6cb; 
    padding: 10px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    text-align: center; 
}
.terms-group { 
    display: flex; 
    align-items: center; 
    margin-bottom: 20px; 
}
.terms-group input { 
    margin-right: 10px; 
}

/* Loader Animation */
.loader-container { 
    display: none; 
    text-align: center; 
    padding: 50px; 
}
.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #5B1ECF; /* Purple */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }



.nav-item {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-item:hover {
  color: var(--blue2);
}

.nav-item.active {
  color: var(--blue2);
  font-weight: 700;
}











.forex{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 500px;
  background-color: #E3DDF9;
}
.tradingview-widget-container{
  display: flex;
  max-width: 90%;
  max-height: 90%;
}

/* invest.html page */
.usdt{
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 30px;
  background: linear-gradient(150deg,#a5c1a1 0%, #c0b2db 35%, #ccafd3 65%, #98d48f 100%);
  box-sizing: border-box;
}
.usdt1{
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 5px solid rgb(80, 175, 149);
  padding: 10px;
}
.usdt1 img{
  width: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}
.usdt2 input,
.usdt2 button{
    color: #333;
  padding: 10px;
  border: 2px solid rgb(80, 175, 149);
  
}
/* Box a */
.a{
    display: flex;
    flex-direction: column;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 13vh;
    background-color: rgb(59, 78, 57);
    color: rgb(198, 242, 192);
    z-index: 2;
}
.aa{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    height: 100%;
}
.pic{
  display: flex;
  height: 90%;
  align-items: center;
}
.pic img{
    height: 100%;
    cursor: pointer;
}
.aaa{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0 0 0 20px;
    box-sizing: border-box;
}
.aaa1{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
    overflow: hidden;
    gap: 20px;
    text-decoration: none;
}
.aaa11{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    height: 100%;
    text-decoration: none;
    font-size: 15px;
}
.aaa11:hover{
    scale: 1.2;
    color: rgb(28, 168, 199);
    cursor: pointer;    
    transition: 0.3s;
}
/* Aboutus */
.topx{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('pics/signin1.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 64.1px;
  color: white;
  padding: 100px 20px;
}

.abp{
  display: flex;
  justify-content: center;
  position: relative;
  padding: 100px 0;
  width: 100%;
  gap: 10px;
  background-color: #F8F7FC;
}
.abp .c1{
  display: flex;
  width: 30%;
  background-color: #E3DDF9;
  color: rgb(255, 255, 255);
  flex-direction: column;
  min-height: auto;
  min-width: auto;
  border: 4px solid #856cb4;
  border-radius: 30px;
  padding: 10px;
}
.abp .c111{
  display: flex;
  flex-direction: column;
}
.c1 img{
    max-height: 60px;
    object-fit: contain;
}



.ap{
  width: 100%;
}




.fbox{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 130px 0;
    width: 100%;
  background: linear-gradient(70deg,#2A7B9B 0%, #856cb4 35%, #411f7e 65%, #397230 100%);
}
.fbox1{
    width: 60%;
}
.fbox h1{
    color: white;
    margin-top: 0px;
    font-size: 55px;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.fbox h2{
    color: white;
    font-size: 18.72px;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.fbox0{
    display: flex;
    width: initial;
    margin: 5px 0 0 0;
    padding: 18px 20px;
    border-radius: 5px 5px 0 0; 
    color: rgb(199, 235, 192);
    cursor: pointer;
    background-color: #6A8766;
    text-decoration: none;
    align-items: center;
    font-size: large;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
}
.ans11{
    font-size: large;
    margin: 0 0 10px 0;
    width: initial;
    background-color: rgb(199, 235, 192);
    padding: 18px 20px;
    border-radius: 0 0 10px 10px;
}




.d{
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: #c0b2db;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    gap: 30px;
    align-items: center;
    padding: 60px 0;
}
.d1{
    display: flex;
    align-self: flex-start;
    justify-content: center;
    align-items: center;
    width: 30%;
    box-sizing: border-box;
}
.d1 img{
    width: 100%;
    object-fit: contain;
}
.ds{
  display: flex;
  margin-top: 10px;
}

.df a{
    text-decoration: none;
    color: rgb(51, 32, 19);
    background-color: rgb(28, 168, 199);
    padding: 10px 20px;
}
.df img{
    width: 30px;

}
.d2{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    box-sizing: border-box;
}
.d2 h1,
.d2 h2{
    color: #1CA8C7;
    font-size: 5vh;
    width: 100%;
}
.d21{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}
.d211{
    display: flex;
    align-items: center;
    gap: 20px;
}
.d211 p{
    color: white;
}
.formm{
  display: flex;
  flex-direction: column;
  width: 50%;
}
.formm form{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.formm .neb{
  display: flex;
  justify-content: space-between;
}
.formm .neb input{
  width: 48%;
  padding: 10px;

}
.formm form textarea{
  padding: 10px;
}
.formm form button{
  padding: 10px;
  background-color: rgb(28, 168, 199);
  color: rgb(255, 255, 255);
  cursor: pointer;
}
/* Box e */
.e{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(190deg,#a5c1a1 0%, #c0b2db 35%, #ccafd3 65%, #695a69 100%);
  padding: 60px 20px;
}
.con h1{
  text-align: left;
}
.con .e111{
  width: 40%;
  

}
.con .e111:hover{
  scale: 1;
  color: white;
}
.e1{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 80%;
    margin-top: 30px;
}
.e11{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
}
.e111{
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 30px;
    font-size: 15px;
    text-decoration: none;
    text-align: left;
    color: rgb(255, 255, 255);
    gap: 10px;
    background-color: rgb(106, 135, 102);
    width: 30%;
}
.e111 hr{
    width: 100%;
    margin: 20px 0;
}
.e111:hover{
    scale: 1.05;
    transition: 0.3s;
    cursor: pointer;
    color: rgb(28, 168, 199);
}
.e111 a{
    text-decoration: none;
    color: rgb(51, 32, 19);
    background-color: rgb(28, 168, 199);
    padding: 10px 20px;
}
.e111 p{
    text-align: left;
    color: white;
}
.e111 h1{
    color: #f3f3f3;
}
.e1111{
    display: flex;
    align-items: end;
    gap: 10px;
}



.ee{
  background-color: rgb(147, 181, 142);
}
.ee .e111:hover{
  scale: 1;
  color: white;

}
.ee .e111 img{
  height: 60px;
  object-fit: contain;
}

























@media only screen and (max-width: 888px){
    .e h1,
    .e p,
    .ap h2,
    .ap h3{
        text-align: center;
    }
    .e11 .e111{
        width: 100%;
        text-align: left;
    }
    .d1{
        display: flex;
        align-self: center;
    }
    .d1,  
    .d2{
        width: 80%;
    }
    .d,
    .e11,
    .h{
        flex-direction: column;
    }
    .con .df,
  .formm{
    width: 100vw;

  } 
    /* about us */
    .abp{
        align-items: center;
    }
    .abp .c1{
        width: 80%;
        padding: 10px;
        border-radius: inherit;
    }
    .fbox{
        padding: 50px 0;
    }
    .fbox1{
        width: 87%;
    }
    /* Contact us */
    .con .df,
    .formm{
        width: 100%;

    }
    .c{
        flex-direction: column;
        
    }








    /* Show the hamburger icon */
    .hamburger-menu {
        display: block;
    }

    /* Style the dropdown menu container */
    .nav-links {
    /* already in your code */
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    max-height: 0;
    overflow: hidden;

    /* added to fully hide when closed */
    opacity: 0;             /* NEW */
    visibility: hidden;     /* NEW */
    pointer-events: none;   /* NEW */
    transition: max-height 0.4s ease-out, opacity 0.2s ease-out; /* UPDATED */
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 500px;
    border-bottom: 1px solid #eee;

    /* added to show when open */
    opacity: 1;             /* NEW */
    visibility: visible;    /* NEW */
    pointer-events: auto;   /* NEW */
  }

    /* Stack the link groups vertically in the dropdown */
    .header2, .header3 {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }
    
    .header2 {
        gap: 0;
    }

    .header21.smalla{
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .header21.smalla a{
        display: flex;
        text-align: center;
        height: 40px;
        width: 100%;
        padding-left: 5vw;
    }
    .header21.smalla a{
        text-align: center;
    }

    .header3{
        display: none;
    }

    /* Animate hamburger to an 'X' when menu is open */
    .nav-toggle:checked ~ .hamburger-menu .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-toggle:checked ~ .hamburger-menu .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .hamburger-menu .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    * h1,
    .ibox81 h1{
        font-size: 1.6em;
        text-align: center;
    }

    .ibox1{
        margin-top: 64px;
        height: fit-content;
    }
    .ibox11{
        width: 100%;
        flex-direction: column;
        align-items: center;
        height: fit-content;
    }
    .ibox111{
        gap: 0;
        height: fit-content;
        width: 90%;
        font-size: 0.8em;

    }
    .ibox111 h1{
        font-size: 2.5em;
        text-align: left;
    }
    .ibox111 h2{
        margin: 20px 0 0 0;
    }
    .ibox112{
        height: fit-content;
        width: 100%;
    }
    .ibox112 img{
        width: 100%;

    }
    .ibox411{
        flex-direction: column;
    }
    .ibox4111{
        width: 100%;
    }
    .ibox511{
        gap: 13px;
    }
    .ibox5111{
        width: 150px;   
    }
    .ap{
        padding: 18px 0;
    }
    .ap h3{
        font-size: 1.4em;
    }
    .ap1{
        width: 95%;
    }
    .lbox1{
        padding: 100px 0 20px 0;
    }
    .lbox11{
        width: 92%;
    }
    .lbox111.img{
        display: flex;
        margin: 20px 0 0 0;
        height: fit-content;
        width: 100%;
    }
    .lbox111.img img{
        border-radius: 17px;
        width: 100%;
    }
    .headerx {
    display: flex;
    align-items: center;
    }


    #signup-form-container,
    #login-form-container{
        width: 90%;

    }
    .sbox{
        min-height: 100vh;
    }
    .sbox2 { 
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 100vh;
    }
    .sboximg{
        height: 30vh;
        width: 100%;
    }
    .sboximg img{
        width: 100%;
    }
    .sbox21{
        gap: 30px;
        width: 100%;
        height: auto;
    }


}