body,
html {
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    overscroll-behavior-y: none;
}
*,
*:before,
*:after {
    box-sizing: border-box;
}
.content-container {
    width: 100%;
    height: 94dvh;
    min-width: 32rem;
    margin: 0 auto;
    padding: 1.25rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0 11px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.centered-content {
    width: 100%;
}
button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}
#notification {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0 0 0.625rem 0.625rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    z-index: 1000;
}
.button-container {
    display: flex;
    gap: 0.625rem;
}
.hidden {
    display: none;
}
.hidden {
    display: none;
}
.sidebar {
    display: flex;
    flex-direction: column;
    flex-basis: 15.625rem;
    max-width: 15.625rem;
    justify-content: space-between;
    color: #fff9f9;
    color: rgb(0, 0, 0);
    font-family: open, sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    position: sticky;
    top: 0;
    box-shadow: 0 0 0.1875rem 0.2375rem rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0.1875rem 0.2375rem rgba(0, 0, 0, 0.05);
    z-index: 100;
}
.sidebar-wrapper {
    width: 100%;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    flex-basis: 15.625rem;
    min-width: 11rem;
    justify-content: space-between;
    font-family: open, sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    height: 100dvh;
    height: 100svh;
    min-height: 100dvh;
    max-height: fit-content;
    padding: 1.25rem;
    position: sticky;
    top: 0;
    z-index: 200;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-gutter: none;
}
.logo-scr-img {
    width: 81%;
    opacity: 82%;
    max-width: 11.25rem;
}
.home-img{
    width:100%;
    height:100%;
    opacity: 50%;
}
.home-img:hover {
    opacity: 100%;
}
#logo-wrapper {
    display: flex;
    justify-content: space-between;
}
.logo-img {
    width: 85%;
    margin: 0 auto;
    margin-bottom: 1.25rem;
    margin-top: 3.25rem;
}
#logoImg {
    display: flex;
}
.poweredBy {
    font-family: "outfit", sans-serif;
    font-size: 0.75rem;
}
.contact {
    font-family: 'inter', sans-serif;
    font-size: 0.8125rem;
    color: rgb(2, 2, 2);
    text-decoration: none;
    letter-spacing: 0.1em;
    font-weight: 300;
}
h1 {
    font-family: 'inter', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
}
.workspace {
    grid-template-columns: auto auto;
    grid-auto-rows: minmax(min-content, max-content);
    gap: 1.25rem;
    justify-content: center;
    align-content: center;
    padding-top:0;
    padding-bottom: 0.125rem;
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1;
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
}
.main-container {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    min-height: 100vh;
}
.h2 {
    font-size: 1.6875rem;
    color: #0066ff83;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
}
.tooltip {
    position: relative;
    display: grid;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: auto;
    white-space: nowrap;
    font-family: open, sans-serif;
    background-color: rgb(105, 105, 105);
    color: #fff;
    text-align: center;
    border-radius: 0.375rem;
    padding: 0.3125rem 0.625rem;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -5rem;
    margin-bottom: -4.625rem;
    transition: visibility 0.5s linear;
    letter-spacing: 0.1em;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    transition-delay: 0.6s;
}
#overlay-completion {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.1) !important;
    z-index: 2000;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(2px);
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.privacy {
    font-family: 'inter', sans-serif;
    font-size: 0.8125rem;
    color: rgb(2, 2, 2);
    text-decoration: none;
    margin-top: 1rem;
    letter-spacing: 0.1em;
    font-weight: 300;
}
.privacy:hover {
    cursor: pointer;
}
#privacy-contact-wrapper {
    display: flex;
    flex-direction: column;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.user-profile-side-wrapper {
    font-size: 0.9rem;
    letter-spacing: 0.08rem;
    line-height: 1.4em;
    font-family: 'outfit', sans-serif;
    font-weight: 400;
}
.bottom-wrapper-copy-instructions {
    display: flex;
    flex-direction: column;
    row-gap: 1.25rem;
    align-items: flex-start;
    margin-top: 1.875rem;
    font-weight: 500;
}
.instructions-wrapper {
    display: flex;
    column-gap: 0.125rem;
}
#more-account{
    font-size: 0.9rem;
    letter-spacing: 0.08rem;
    line-height: 1.4em;
    font-family: 'outfit', sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: black;
    cursor: pointer;
}
#instruction-creator3-wrapper{
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.instruction-labels {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}
.side-btn-labels {
    font-size: 0.9rem;
    letter-spacing: 0.08rem;
    line-height: 1.4em;
    font-family: 'outfit', sans-serif;
    font-weight: 400;
    text-decoration: none;
    color:black;
}
#instruction-student2-wrapper {
    margin-bottom: 1rem;
}
#logout-btn {
    border:none;   
    padding: 0;
    cursor:pointer; 
    background-color: transparent;
}
#puzzle-data-iframe {
    width: 100%;
    height: 97dvh;
     min-height: 97dvh;
     color-scheme: light;
}
#pricing-iframe {
    width: 100%;
    height: 99dvh;
     min-height: 99dvh;
}
#exercise-bank-nav {
    border: none;
    padding: 1px 5px;
    border-radius: 5px;
    background: none;
}
#exercise-bank-nav.current {
    border: 1px solid #d8daff;
    padding: 1px 5px;
    border-radius: 5px;
    background: #e2f1ff;
}
#subscription-settings{
    border: none;
    padding: 1px 5px;
    border-radius: 5px;
    background: none;
}
#subscription-settings.current {
    border: 1px solid #d8daff;
    padding: 1px 5px;
    border-radius: 5px;
    background: #e2f1ff;
}
@keyframes fadeInLogin {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
#loginModalContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
    backdrop-filter: blur(125px);
  -webkit-backdrop-filter: blur(125px);
    animation: fadeInLogin 0.3s;
  }
  #loginModalContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding-top: 20px;
    padding-right: 42px;
    padding-bottom: 42px;
    padding-left: 42px;
    border-radius: 8px;
    letter-spacing: 0.03rem;
  }
  #closeModalBtn {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 32px;
    line-height: 24px;
    color: #ffffff;
  }
  #loginModalContent .container {
  }
.delete-acc-modal-overlay {
    display: none;
    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;
}
.delete-acc-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}
.delete-acc-modal-text {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    color: black;
    margin-bottom: 20px;
}
.delete-acc-modal-buttons {
    display: flex;
    justify-content: space-around;
}
.delete-acc-modal-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 15px;
}
.delete-acc-modal-confirm {
    color: red;
    font-weight: bold;
}
.delete-acc-modal-cancel {
    color: gray;
}
.thanks-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.thanks-modal .modal-content {
    background: #fff;
    padding: 4rem;
    border-radius: 1.2rem;
    position: relative;
    box-shadow: 0 0.5rem 3rem rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 40rem;
    max-width: 50rem;
    font-family: 'Inter', 'Open Sans', sans-serif;
    background-image: radial-gradient(circle closest-corner, white 1%, rgb(126 157 126) 350%);
}
.thanks-modal .modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #222;
    line-height: 1.2;
}
.thanks-modal .modal-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 2.5rem;
}
.thanks-modal .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 400;
    cursor: pointer;
    color: #777;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.thanks-modal .close:hover {
    color: #222;
}
#profile-id {
    font-family: 'inter', sans-serif;
    font-size: 0.8125rem;
    color: rgb(2, 2, 2);
    text-decoration: none;
    letter-spacing: 0.1em;
    font-weight: 300;
    margin-top: 1rem;
    position: relative; 
}
  .profile-id::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-bottom: 8px;         
    z-index: 500;  
    transition-delay: 0s;       
  }
  .profile-id:hover::after {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.5s;
  }
   .invisible-iframe {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
.warning-modal-overlay {
    display: flex;
    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;
}
.warning-modal-content {
    background: white;
    padding: 45px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    width:39%;
    max-height: 80%;
    overflow-y: auto;
}
.warning-modal-text {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    color: #343434;
    margin-bottom: 20px;
}
.warning-modal-buttons {
    display: flex;
    justify-content: space-around;
}
.warning-modal-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 15px;
}
.warning-modal-confirm {
    color: red;
    font-weight: bold;
}
.warning-modal-cancel {
  color: #fff;
  background-color: #659B8D;
  padding: 0.5rem 1.25rem;
  border-radius: 0.4125rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.warning-modal-cancel:hover {
  background-color: #408171;
}
#warning-line-1, #warning-line-2, #warning-line-3 {
    font-weight: 600;
}
#warning-line-4 {
  font-style: italic;
}
@media (min-width:1919px) {
    #welcome-wrapper {
        max-width: 80vw;
        min-width: 60vw;
        align-self: center;
    }
    html {
        font-size: 103%;
    }
     #puzzle-data-iframe {
        max-width: 100rem;
    }
}
@media (max-width: 1800px) {
    html {
        font-size: 95%;
    }
}
@media (max-width: 1690px) {
    html {
        font-size: 90%;
    }
}
@media (max-width: 1600px) {
    html {
        font-size: 85%;
    }
}
@media (max-width: 1550px) {
    html {
        font-size: 84%;
    }
}
@media (max-width: 1467px) {
    html {
        font-size: 79%;
    }
}
@media (max-width: 1367px) {
    html {
        font-size: 72%;
    }
    .bottom-buttons {
        margin-bottom: 2rem;
    }
}
  @media (min-width:2200px) {
    html {
      }
    #puzzle-data-iframe {
        max-width: 100rem;
    }
  }
@media (max-width: 1200px) {
    html {
        font-size: 65%;
    }
    .workspace {}
}
@media (max-width: 1050px) {
    html {
        font-size: 65%;
    }
    .workspace {
        grid-template-columns: 1fr;
    }
    .container {
        max-width: 68vw;
    }
}
@media (max-width: 801px) and (orientation: landscape) {
    body.android #privacy-contact-wrapper {
        margin-top: 2rem;
    }
}
@media (max-width: 790px) {
    body.android .workspace,
    body.ios .workspace {}
}
@media (max-width: 431px) {
    html {
        font-size: 79%;
    }
}
@media (max-width: 415px) {
    html {
        font-size: 74%;
    }
}
@media (max-width: 394px) {
    html {
        font-size: 72%;
    }
}
@media (max-width: 376px) {
    html {
        font-size: 68%;
    }
}
@media (max-width: 361px) {
    html {
        font-size: 66%;
    }
}
@media (max-width: 320px) {
    html {
        font-size: 59%;
    }
}
body.ios .word,
body.android .word {
    margin: 0.4rem;
}
@media print {
    html {
        font-size: 70%;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: white;
    }
    body {
        background-color: white;
        width: 210mm;
        height: 297mm;
    }
    @page {
        margin: 0;
    }
    .nav,
    .sidebar,
    #instructionsPlaceholder,
    .input-group,
    #scramble-btn,
    #copy-btn-label,
    #generated-link,
    #copy-btn,
    #scramble-btn-st {
        display: none;
    }
    #workspace {
        background-color: white;
        align-content: start;
    }
    #preview-container {
        display: none;
    }
    .link-container {
        margin-top: 0;
        border: none;
        box-shadow: none;
        padding-top: 0;
    }
    .container {
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: 59rem;
    }
    #scrambled-areas div {
        border-top: 0.0625rem solid #ccc;
        margin-bottom: 1rem;
        padding-bottom: 0.625rem;
        padding-top: 0.625rem;
        margin-top: 3rem;
    }
    #scrambled-areas {
        margin-top: 0;
        margin-bottom: 2rem;
    }
    #footer {
        position: fixed;
        bottom: 1cm;
        width: 100%;
        text-align: center;
        display: block;
    }
}