@font-face {
    font-family: 'Ownglyph_ParkDaHyun';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/Ownglyph_ParkDaHyun.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Sans+KR:wght@100..900&display=swap');

h1 {
    font-family: 'Ownglyph_ParkDaHyun';
    color: #111;
    font-size: 2.5em;
}

body {
    font-family: "Noto Sans KR",'Apple SD Gothic Neo', Sans-serif;
    font-weight: 400;
    letter-spacing: -.05em;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

#logo {
    width: 100px;
}

#container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(-10px);
    animation: fadeIn 0.5s ease-out forwards;
}

#video1-title, #video2-title {
    font-weight: 600;
}

#participants {
    font-size: 2em;
    font-weight: 900;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.battle-container {
    display: flex;
    justify-content: space-between; /* 좌우 배치 */
    gap: 30px;
    margin: 20px 0;
    max-width: 1000px; /* 최대 너비 제한 */
    width: 100%;
}

.video-box {
    position: relative;
    width: 48%; /* 영상 크기를 2개가 화면에 잘 배치되도록 설정 */
}

iframe {
    width: 100%;
    height: 160px;
    border: none;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

button {
    background: #7F5AF0;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: #5a3fa9;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#result {
    display: none;
}

#final-result {
    font-size: 24px;
    margin-top: 50px;
}

.share-btn {
    width: 100%;
    margin-top: 0.5em;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    opacity: 0.8;
}

#share-x {
    background-color: #222;
    color: white;
}

#restart-button {
    background-color: #555;
    color: white;    
}

#people-btn {

}

#share-url {
    background-color: #EF447D;
    color: white; 
}


.start-container {
    margin-top: 20px;
}

#welcome-image {
    width: 100%;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
    #container {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }

    .button-container button {
        padding: 8px 15px;
        font-size: 14px;
    }
}