* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 70px;
    font-family: "Noto Sans KR", sans-serif;
}

body {
    font-family: "Noto Sans KR", sans-serif;
}

@font-face {
    font-family: "Cafe24Surround";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff") format("woff");
    font-weight: normal;
    font-display: swap;
}

.footer {
    text-align: center;
    padding: 0.5rem;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: "Cafe24Surround", sans-serif;
}

.copyright {
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;

    background-color: rgba(0, 0, 0);
    color: #fff;

    padding: 0 8%;

    width: 100%;
    height: 70px;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 9999;

    font-family: "Cafe24Surround", sans-serif;
}

.navbar_logo {
    padding: 20px;
    font-size: 20px;
}

.navbar_logo a {
    text-decoration: none;
    color: #ffffff;
    font-size: 30px;
}

.navbar_ul {
    display: flex;
    padding-left: 0;
    align-items: center;
}

.navbar li {
    list-style: none;
    font-weight: 400;
    padding: 8px 15px;
}

.navbar_ul a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.navbar_toggleBtn {
    display: none;
    scroll-behavior: smooth;
}

.main_menu {
    position: relative;
    width: 100vw;
    height: calc(100vh - 70px);
    margin-top: 70px;
    overflow: hidden;
}

.main_menu img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.main_text {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 100%;

    text-align: center;
    color: #ffffff;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);

    z-index: 1;
}

.main_text h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
}

.main_text p {
    margin-top: 15px;
    font-size: 20px;
}

.main_button {
    display: inline-block;

    padding: 12px 28px;
    margin-top: 20px;

    border-radius: 10px;

    color: #ffffff;
    background: rgba(100, 100, 100, 1);

    text-decoration: none;
    font-size: 16px;

    transition: 0.3s ease;
}

.main_button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

.mod-section {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 50px 40px 80px;
}

.mod-section h2 {
    margin: 0;

    text-align: center;

    font-size: 32px;
    font-weight: 700;
}

.mod-list {
    width: 100%;

    margin-top: 50px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 30px;
}

.mod-card {
    width: fit-content;
    min-width: 700px;
    max-width: 100%;

    padding: 26px 24px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    color: #fff;
}

.mod-card h3 {
    margin: 0 0 20px;

    font-size: 22px;
}

.mod-content {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;
}

.mod-image {
    width: 320px;
    height: 180px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 14px;
}

.mod-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.mod-info {
    width: 340px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.mod-detail-row {
    display: flex;

    gap: 40px;
}

.mod-detail-row .mod-detail {
    min-width: 90px;
}

.mod-detail p {
    margin: 0 0 4px;

    font-size: 13px;
    color: #aaa;
}

.mod-detail span {
    font-size: 16px;
}

.download-buttons {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-wrap: nowrap;
    white-space: nowrap;
}

.download-btn,
.download2-btn,
.custom-btn {
    flex: 0 0 auto;

    width: 100px;
    height: 34px;

    padding: 0;

    border: none;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;
}

.download-btn,
.download2-btn {
    background: #fff;
    color: #000;
}

.custom-btn {
    background: rgba(255, 255, 255, 0.15);

    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.25);
}

.download-btn:hover,
.download2-btn:hover,
.custom-btn:hover {
    opacity: 0.8;
}

/* Terms Modal */

.terms-modal {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: 20000;
}

.terms-modal.active {
    display: flex;
}

.terms-modal-box {
    position: relative;

    width: 90%;
    max-width: 500px;

    padding: 30px;

    border-radius: 18px;

    background: rgba(30, 30, 30, 0.95);

    color: #fff;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.terms-step {
    display: none;
}

.terms-step.active {
    display: block;
}

.terms-modal-box h3 {
    margin: 0 0 20px;

    font-size: 22px;

    text-align: center;
}

.terms-language {
    display: flex;

    gap: 6px;

    margin-bottom: 15px;
}

.language-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.06);

    color: #aaa;

    padding: 7px 14px;

    border-radius: 8px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.12);

    color: #fff;
}

.language-btn.active {
    background: #fff;

    color: #000;
}

.terms-content {
    max-height: 300px;

    overflow-y: auto;

    padding: 18px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 14px;

    line-height: 1.7;

    color: #ddd;
}

.terms-language-content {
    display: none;
}

.terms-language-content.active {
    display: block;
}

.terms-content p {
    margin: 0 0 15px;
}

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

.terms-close {
    position: absolute;

    top: 12px;
    right: 16px;

    width: 30px;
    height: 30px;

    border: none;

    background: none;

    color: #aaa;

    font-size: 26px;

    cursor: pointer;
}

.terms-close:hover {
    color: #fff;
}

.privacy-agree {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 20px;
    padding: 14px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    cursor: pointer;

    line-height: 1.5;
}

.privacy-agree input {
    width: 18px;
    height: 18px;

    margin-top: 2px;

    flex-shrink: 0;

    cursor: pointer;
}

#termsAgree:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

.terms-buttons {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;
}

.terms-buttons button {
    width: 140px;
    height: 38px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.terms-cancel {
    border: 1px solid rgba(255, 255, 255, 0.25);

    background: rgba(255, 255, 255, 0.1);

    color: #fff;
}

.terms-agree {
    border: none;

    background: #fff;

    color: #000;
}

.terms-buttons button:hover {
    opacity: 0.8;
}

/* Tablet / Mobile */

@media screen and (max-width: 1100px) {

    .navbar {
        flex-direction: row;

        align-items: flex-start;

        height: 70px;

        padding: 0;
    }

    .navbar_ul {
        display: flex;

        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        margin: 0;
        padding: 0;

        flex-direction: column;

        background-color: transparent;

        z-index: 9999;

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        transform: translateY(-10px);

        pointer-events: none;

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            transform 0.35s ease;
    }

    .navbar_ul.active {
        max-height: 300px;

        opacity: 1;

        transform: translateY(0);

        pointer-events: auto;
    }

    .navbar_ul li {
        width: 100%;

        margin: 0;
        padding: 0;

        display: block;

        background-color: rgba(0, 0, 0, 0.65);
    }

    .navbar_ul li:hover {
        background-color: rgba(34, 34, 34, 0.75);
    }

    .navbar_ul a {
        display: block;

        width: 100%;

        padding: 18px 0;

        color: #ffffff;

        text-align: center;

        text-decoration: none;
    }

    .navbar_toggleBtn {
        display: block;

        position: absolute;

        right: 25px;
        top: 22px;

        z-index: 10000;

        color: #ffffff;

        font-size: 24px;

        text-decoration: none;
    }

    .navbar_toggleBtn i {
        color: #ffffff;
    }

    .footer {
        font-size: 0.7rem;
    }

    .mod-section {
        padding: 60px 20px;
    }

    .mod-section h2 {
        font-size: 28px;
    }

    .mod-list {
        margin-top: 35px;

        width: 100%;
    }

    .mod-card {
        width: 100%;

        min-width: 0;

        max-width: 400px;

        padding: 22px 18px;
    }

    .mod-card h3 {
        margin-bottom: 18px;

        font-size: 19px;

        text-align: center;
    }

    .mod-content {
        flex-direction: column;

        width: 100%;

        gap: 20px;
    }

    .mod-image {
        width: 100%;

        max-width: 320px;

        height: auto;

        aspect-ratio: 16 / 9;
    }

    .mod-info {
        width: 100%;

        max-width: 320px;

        height: 180px;

        display: flex;

        flex-direction: column;
    }

    .mod-detail-row {
        width: 100%;

        justify-content: flex-start;

        gap: 20px;
    }

    .mod-detail-row .mod-detail {
        min-width: 0;
    }

    .download-buttons {
        margin-top: auto;

        width: 100%;

        display: flex;

        justify-content: center;

        gap: 10px;

        flex-wrap: nowrap;
    }

    .download-btn,
    .download2-btn,
    .custom-btn {
        width: 100px;

        flex: 0 0 100px;
    }
}

@media screen and (max-width: 939px) {

    .terms-modal-box {
        width: calc(100% - 40px);

        padding: 25px 20px;
    }

    .terms-buttons button {
        width: 50%;
    }
}

@media screen and (max-width: 800px) {

    .main_text h1 {
        margin: 0;

        font-size: 25px;

        font-weight: 700;
    }

    .main_text p {
        margin-top: 15px;

        font-size: 20px;
    }
}