/* Global styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* Header */
header {
    background-color: #fefedc;
    padding: 20px 0;
    text-align: center;
}

header a {
    display: inline-block;
    text-decoration: none;
}

.header-logo {
    width: 250px;
    height: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.03);
}

/* Main content */
main {
    flex: 1;
    background-color: #393838;
    color: #fefedc;
    text-align: center;
    padding: 40px 0;
    width: 100%;  /* 추가 */
    box-sizing: border-box;  /* 추가 */
    overflow-x: hidden;  /* 추가 */
}

/* Footer */
footer {
    background-color: #fefedc;
    padding: 50px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.footer-link {
    height: 18px;
    width: auto;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.footer-link:hover {
    transform: scale(1.03);
}

.copyright {
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
}

/* Home page specific */
.rainbow-pop-logo {
    width: 100px;
    height: auto;
    margin-top: 30px;
    margin-bottom: 10px;
}

.google-play-badge {
    width: 300px;
    height: auto;
    margin-bottom: 30px;
}

.video-container {
    width: 100%; /*56.25%;*/
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000000;
    margin-bottom: 60px;
}

/* About page specific */
.about-logo {
    height: 30px;
    width: auto;
    margin-top: 30px;
    margin-bottom: 10px;
}

.about-text {
    font-size: 28px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sns-title {
    font-size: 20px;
    font-weight: bold;
    margin: 60px 0 30px;
}

.sns-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.sns-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sns-icons img:hover {
    transform: scale(1.03);
}

.contact-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}

.contact-email {
    font-size: 18px;
    margin-bottom: 60px;
}

.contact-email a {
    color: #fefedc;
    text-decoration: none;
}

/* Credits page specific */
.credits-logo {
    height: 30px;
    width: auto;
    margin-top: 30px;
    margin-bottom: 10px;
}
.highlight {
    font-size: 18px;
    margin: 5px 0;
}
.terms-content a {
    color: #fefedc;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.terms-content a:hover {
    opacity: 0.7;
}

/* Terms page specific */
.terms-logo {
    height: 30px;
    width: auto;
    margin-top: 30px;
    margin-bottom: 10px;
}

.terms-content {
    max-width: min(800px, 100%);
    margin: 0 auto;
    padding: 0 10px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.terms-content h1 {
    text-align: center;
    margin-bottom: 40px;
}

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

.terms-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.terms-content ul {
    padding-left: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.terms-content ul li {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

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

.terms-content ul ul {
    padding-left: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        width: 80%;
    }

    .about-text {
        font-size: 20px;
    }

    .sns-icons {
        gap: 15px;
    }

    .sns-icons img {
        width: 35px;
        height: 35px;
    }

    .terms-content {
        padding: 0 10px;
        margin: 0px;
        max-width: 100%;
    } /* 추가 1월 10일*/
    
    .terms-content h1 {
        font-size: 24px;
    } /* 추가 1월 10일*/
    
    .terms-content h2 {
        font-size: 20px;
    } /* 추가 1월 10일*/
    
    .terms-content p {
        font-size: 16px;
    } /* 추가 1월 10일*/
}