* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: Helvetica;
    src: url(assets/fonts/hebl-webfont.woff);
}

@font-face {
    font-family: HelveticaRoundedLTStd-Bd;
    src: url(assets/fonts/HelveticaRoundedLTStd-Bd.woff);
}

body {
    font-family: Helvetica, sans-serif;
    background: #3dc4e7 url(assets/backSite.jpg) top center no-repeat;
    color: white;
}

nav {
    display: flex;
    justify-content: center;
    padding: 40px 0 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.nav-container {
    background-color: #7ebb42;
    border-radius: 15px 15px 0 0;
    padding: 25px 30px;
    display: grid;
    column-gap: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: min(1200px, calc(100% - 60px));
    margin: 40px auto 0;
    position: relative;
}

.logo {
    height: 140px;
    width: auto;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    z-index: 20;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
}

.nav-left,
.nav-right {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-left {
    grid-column: 1;
    justify-self: start;
}

.nav-right {
    grid-column: 2;
    justify-self: end;
}

.nav-container li {
    font-size: 17px;
    color: white;
    transition: transform 0.2s;
}

.nav-container li:hover {
    transform: scale(1.1);
}

.nav-container hr {
    width: 2px;
    height: 25px;
    background-color: white;
    border: none;
    margin: 0;
}

.hidden-nav-hr {
    visibility: hidden;
}

main {
    display: flex;
    justify-content: center;
    padding: 0 0 40px;
}

.content-body {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 85%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 40px;
    width: min(1200px, calc(100% - 60px));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 50px rgba(255, 255, 255, 0.4);
    color: white;
    position: relative;
}

.under-nav {
    border-radius: 0 0 15px 15px;
}

.under-footer {
    border-radius: 15px 15px 0 0;
}

.content-body h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.content-body p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.content-body p:last-child {
    margin-bottom: 0;
}

.subtitle {
    text-align: center;
    position: relative;
    top: -20px;
    margin-bottom: 30px;
    font-size: 16px;
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
}

.info-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.info-section.reverse {
    flex-direction: row-reverse;
}

.info-section video {
    width: 35%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.info-text {
    width: 55%;
}

.info-text h2 {
    font-size: 29px;
    margin-bottom: 15px;
}

.info-section.reverse .info-text p {
    text-align: right;
}

.info-text p {
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-section.reverse .info-text {
    text-align: right;
}

.cta-img {
    height: 200px;
    width: auto;
    transform: translateY(-20px);
    transition: 0.3s ease;
    filter: drop-shadow(0 10px 0px rgba(61, 109, 6, 0.4)) drop-shadow(0 18px 15px rgba(0, 0, 0, 0.3));
}

.cta-btn:hover .cta-img {
    transform: translateY(-25px);
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.45));
}

@media (max-width: 1190px) {
    .cta-img {
        height: 150px;
    }
}

@media (max-width: 900px) {
    .info-section,
    .info-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .info-section video,
    .info-text {
        width: 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #7ebb42;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content p {
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
    margin-bottom: 25px;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons a,
.modal-buttons button {
    padding: 14px 26px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.download-btn {
    background: #3dc4e7;
    color: white;
}

.modal-buttons button {
    background: white;
    color: #7ebb42;
}

.modal-buttons a:hover,
.modal-buttons button:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.doki-img {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 370px;
    height: auto;
    pointer-events: none;
}

.modal-text {
    text-align: left;
    padding-left: 350px;
}

@media (max-width: 850px) {
    .doki-img {
        width: 215px;
    }

    .modal-text {
        padding-left: 200px;
    }
}

@media (max-width: 675px) {
    .modal-body {
        flex-direction: column;
        text-align: center;
    }

    .modal-text {
        text-align: center;
        padding-left: 0;
    }

    .doki-img {
        display: none;
    }

    .cta-img {
        height: 90px;
        margin-top: 20px;
    }
}

@media screen and (max-width: 1070px) {
    .nav-container {
        justify-content: center;
        padding: 80px 30px 25px;
        max-width: calc(100% - 60px);
    }

    .logo {
        height: 90px;
    }

    .hidden-nav-hr {
        visibility: visible;
    }
}

@media screen and (max-width: 640px) {
    .nav-left, .nav-right {
        gap: 35px;
        flex-direction: column;
    }

    .nav-container hr {
        display: none;
    }
}

@media screen and (max-width: 430px) {
    .cta-img {
        height: 75px;
    }
}

.youtube-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.progress-table {
    margin-top: 40px;
    overflow-x: auto;
}

.progress-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
}

.progress-table th {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    font-size: 18px;
    border-bottom: 2px solid rgba(255,255,255,0.4);
}

.progress-table td {
    padding: 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    overflow: hidden;
    height: 25px;
}

.progress-fill {
    background: linear-gradient(90deg, #7ebb42, #3dc4e7);
    height: 100%;
    line-height: 25px;
    color: white;
    font-size: 14px;
    border-radius: 20px;
    transition: width 0.5s ease;
}

/* Link */
.table-link {
    background: #7ebb42;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.table-link:hover {
    background: #6aa838;
    transform: scale(1.05);
}

footer {
    display: flex;
    justify-content: center;
    padding: 0 0 60px;
}

.footer-container {
    background-color: #7ebb42;
    width: min(1200px, calc(100% - 60px));
    border-radius: 0 0 15px 15px;
    padding: 35px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.footer-container img {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    font-family: 'Helvetica', sans-serif;
}

.footer-links a {
    transition: 0.2s ease;
}

.footer-links a:hover {
    transform: scale(1.1);
}

.footer-container p {
    font-size: 14px;
    margin-bottom: 8px;
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
}

.under-footer-main {
    padding: 0;
}


/* ===== DOWNLOAD PAGE EXTENDED ===== */

.download-block {
    margin-top: 50px;
}

.download-block h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.download-block p {
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
    margin-bottom: 15px;
}

.recommended {
    border-left: 6px solid #3dc4e7;
    padding-left: 25px;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.os-card {
    background: #7ebb42;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.os-card span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

.os-card:hover {
    transform: scale(1.07);
}

.info-box {
    background: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 20px;
    margin-top: 25px;
    backdrop-filter: blur(5px);
}

.info-box h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-box ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.versions-section {
    margin-top: 60px;
    text-align: center;
}

.versions-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.version-card {
    background: #7ebb42;
    padding: 20px 40px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.version-card:hover {
    transform: scale(1.08);
}

.ruffle-warning {
    margin-top: 30px;
    background: rgba(255, 193, 7, 0.2);
    padding: 20px;
    border-radius: 15px;
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
    color: red;
}

.os-icon {
    font-size: 45px;
    margin-bottom: 15px;
    display: block;
}

.os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-box a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    background: rgba(61, 196, 231, 0.2);
    color: #ffffff;
    transition: all 0.2s ease;
}

.info-box a:hover {
    background: #3dc4e7;
    color: white;
    transform: scale(1.05);
}

.info-box li {
    margin-bottom: 12px;
    font-size: 17px;
}

.info-box p {
    font-size: 17px;
}

@media (max-width: 900px) {
    .os-grid {
        grid-template-columns: 1fr;
    }

    .versions-grid {
        flex-direction: column;
        align-items: center;
    }
}

.about-intro {
    margin-top: 30px;
    margin-bottom: 50px;
}

.about-intro p {
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
    font-size: 17px;
    margin-bottom: 15px;
}

.mission-section {
    margin-top: 40px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(126,187,66,0.3), rgba(61,196,231,0.3));
    border-radius: 20px;
    text-align: center;
}

.mission-section h2 {
    margin-bottom: 20px;
}

.mission-section p {
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
    font-size: 17px;
    margin-bottom: 15px;
}

.team-zigzag {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 80px;
}

.team-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 35px;
    border-radius: 30px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.team-bar:hover {
    transform: scale(1.02);
}

.team-bar img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.team-info h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

.team-info p {
    font-family: 'HelveticaRoundedLTStd-Bd', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.team-bar.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 800px) {
    .team-bar,
    .team-bar.reverse {
        flex-direction: column;
        text-align: center;
    }

    .team-bar img {
        width: 120px;
        height: 120px;
    }
}