.find-out-the-term-game-wrapper {
    container-type: inline-size;
}

.find-out-the-term-game {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    background-color: var(--e-global-color-accent, #00247F);
    border-radius: 25px;
    color: var(--e-global-color-75c5710, #FFFFFF);
    margin: auto;
}

.find-out-the-term-game picture {
    display: flex;
}

.find-out-the-term-game img {
    max-width: 100%;
    border-radius: 22px 22px 0 0;
}

.find-out-the-term-heading-wrapper .find-out-the-term-heading {
    color: var(--e-global-color-75c5710, #FFFFFF);
    font-size: var(--e-global-typography-8fe8635-font-size);
    font-weight: var(--e-global-typography-8fe8635-font-weight);
    line-height: var(--e-global-typography-8fe8635-line-height);
    margin: 0;
}

.find-out-the-term-heading .number {
    color: var(--e-global-color-primary, #60CAD8);
}

.find-out-the-term-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 28px 50px 28px;
    margin-top: -125px;
    border-radius: 0 0 22px 22px;
    background: rgb(0,36,127);
    background: linear-gradient(0deg, rgba(0,36,127,1) 0%, rgba(0,36,127,1) calc(100% - 109px), rgba(0,36,127,0.5) calc(100% - 36px), rgba(0,36,127,0) 100%);
}

.find-out-the-term-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.find-out-the-term-form .letter-fields {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 30px;
    margin-bottom: 10px;
}

.find-out-the-term-game .find-out-the-term-form .letter-fields .letter-field {
    width: 27px; 
    height: 33px;
    text-align: center;
    margin-left: 5px; 
    padding: 5px;
    background-color: #ffffff29;
    border: 2px solid transparent;
    color: var(--e-global-color-75c5710, #FFFFFF);
    font-weight: bold;
}

.find-out-the-term-game .find-out-the-term-form .letter-fields .letter-field:focus {
    border-style: solid;
    border-width: 2px;
    border-color: var(--e-global-color-31afefb);
    outline: 0;
}

.find-out-the-term-game .find-out-the-term-form .letter-fields .letter-field:read-only {
    background-color: #ffffff1A;
    color: var(--e-global-color-primary, #60CAD8);
    border: 1px solid var(--e-global-color-primary, #60CAD8);
}

.find-out-the-term-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.find-out-the-term-message {
    width: 100%;
    font-size: 1rem;
    min-height: 1.875em;
}

.next-quiz-link.elementor-button {
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-weight: var(--e-global-typography-accent-font-weight);
    font-size: var(--e-global-typography-5250cbb-font-size, 1rem);
    line-height: var(--e-global-typography-accent-line-height);
    background-color: var(--e-global-color-713fbb9);
    color: var(--e-global-color-text);
    display: none;
}

.embedded .next-quiz-link.elementor-button {
    display: none!important;
}

.next-quiz-link.elementor-button:hover {
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-75c5710, #ffffff);
}

.find-out-the-term-game .find-out-the-term-form .find-out-the-term-submit {
    background-color: var(--e-global-color-75c5710, #FFFFFF);
    color: var(--e-global-color-text, #232529);
    font-size: 1rem;
    font-weight: bold;
    border-color: transparent;
    padding: 10px 26px;
}

.find-out-the-term-game .find-out-the-term-form .find-out-the-term-submit:focus {
    outline: 2px;
}

.find-out-the-term-game .find-out-the-term-form .find-out-the-term-submit:focus-visible {
    outline: 5px auto -webkit-focus-ring-color;
}

.find-out-the-term-game .find-out-the-term-form .find-out-the-term-submit:disabled {
    background-color: #ffffffad;
}

.hint-button, .solve-button {
    font-size: var(--e-global-typography-10e3a00-font-size);
    font-weight: var(--e-global-typography-10e3a00-font-weight);
    line-height: var(--e-global-typography-10e3a00-line-height);
}
.hint-button:not([aria-disabled="true"]), .solve-button:not([aria-disabled="true"]) {
    cursor: pointer;
}




/* Modal styles */
.find-out-the-term-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    background-color: #fff;
    border-radius: 22px;
    box-shadow: 10px 10px 0 0 var(--e-global-color-secondary);
    padding: 80px 60px 60px 60px;
    z-index: 1000;
  }
  
  .find-out-the-term-modal-content {
    max-width: 500px;
  }
  
  .find-out-the-term-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  #find-out-the-term-modal-title {
    margin-top: 0;

  }

  .modal-term-subheading {
    font-weight: bold;
  }
  
.find-out-the-term-modal .next-quiz-link {
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
    background-color: var(--e-global-color-accent);
    color: #fff;
    margin-top: 25px;
    display: inline-block;
}

  .find-out-the-term-modal-close {
    position: absolute;
    left: 20px;
    top: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2em;
  }
  
  /* Overlay styles */
  .find-out-the-term-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }



@media (max-width: 767px) {
    .find-out-the-term-modal {
        width: calc(100% - 40px);
        margin: 20px;
        left: 0;
        transform: translate(0, -50%);
        padding: 60px 20px 40px 20px;
        box-shadow: 5px 5px 0 0 var(--e-global-color-secondary);
    }

    .single-quizzes .find-out-the-term-content-wrapper, .single-quizzes .find-out-the-term-game img {
        border-radius: 0;
    }

    .find-out-the-term-actions {
        gap: 10px;
    }

    .find-out-the-term-game .find-out-the-term-form .find-out-the-term-submit {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .hint-button, .solve-button {
        font-size: var(--e-global-typography-5250cbb-font-size, 0.9rem);
    }

    .modal-content {
        max-height: calc(90vh - 160px);
        overflow-y: scroll;
    }

    .find-out-the-term-modal.has-scrollbar {
        padding-left: 10px;
    }

    .has-scrollbar .modal-content {
        padding-left: 10px;
        padding-bottom: 40px;
    }

    .has-scrollbar .modal-content:after {
        content: '';
        position: absolute;
        bottom: 39px;
        right: 0;
        left: 0;
        height: 40px;
        background: linear-gradient(0deg, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 100%);
    }
}


@container (min-width: 768px) {
    .find-out-the-term-game {
      flex-direction: row;
      align-items: stretch;
    }
    .find-out-the-term-image-wrapper {
        width: 45%;
        height: auto;
    }
    .find-out-the-term-game picture {
        height: 100%;
    }
    .find-out-the-term-game img {
        border-radius: 0 22px 22px 0;
        object-fit: cover;
        height: 100%;
    }
    .find-out-the-term-content-wrapper {
        width: 55%;
        padding: 80px;
        margin-top: 0;
        gap: 60px;
        justify-content: center;
    }
    .find-out-the-term-heading-wrapper .find-out-the-term-heading {
        font-size: var(--e-global-typography-fc9493e-font-size, 3.125rem);
        font-weight: var(--e-global-typography-fc9493e-font-weight);
        line-height: var(--e-global-typography-fc9493e-line-height);
    }
    .find-out-the-term-form {
        gap: 10px;
    }
}


@container (min-width: 768px) and (max-width: 1024px) {
    .find-out-the-term-content-wrapper {
        padding: 40px;
        gap: 30px;
    }
    .find-out-the-term-heading-wrapper .find-out-the-term-heading {
        font-size: 2.4rem;
    }
    .find-out-the-term-form {
        gap: 0px;
    }
}