/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@font-face {
    font-family: 'fredoka';
    src: url(/mathbuddy_assets/fonts/fredoka.ttf);
    font-display: swap;
  }
  
@font-face {
    font-family: 'poppins';
    src: url(/mathbuddy_assets/fonts/poppins.ttf);
    font-display: swap;
}

.poppins-family {
    font-family: "poppins", sans-serif;
}
  
.fredoka-family {
    font-family: "fredoka", sans-serif;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}


body {
    height: 100vh;
    position: relative;
}

.noMarginPadding {
    margin: 0px !important;
    padding: 0px !important;
}

.main-section {
    height: 100vh;
    position: relative;
    overflow-x: hidden !important;
    overflow-y: scroll;
}

#elements-bg{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#main-section{
    padding: 0 !important;
}

#hero {
    margin-top: 140px;
    margin-bottom: 120px;
}

.image-wrapper {
    padding-right: 50px !important;
}

#childImageWrapper {
    width: auto;
}

.childImage {
    max-width: 90%;
    max-height: 120%;
    /* animation: float1 2.5s ease-in-out infinite; */
}

#childImageWrapper>span {
    letter-spacing: 5px !important;
    font-size: 14px !important;
    font-weight: 700;
    color: #00000080 !important;
    font-family: "Poppins", sans-serif;
}

#childImageWrapper>h3 {
    font-size: 50px !important;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 70px;
    color: #000000 !important;
    font-family: "Fredoka", sans-serif;
}

.form-container {
    position: relative;
    margin-bottom: 20px;
    /* height: 500px; */
    width: 400px;
    border: 4px solid #b0cdf9 !important;
    background-color: #cbf4ff;
    padding-inline: 30px !important;
    padding-block: 10px;
    border-radius: 20px;
    padding: 1% 5%;
    box-shadow: 0 0.1em 0.5em 0.2em rgb(0 0 0 / 15%);
}

.form-container>img {
    height: 10vh;
}

.form-container>.heading {
    /* letter-spacing: .1em; */
    margin-top: 5%;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}

.form-input-group {
    margin-top: 5%;
    height: 80%;
    width: 100%;
    gap: 10px
}

.input-field-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.input-field {
    background-color: white;
    padding-inline: 20px;
    padding-block: 10px;
    border-radius: 12px;
}

.input-field::placeholder {
    color: red;
}

#submit-btn {
    text-transform: capitalize;
}

.input-field p {
    margin: 0;
    font-size: 12px;
    color: #6c6c6c;
    line-height: 16.8px;
}

.input-field input {
    margin-top: 5px;
    font-size: 14px;
    color: black;
    line-height: 19.6px;
    outline: none;
    border: none;
    max-width: 100%;
    font-weight: 500;
}

.input-field input::placeholder {
    color: rgb(190, 190, 190) !important;
    font-size: 14px;
    font-weight: 500;
}

.inputBoxPassCode,
.inputBox {
    background-color: white;
    padding-inline: 20px;
    padding-block: 12px;
    border-radius: 12px;
    font-family: "Poppins";
    margin-top: 5px;
    font-size: 14px;
    color: black;
    line-height: 19.6px;
    outline: none;
    border: none;
    max-width: 100%;
    font-weight: 500;
}

.inputBoxPassCode {
    width: 20%;
    text-align: center;
}

#passwordWrapper,
#newPasswordWrapper,
#confirmPasswordWrapper {
    position: relative;
}

#passwordbtn,
#newPasswordBtn,
#confirmPasswordbtn {
    position: absolute !important;
    top: 20%;
    right: 0;
    background: transparent !important;
    border: 0;
}

.submit-btn {
    padding-inline: 32px;
    padding-block: 14px;
    border-radius: 12px;
    width: 100%;
    height: 72px;
    border: none;
    font-size: 22px;
    font-weight: 500;
    color: white;
    background-color: #5d51fc;
    font-family: "Poppins", sans-serif;
}

.disabled,
[disabled] {
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: .5 !important;
}

.forgotPassword,
.form-question-link {
    text-decoration: underline !important;
    letter-spacing: .1em !important;
    font-size: 12px !important;
    color: black !important;
    cursor: pointer;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
}

.form-question-link {
    color: #5d51fc !important;
}

#orText {
    letter-spacing: .1em !important;
    font-size: 14px !important;
    color: black !important;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    margin: 10px 0px;
}

.form-question {
    letter-spacing: .1em !important;
    font-size: 11px !important;
    color: #686868 !important;
}

.continueWithGmail {
    /* padding-inline: 32px; */
    padding-block: 14px;
    border-radius: 12px;
    width: 100%;
    height: 72px;
    border: none;
    font-size: 22px;
    color: black;
    background-color: #fff;
    font-family: "Poppins", sans-serif;
}

.continueWithGmail>image {
    width: auto;
    height: 100% !important;
}

.continueWithGmail>span {
    letter-spacing: .1em !important;
    font-size: 14px !important;
    font-weight: 500;
    color: black !important;
    font-family: "Poppins", sans-serif;
}

#error {
    visibility: hidden;
    margin: 5% 2%;
    color: #FF0000;
}

.errorMessage {
    margin: 2%;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 16.8px;
    text-align: center;
}

.loader {
    position: absolute;
    border-radius: 20px;
    top: 0;
    z-index: 20000000;
    height: 100%;
    width: 100%;
    background-color: #b8b5b5c4;
    opacity: 0.8;
}

#animation-container {
    height: 100px;
    width: 100px;
}

.session-code-container{
    margin-top: 30px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 40px;
}

.otp-boxes{
    display: flex;
    gap: 20px;
}

.otp-box {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
}

.students-main-section {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden !important;
    /* overflow-y: scroll; */
    /* padding: 0; */
    margin: 0;
  }

  .close-btn{
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #000;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 500;
  }

  .mathbuddy-logo{
    position: absolute;
    width: 146px;
    height: 40px;
    top: 20px;
    left: 20px;
  }

  .mathbuddy-logo img{
    width: 100%;
    height: 100%;
  }
  
  .student-list-heading {
    display: flex;
    justify-content: center;
    font-size: 2vw;
    margin-top: 40px;
    margin-bottom: 0;
  }

  .student-list-heading span{
    margin-left: 5px;
    color: #5D51FC;
    font-weight: 700;
  }
  
  #students-main-section > p {
    font-size: 1.4vw;
    text-align: center;
    margin-top: 15px;
  }
  
  #student-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
  }
  
  .student-card {
    width: 15vw;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
  }
  
  .student-card p{
      font-size: 14px;
      color: #3529D4;
      margin: 0;
      margin-top: 5px;
  }

  .student-card h3{
    font-size: 18px;
  }
  
  .student-card:hover {
    transform: scale(1.1);
    background: #B0CDF9;
  }
  
  /* Modal background overlay */
  .modal-overlay {
    display: none; /* Hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  #modal-message {
    line-height: 33px;
  }

  #modal-message strong{
    color: #5D51FC;
  }
  
  /* Modal box */
  .modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Buttons */
  .modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
  }

  #modal-error{
    margin-top: 5px;
    color: red;
    font-size: 14px;
    font-weight: 600;
  }
  
  .btn-yes {
    width: 48%;
    background: #CBF4FF;
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
  }
  
  .btn-cancel {
    width: 48%;
    background: #5D51FC;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
  }

@keyframes slideInFromRight {
    0% {
        transform: translateX(150%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromRightNotification {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes float1 {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-15px);
    }

    100% {
        transform: translatey(0px);
    }
}

@media (max-width: 1257px) {
    #childImageWrapper>h3 {
        font-size: 35px !important;
        line-height: 50px;
    }
}

@media (max-width: 1000px) {
    #hero {
        margin-bottom: 50px;
    }

    .image-wrapper {
        padding-right: 20px !important;
    }

    #childImageWrapper {
        padding-left: 8%;
    }

    #childImageWrapper>span {
        /* letter-spacing:2px !important; */
        font-size: 10px !important;
        text-align: start;
    }

    #childImageWrapper>h3 {
        font-size: 28px !important;
        line-height: normal;
    }

    .form-container {
        max-width: 95%;
    }

    .student-card{
        width: 30% !important;
    }

    .student-card h3{
        font-size: 18px;
    }

    .student-list-heading{
        font-size: 3vw;
    }

    .students-main-section > p{
        font-size: 2vw !important;
    }

}

@media (max-width: 770px) {
    .form-text {
        font-size: 30px !important;
    }

    .inputBox {
        font-size: 10px !important;
    }

    /* .submit-btn {
        font-size: 12px !important;
    } */
    .forgotPassword {
        font-size: 10px !important;
    }

    #childImageWrapper {
        padding-top: 3vh;
        /* height: 500px; */
    }

    .student-list-heading{
        font-size: 3vw;
    }

    .students-main-section > p{
        font-size: 2vw !important;
    }

    .student-card h3{
        font-size: 16px;
    }
    
}



@media(max-width:767px) {
    #hero {
        margin-top: 100px;
    }

    .form-wrapper {
        margin-top: 30px !important;
        margin-bottom: 10px !important;
    }

    #childImageWrapper>img,
    #childImageWrapper>span {
        display: none !important;
    }

    #childImageWrapper>h3 {
        font-size: 30px !important;
        line-height: normal;
    }

    .form-text {
        font-size: 30px !important;
    }

    .inputBox {
        font-size: 10px !important;
    }

    /* .submit-btn {
        font-size: 12px !important;
    } */

    .forgotPassword {
        font-size: 10px !important;
    }

    .student-card{
        width: 45% !important;
    }
}

@media (max-width: 500px) {

    .form-container {
        /* margin: 0; */
        width: 95%;
        min-height: 350px !important;
    }

    .student-list-heading{
        font-size: 4.5vw;
    }

    .students-main-section > p{
        font-size: 3.5vw !important;
    }

    .student-card{
        width: 45% !important;
    }

    #childImageWrapper {
        width: 90%;
        padding: 0px;
        height: auto;
    }

    #childImageWrapper>span {
        letter-spacing: 4px !important;
        font-size: 10px !important;
    }

    #childImageWrapper>h3 {
        font-size: 6vw !important;
        line-height: normal;
    }
}

@media (max-height: 700px) and (max-width: 500px) {
    .form-container {
        /* margin: 0; */
        width: 95%;
        min-height: 500px;
    }
}

@media (max-width: 300px) {
    .form-container {
        /* margin: 0; */
        width: 98%;
        height: 55vh;
    }
}

@media (max-width: 475px) {
    .main-section {
        min-height: 100vh;
        overflow-y: scroll !important;
        z-index: 200;
    }

    .bg-container {
        display: none;
    }

    .mobile-bg-container {
        display: block !important;
        position: absolute;
        top: 0%;
        left: 50%;
        transform: translateX(-50%);
        height: 1600px !important;
        width: 100%;
        z-index: -1;
    }

    .mobile-bg-container img {
        width: 100%;
    }

    .otp-container {
        gap: 30px;
    }

    .otp-boxes{
        display: flex;
        gap: 10px;
    }
}