@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800');

:root {
    --main-color: #dce7f7;
    --main-color-light: #e8f0fe;
    --point-color: #3478f6;
    --point-color2: #60b6f5;
    --soft-color: #f2f4fa;
    --bg-color: #0f5196;
    --font-main: 'Manrope', 'Noto Sans KR', Arial, sans-serif;
    --font-color: #1c1d21;
}

body {
    margin: 0;

    min-height: 100vh;
    padding: 0;
    padding-top: 90px;

    background-image: linear-gradient(to bottom, white 70%, var(--main-color) 100%);
    box-sizing: border-box;

    color: var(--font-color);
    font-family: var(--font-main);
}
body:has(.admin-login[style*="display: flex"]) {
    overflow: hidden;
}
body:has(.add-song[style*="display: flex"]) {
    overflow: hidden;
}
body:has(.song-detail[style*="display: flex"]) {
    overflow: hidden;
}
body:has(.admin-alert[style*="display: flex"]) {
    overflow: hidden;
}

header {
    position: fixed; /* 위치 */
    top: 0;
    left: 0;
    z-index: 10;

    width: 100%; /* 크기 */
    height: 70px;

    display: flex; /* 꾸밈 */
    background-color: white;
    border-bottom: 1px solid #eaeaea;

    align-items: center;
    flex-wrap: wrap;
}
header h1 {
    margin-left: 35px;

    width: auto;

    font-size: 25px;
    font-weight: 700;
    letter-spacing: 5px;
    text-shadow: 0 2px 12px #3564f522;
    line-height: 0;

    text-align: left;
}
header .admin-button {
    position: absolute;
    right: 35px;

    padding: 8px 20px;

    border: 2px solid var(--font-color);
    box-sizing: border-box;
    background-color: white;

    color: var(--font-color);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;

    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
}
header .admin-button:hover {
    background-color: var(--font-color);

    color: white;
}

.song, .form, .requested {
    margin: 15px auto 0 auto;

    width: 80vw;
    padding: 35px;

    display: block;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.10);
    box-sizing: border-box;
}

.song {
    margin: 0 auto 0 auto;
}

.song-queue strong, .admin-queue strong {
    margin-left: 10px;
    margin-bottom: 15px;

    font-weight: 500;
    font-size: 20px;
    letter-spacing: 1px;
}
.song-queue .queue, .admin-queue .aqueue {
    margin-top: 10px;
}
.song-queue .queue .empty, .admin-queue .aqueue .aempty {
    margin-top: 10px;
    margin-left: 10px;

    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;
}
.song-queue .queue #song-item, .admin-queue .aqueue #admin-item, .request-queue .rqueue #request-item {
    padding: 10px;
}
.song-queue .queue #song-item:hover, .admin-queue .aqueue #admin-item:hover, .request-queue .rqueue #request-item:hover {
    padding: 10px;

    background-color: var(--main-color-light);
    border-radius: 20px;
    box-shadow: 0 2px 14px #3564f522;

    transition: box-shadow 0.2s, background 0.2s;
}
.song-queue .queue #song-item .song-content, .admin-queue .aqueue #admin-item .song-content, .request-queue .rqueue #request-item .song-content {
    display: block;
}
.song-queue .queue #song-item .song-content .song-info, .admin-queue .aqueue #admin-item .song-content .song-info, .request-queue .rqueue #request-item .song-content .song-info {
    display: inline-block;

    vertical-align: middle;
}
.song-queue .queue #song-item .song-content .song-info strong, .admin-queue .aqueue #admin-item .song-content .song-info strong, .request-queue .rqueue #request-item .song-content .song-info strong {
    margin: 0;

    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;

    vertical-align: unset;
}
.song-queue .queue #song-item .song-content .song-info span, .admin-queue .aqueue #admin-item .song-content .song-info span, .request-queue .rqueue #request-item .song-content .song-info span {
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;
}
.song-queue .action-buttons, .admin-queue .action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}
.song-queue .action-buttons #modify-song {
    width: 90px;
    height: 35px;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;

    color: white;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.song-queue .action-buttons #modify-song:hover {
    box-shadow: 0 6px 20px #3564f577;
}
.song-queue .action-buttons #reset-song {
    width: 100px;
    height: 35px;

    background-color: #ff6573;
    border: none;
    border-radius: 20px;

    color: white;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.song-queue .action-buttons #reset-song:hover {
    box-shadow: 0 6px 20px #f5354877;
}

.admin-queue .aqueue #admin-item .song-content .song-info a, .request-queue .rqueue #request-item .song-content .song-info a {
    display: block;

    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;
}
.admin-queue .aqueue #admin-item .song-content .song-actions, .request-queue .rqueue #request-item .song-content .song-actions {
    float: right;
    
    display: inline-block;

    vertical-align: middle;
}
.admin-queue .aqueue #admin-item .song-content .deleteFromAqueue, .request-queue .rqueue #request-item .song-content .delete, .request-queue .rqueue #request-item .song-content .deleteFromAqueue {
    height: 35px;
    padding-left: 15px;
    padding-right: 15px;

    background-color: #ff6573;
    border: none;
    border-radius: 20px;

    color: white;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.admin-queue .aqueue #admin-item .song-content .deleteFromAqueue:hover, .request-queue .rqueue #request-item .song-content .delete:hover, .request-queue .rqueue #request-item .song-content .deleteFromAqueue:hover {
    box-shadow: 0 6px 20px #f5354877;
}
.admin-queue .aqueue #admin-item.dragging {
    background-color: #e8f0fe;
    border: 2px dashed #3478f6;
    border-radius: 20px;
    opacity: 0.5;
}
.admin-queue .action-buttons #save-draft {
    height: 35px;
    padding: 0 16px;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;
    box-sizing: border-box;

    color: white;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;
    white-space: nowrap;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.admin-queue .action-buttons #save-draft:hover {
    box-shadow: 0 6px 20px #3564f577;
}
.admin-queue .action-buttons #plus-song {
    width: 115px;
    height: 35px;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;

    color: white;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.admin-queue .action-buttons #plus-song:hover {
    box-shadow: 0 6px 20px #3564f577;
}
.admin-queue .action-buttons #deploy-song {
    width: 90px;
    height: 35px;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;

    color: white;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.admin-queue .action-buttons #deploy-song:hover {
    box-shadow: 0 6px 20px #3564f577;
}

.request {
    margin: 15px auto 0 auto;

    text-align: center;
}
.request .open-form {
    margin-bottom: 10px;

    width: 80vw;
    padding: 14px 0;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px #3564f544;

    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.request .open-form:hover {
    box-shadow: 0 6px 20px #3564f577;

    color: white;
}
.form {
    margin: 0 auto 0 auto;

    display: none;
}
.form.open {
    animation: fadein 0.3s;
}
.form.close {
    animation: fadeout 0.3s;
}
.request-form {
    display: flex;

    flex-direction: column;
}
.request-form label {
    font-weight: 200;
    font-size: 18px;
    letter-spacing: 1px;

    align-self: flex-start;
}
.request-form input {
    margin-bottom: 32px;
    margin-top: 6px;

    padding: 11px 13px;

    background-color: white;
    border: 1.6px solid #cacaca;
    border-radius: 15px;
    outline: none;

    color: var(--font-color);
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 200;

    transition: border 0.2s, background 0.2s;
}
.request-form input#ryoutube {
    margin-bottom: 5px;
}
.request-form input:focus {
    background-color: #eef5ff;
    border: 1.6px solid var(--point-color);
}
.request-form button[type="submit"] {
    margin-top: 15px;

    padding: 14px 0;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px #3564f544;

    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.request-form button[type="submit"]:hover {
    box-shadow: 0 6px 20px #3564f577;

    color: white;
}

.requested {
    margin-bottom: 30px;
}
.request-queue {
    position: relative;
}
.request-queue strong {
    margin-left: 10px;
    margin-bottom: 10px;

    display: inline-block;

    font-weight: 500;
    font-size: 20px;
    letter-spacing: 1px;

    vertical-align: middle;
}
.request-queue .sort-options {
    float: right;
    margin-bottom: 15px;

    display: inline-block;

    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;

    vertical-align: middle;
}
.request-queue .sort-options select {
    width: 152px;
    height: 32px;
    padding-left: 10px;

    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    border: 1.6px solid #cacaca;
    border-radius: 20px;
    appearance: none;

    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;

    transition: border 0.2s, background 0.2s;
}
.request-queue .sort-options select:focus {
    background-color: #eef5ff;
    border: 1.6px solid var(--point-color);
}
.request-queue .rqueue .rempty {
    margin-left: 10px;

    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;
}
.request-queue .rqueue #request-item .song-content .accept {
    margin-right: 10px;

    height: 35px;
    width: 105px;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;

    color: white;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;

}
.request-queue .rqueue #request-item .song-content .accept:hover {
    box-shadow: 0 6px 20px #3564f577;
}

.admin-login, .youtube-link, .song-detail, .add-song {
    position: fixed;
    z-index: 1000;

    left: 0; top: 0; width: 100vw; height: 100vh;

    display: none;
    background-color: #0006;

    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.admin-login .window, .song-detail .window, .add-song .window, .admin-alert .window {
    width: 50vw;
    padding: 35px;

    display: block;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.10);
    box-sizing: border-box;
}
.admin-login .window.open, .song-detail .window.open, .add-song .window.open, .admin-alert .window.open {
    animation: window-pop 0.2s;
}
.admin-login .window.close, .song-detail .window.close, .add-song .window.close, .admin-alert .window.close {
    animation: window-popdown 0.2s;
}
.admin-login .window .content, .song-detail .window .content, .add-song .window .content, .admin-alert .window .content {
    position: relative;
}
.admin-login .window .content strong, .song-detail .window .content strong, .add-song .window .content strong, .admin-alert .window .content strong {
    display: inline-block;

    font-weight: 500;
    font-size: 20px;
    letter-spacing: 1px;

    vertical-align: middle;
}
.admin-login .window .content .close, .song-detail .window .content .close, .add-song .window .content .close, .admin-alert .window .content .close {
    float: right;
    margin: 0;

    display: inline-block;

    color: var(--point-color2);
    font-size: 27px;

    cursor: pointer;
    transition: color 0.2s;
    vertical-align: middle;
    line-height: 1;
}
.admin-login .window .content .close:hover, .song-detail .window .content .close:hover, .add-song .window .content .close:hover, .admin-alert .window .content .close:hover {
    color: var(--point-color);
}
.admin-login .window .content label, .song-detail .window .content label, .add-song .window .content label, .admin-alert .window .content label {
    margin-top: 15px;

    display: block;

    color: var(--font-color);
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;

    align-self: flex-start;
}
.admin-login .window .content input, .song-detail .window .content input, .add-song .window .content input, .admin-alert .window .content input {
    margin-bottom: 4px;
    margin-top: 6px;

    width: 100%;
    padding: 11px 13px;

    background-color: white;
    border: 1.6px solid #cacaca;
    border-radius: 15px;
    outline: none;
    box-sizing: border-box;

    color: var(--font-color);
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 200;

    transition: border 0.2s, background 0.2s;
}
.admin-login .window .content input:focus, .song-detail .window .content input:focus, .add-song .window .content input:focus, .admin-alert .window .content input:focus {
    background-color: #eef5ff;  
    border: 1.6px solid var(--point-color);
}
.admin-login .window .content button, .song-detail .window .content button, .add-song .window .content button, .admin-alert .window .content button {
    margin-top: 20px;

    width: 100%;
    padding: 12px 0;

    background-color: var(--point-color);
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px #3564f544;
    box-sizing: border-box;

    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.admin-login .window .content button:hover, .song-detail .window .content button:hover, .add-song .window .content button:hover, .admin-alert .window .content button:hover {
    box-shadow: 0 6px 20px #3564f577;

    color: white;
}

.song-detail .window .content #youtubePlayer, .song-detail .window .content #copyPlayer {
    margin-top: 15px;

    width: 100%;
    aspect-ratio: 16 / 9;

    display: block;
    border: none;
}

@media (max-width: 600px) {
    body {
        padding-top: 150px;
    }

    header {
        height: auto;
        min-height: 0;
        padding: 10px 0;

        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
    header h1 {
        margin-left: 0;

        width: 100%;

        line-height: 1;

        text-align: center;
    }
    header .admin-button {
        position: static;
        right: auto;
        top: auto;
        margin: 0 auto 8px auto;

        width: 80%;
        padding: 6px 18px;

        display: block;

        transform: none;
    }

    .admin-login .window, .song-detail .window, .add-song .window, .admin-alert .window {
        width: 100%;
    }

    .song-queue .action-buttons,
    .admin-queue .action-buttons {
        align-items: flex-start;
        gap: 10px;
    }

    .song-queue .action-buttons #modify-song,
    .song-queue .action-buttons #reset-song,
    .admin-queue .action-buttons #save-draft,
    .admin-queue .action-buttons #plus-song,
    .admin-queue .action-buttons #deploy-song {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .admin-queue .aqueue #admin-item .song-content,
    .request-queue .rqueue #request-item .song-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-queue .aqueue #admin-item .song-content .song-info,
    .request-queue .rqueue #request-item .song-content .song-info {
        width: 100%;
        display: block;
    }

    .admin-queue .aqueue #admin-item .song-content .song-actions, .request-queue .rqueue #request-item .song-content .song-actions {
        float: none;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .admin-queue .aqueue #admin-item .song-content .deleteFromAqueue,
    .request-queue .rqueue #request-item .song-content .accept,
    .request-queue .rqueue #request-item .song-content .delete,
    .request-queue .rqueue #request-item .song-content .deleteFromAqueue {
        margin-right: 0;
        flex: 0 0 auto;
    }
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeout {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-16px); }
}
@keyframes window-pop {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}
@keyframes window-popdown {
    from { opacity: 1; transform: scale(1);}
    to { opacity: 0; transform: scale(0.95);}
}
