body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #232526 0%, #3a3d40 100%);
    display: block;
}
.container,
.container *:not(.nav-info-desc) {
    font-family: Arial, sans-serif !important;
}
.container {
    width: 800px;
    margin: 30px auto;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 24px;
    box-shadow:
        0 10px 32px rgba(25, 25, 40, 0.45),
        0 1.5px 5px #9992;
    padding-top: 0px;
    position: relative;
}
.title-screen-font {
    font-family: "Segoe UI", "Arial Black", Arial, Helvetica, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0px;
}
h2 {
    font-size: 2.3em;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #e0e0e0 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
    text-align: center;
}
#t {
    font-size: 85px;
    white-space: nowrap;
    overflow: visible;
    word-break: normal;
    display: inline-block;
    text-align: center;
}

#animated-title > span {
    display: flex;
    justify-content: center;
    width: 100%;
}
@media (max-width: 800px) {
    #t {
        font-size: 75px;
    }
}
@media (max-width: 750px) {
    #t {
        font-size: 74px;
    }
}

@media (max-width: 700px) {
    #t {
        font-size: 72px;
    }
}
@media (max-width: 670px) {
    #t {
        font-size: 64px;
    }
}
@media (max-width: 600px) {
    #t {
        font-size: 50px;
    }
}
@media (max-width: 650px) {
    #t {
        font-size: 47px;
    }
}
@media (max-width: 500px) {
    #t {
        font-size: 45px;
    }
}
@media (max-width: 450px) {
    #t {
        font-size: 40px;
    }
}
@media (max-width: 400px) {
    #t {
        font-size: 35px;
    }
}
@media (max-width: 365px) {
    #t {
        font-size: 30px;
    }
}
@media (max-width: 325px) {
    #t {
        font-size: 25px;
    }
}
@media (max-width: 300px) {
    #t {
        font-size: 20px;
    }
}

p {
    color: #b6bac8;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 32px;
}
.frontpage-info {
    max-width: 800px;

    background: rgba(38, 42, 56, 0.85);
    border-radius: 16px;
    padding: 32px 30px 28px 30px;
    box-shadow: 0 3px 24px 0 #0002;
    margin-top: 50px;
}
.features-list {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 0 0 24px;
    color: #d8dae6;
    font-size: 1.08em;
    line-height: 1.7;
}
.features-list li {
    margin-bottom: 7px;
}
.cta-box {
    text-align: center;
    margin-top: 16px;
}
.cta-btn {
    background: linear-gradient(90deg, #347be2 0%, #38d1c1 100%);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    padding: 13px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1em;
    margin-right: 16px;
    box-shadow: 0 3px 10px #1e2b6425;
    transition: background 0.17s;
    letter-spacing: 1px;
}
.cta-btn:hover {
    background: linear-gradient(90deg, #38d1c1 0%, #347be2 100%);
}
.cta-link {
    color: #89b3e6;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 8px;
    font-size: 1em;
    vertical-align: middle;
}
.fx-c {
    display: inline-block;
    opacity: 0;
    transition: opacity 1s;
    background: linear-gradient(90deg, #e0e0e0, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fx-in {
    opacity: 1;
}

/*Side panels*/

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: transparent !important;
    margin: 0;
}
.logo-box img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    margin: 0;
    position: static;
}
/*Vertical adjustments*/

.logo-layout {
    display: grid;
    width: 800px;
    grid-template-columns: 1fr 280px 1fr;
    align-items: stretch;
    margin: 0 auto 28px auto;
    height: 400px;
    gap: 50px;
}

.side-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/*Transitions*/

.side-box {
    flex: 0 0 60px;
    aspect-ratio: 1 / 1;
    width: 200px;
    height: 200px;
    background: transparent;
    border-radius: 16px;
    position: absolute;
    left: 50vw;
    top: 50vh;
    transform: translate(0%, 200%) perspective(900px) scale(2) translateZ(160px);
    opacity: 0;
    transition:
        left 0s 0.82s,
        top 0s 0.82s,
        transform 0.82s cubic-bezier(0.82, 0.1, 0.27, 1),
        opacity 0.33s cubic-bezier(0.82, 0.1, 0.27, 1);
}
.side-box.box-in {
    position: static;
    transform: perspective(900px) scale(1) translateZ(0);
    opacity: 1;
    left: unset;
    top: unset;
    transition:
        left 0s,
        top 0s,
        transform 0.82s cubic-bezier(0.82, 0.1, 0.27, 1),
        opacity 0.33s cubic-bezier(0.82, 0.1, 0.27, 1);
}
.logo-layout {
    position: relative;
}
.side-panel {
    position: static;
}
.side-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.82, 0.1, 0.27, 1) 0.17s;
}
.side-box.box-in .side-photo {
    opacity: 1;
}

.frontpage-info-text {
    font-size: 20px;
    color: #d8dae6;
    text-align: center;
    font-weight: bold;
}

.frontpage-right-col {
    display: flex;
    flex-direction: column;
    gap: 13px;
    justify-content: center;
    font-size: 1.15em;
    align-items: stretch;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.info-block {
    background: linear-gradient(92deg, #2b3046 50%, #313855 100%);
    border-radius: 14px;
    padding: 18px 20px 13px 20px;
    color: #fafdff;
    box-shadow: 0 2px 10px #0003;
    margin-bottom: 0;
    border: 1.5px solid #30355a;
}

.highlight-block {
    margin-bottom: 0px;
}

.block-title {
    font-size: 1.12em;
    font-weight: bold;
    color: #4be8fe;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px #0005;
}

.highlight-vocab {
    color: #42f6c7;
    font-weight: 600;
}
.highlight-mindmap {
    color: #f1b84c;
    font-weight: 600;
}
.highlight-flashcards {
    color: #a36ee6;
    font-weight: 600;
}
.highlight-quiz {
    color: #38d1c1;
    font-weight: 600;
}

.study-note {
    text-align: center;
    font-size: 0.93em;
    opacity: 0.8;
    margin-top: 8px;
    margin-bottom: 0;
    color: #e7eafb;
    letter-spacing: 0.02em;
    font-weight: 400;
}
.frontpage-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 0;
}
.frontpage-cta-group .cta-box,
.frontpage-cta-group .study-note {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}
.frontpage-cta-group .cta-btn {
    margin: 0 auto;
    display: inline-block;
    min-width: 170px;
}
.frontpage-cta-group .cta-link {
    margin-left: 0;
}
.frontpage-cta-group .study-note {
    margin-top: 0px;
}

@media (max-width: 850px) {
    .container {
        width: 98vw;
        padding: 18px 0vw;
    }
}

/* Responsive side-panel/side-box for small screens */
@media (max-width: 800px) {
    .logo-layout {
        width: 98vw;
        grid-template-columns: 1fr 280px 1fr;
        gap: 12px;
        height: 290px;
        max-width: 99vw;
        margin-bottom: 80px;
    }
    .logo-box img {
        width: 350px !important;
        height: 350px !important;
    }
    .side-box {
        width: 150px !important;
        height: 150px !important;
        border-radius: 10px;
    }
    .title-screen-font {
        font-size: 65px !important;
    }
    .frontpage-info > div[style*="display: grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 22px;
    }
    .features-list,
    .frontpage-right-col {
        width: 100%;
        max-width: none;
        flex: 1 1 0;
        min-width: 0;
    }
    .features-list {
        margin-bottom: 0;
        width: 95%;
    }
    .frontpage-right-col {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .logo-layout {
        grid-template-columns: 1fr 130px 1fr;
        height: 160px;
        margin-bottom: 120px;
    }
    .logo-box img {
        width: 200px !important;
        height: 200px !important;
    }
    .side-box {
        width: 120px !important;
        height: 120px !important;
        border-radius: 6px;
    }
    .title-screen-font {
        font-size: 50px !important;
    }
}

/*Bottom front page intro*/

.frontpage-info {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s cubic-bezier(0.69, 0.32, 0.49, 1.01),
        transform 0.95s cubic-bezier(0.69, 0.32, 0.49, 1.01);
    will-change: opacity, transform;
}
.frontpage-info.visible {
    opacity: 1;
    transform: translateY(0);
}

/*Popup start*/

#prealpha-popup-bg {
    position: fixed;
    inset: 0;
    background: rgba(29, 33, 51, 0.64);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.26s;
}
#prealpha-popup-bg.hide {
    opacity: 0;
    pointer-events: none;
}
#prealpha-popup {
    background: linear-gradient(120deg, #232945 65%, #41597a 100%);
    color: #e9ecef;
    border-radius: 16px;
    max-width: 94vw;
    width: 380px;
    box-shadow: 0 8px 48px #13172d33;
    padding: 30px 18px 24px 26px;
    position: relative;
    font-family: "Segoe UI", Arial, sans-serif;
    display: flex;
    flex-direction: column;
}
#prealpha-close {
    position: absolute;
    right: 16px;
    top: 14px;
    background: none;
    border: none;
    color: #77eae2;
    font-size: 1.55em;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.17s;
    z-index: 1;
}
#prealpha-close:hover {
    color: #fff;
}
.prealpha-popup-title {
    font-size: 1.22em;
    font-weight: bold;
    margin-bottom: 13px;
    color: #25faad;
    text-shadow: 0 2px 12px #28284a44;
    letter-spacing: 0.01em;
    text-align: center;
}
.prealpha-popup-body {
    font-size: 1em;
    line-height: 1.62;
    text-align: center;
}
@media (max-width: 470px) {
    #prealpha-popup {
        width: 98vw;
        max-width: 99vw;
        padding: 18px 6vw 17px 6vw;
    }
    .prealpha-popup-title {
        font-size: 1em;
    }
    .prealpha-popup-body {
        font-size: 0.92em;
    }
    #prealpha-close {
        right: 10px;
        top: 9px;
        font-size: 1.3em;
    }
}

/*Popup end*/
/*5 Images fit on smaller screens*/

/* Ensures container fits on ANY small device */
@media (max-width: 700px) {
    .logo-layout {
        grid-template-columns: 1fr 44vw 1fr !important;
        gap: 2vw !important;
        height: 24vw !important;
        margin-bottom: 30vw !important;
    }
    .logo-box img {
        width: 50vw !important;
        height: 50vw !important;
    }
    .side-box {
        width: 20vw !important;
        height: 20vw !important;
        border-radius: 2vw !important;
    }
}

@media (max-width: 850px) {
    .frontpage-info {
        width: 92%;
    }
}

@media (max-width: 800px) {
    .frontpage-info {
        width: 91%;
    }
}

@media (max-width: 750px) {
    .frontpage-info {
        width: 90%;
    }
}

@media (max-width: 700px) {
    .frontpage-info {
        width: 89%;
    }
}

@media (max-width: 650px) {
    .frontpage-info {
        width: 88%;
    }
}

@media (max-width: 600px) {
    .frontpage-info {
        width: 87%;
    }
}

@media (max-width: 550px) {
    .frontpage-info {
        width: 86%;
    }
}

@media (max-width: 500px) {
    .frontpage-info {
        width: 84%;
    }
}

@media (max-width: 450px) {
    .frontpage-info {
        width: 82%;
    }
}

@media (max-width: 400px) {
    .frontpage-info {
        width: 80%;
    }
}

@media (max-width: 350px) {
    .frontpage-info {
        width: 78.5%;
    }
}

@media (max-width: 300px) {
    .frontpage-info {
        width: 75.5%;
    }
}

@media (max-width: 250px) {
    .frontpage-info {
        width: 72.5%;
    }
}

@media (max-width: 200px) {
    .frontpage-info {
        width: 69.5%;
    }
}

@media (max-width: 520px) {
    .frontpage-cta-group {
        align-items: center;
        margin-right: 31px;
    }
    .frontpage-cta-group .cta-box,
    .frontpage-cta-group .study-note {
        text-align: center;
        font-size: 0.98em;
    }
    .frontpage-cta-group .cta-btn {
        font-size: 0.95em;
        padding: 10px 20px;
        min-width: 120px;
    }
    .frontpage-cta-group .cta-link {
        font-size: 0.93em;
    }
}

#logoGif {
    opacity: 0;
    transform: scale(0.66);
    filter: blur(14px);
    transition:
        opacity 0.56s cubic-bezier(0.79, 0.01, 0.26, 0.99),
        transform 1s cubic-bezier(0.88, 0.18, 0.37, 1.08),
        filter 0.75s cubic-bezier(0.6, 0.1, 0.65, 1);
    will-change: opacity, transform, filter;
}
#logoGif.logo-in {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

