@font-face {
    font-family: Core-Bandi-Face;
    src: url("/assets/font/Core-Bandi-Face.TTF");
}

body {
    font-family: Core-Bandi-Face;
    overflow-x: hidden;
}

html {
    background: repeating-conic-gradient(#0e0e0e 0 25%, #080808 0 50%) 50% / 76px 76px
}

.nearest-neighbor {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
}

#login-screen {
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    padding: 25px;
    border-color: white;
    border-radius: 2px;
    border-style: solid;
}

#content {
    display: flex;
    width: 90vw;
    margin: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 5px;
    padding-top: 25px;
    padding-bottom: 25px;
    gap:25px;
}

@media screen and (max-width: 820px) {
    #content {
        width: 100vw;
        border-width: 0px;
        border-top-width: 5px;
        margin-left: -8px;
        padding-left: 0px;
        padding-right: 0px;
        background-color: rgba(0, 0, 0, 0);
    }
}

.text {
    color:white;
    font-size: 25px;
    text-shadow: 4px 3px black;
}

.login-text {
    color: white;
    font-size: 25px;
    left: 100px;
}

@media screen and (max-width: 820px) {
    .login-text {
        font-size: 4.5vw;
    }
}

.song-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 15vw;
    height: 12vw;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    transition: scale 0.15s;
    padding-top: 10px;
}

.song-panel:hover {
    scale: 1.05;
}

@media screen and (max-width: 820px) {
    .song-panel {
        width: 67vw;
        height: 50vw;
    }

    .song-panel:hover {
        scale: 1;
    }
}

#song-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 25px;
}

@media screen and (max-width: 820px) {
    #song-list {
        display: grid;
        grid-template-columns: repeat(5, 1fr); 
        gap: 500px;
    }
}

@media screen and (max-width: 820px) {
    #song-list {
        display: grid;
        grid-template-columns: repeat(1, 1fr); 
        gap: 25px;
    }
}

.song-text {
    inset: 0;
    
    display: inline-block;

    height: 10%;

    font-size: 1vw;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#song-desc {
    font-size: 0.8vw;
    height: 20%;
}

@media screen and (max-width: 820px) {
    .song-text {
        font-size: 5vw;
    }
}

@media screen and (max-width: 820px) {
    #song-desc {
        font-size: 4vw;
    }
}

.tfp-yt-embed {
    margin-left: auto;
    margin-right: auto;
    inset: 0;
    width: 13vw;
    top: 0.5rem;
    aspect-ratio: 16 / 9;
    pointer-events: none;
    user-select: none;
    object-fit:scale-down;
}

.song-type-icon {
    pointer-events: none;
    user-select: none;
    width: 0.85vw;
}

#footer-text {
    user-select: none;
}

@media screen and (max-width: 820px) {
    .tfp-yt-embed {
        width: 60vw;
    }

    .song-type-icon {
        pointer-events: none;
        user-select: none;
        width: 3.5vw;
    }
    
    #footer-text-main {
        font-size: 3vw;
    }
}

#ui {
    user-select: none;
}

#form-panel {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    opacity: 0;
    visibility: hidden;
}
  
#form-panel-content {
    position: relative;
    top: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.form-panel-base {
    text-align: center;
}
  
#form-close-btn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: white;
    text-decoration: none;
} 

#tfp-loader {
    visibility: hidden;
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #514b82;
    animation:
        l20-1 0.8s infinite linear alternate,
        l20-2 1.6s infinite linear;
}

#tfp-logo {
    width: 256px;
    user-select: none;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 0;
    user-select: none;
}

.delete-btn:hover {
    opacity: 1;
}

@keyframes l20-1{
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{ 
    0%    {transform:scaleY(1)  rotate(0deg)}
    49.99%{transform:scaleY(1)  rotate(135deg)}
    50%   {transform:scaleY(-1) rotate(0deg)}
    100%  {transform:scaleY(-1) rotate(-135deg)}
}