html {
    inset: -2000px; /* oversized so tiling never shows an edge while translating */
    background:
        linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.95)),
        url("Assets/UI/background.webp");
    background-repeat: repeat;
    background-size: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    border-radius: 10px;
    color: white;
    margin: 0;
    padding: 0;
}

.title, .subtitle {
    text-align: center;
    padding: 0 4%;
}

.title {
    margin-top: 40px;
    font-size: clamp(20px, 6vw, 32px);
}

.subtitle {
    font-size: clamp(14px, 3vw, 16px);
}


.list-box {
    background-color: hsla(0, 0%, 100%, 0.05);
    margin: 3%;
    padding: 3%;
}

.list-item {
    padding: 2%;
    background-color: hsl(0, 0%, 10%);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    border: 5px solid black;
    margin-bottom: -5px;
}

.open-in-new-tab-icon {
    width: 20px;
    border-radius: 0;
    transition: ease-in-out 10ms;
    transform: scale(1) translateY(1.5px);
}
.open-in-new-tab-icon:hover {
    transform: scale(1.2) translateY(0px);
}

.info {
    display: flex;
    flex-direction: column;
    min-width: 0; /* allows flex child text to actually wrap instead of overflowing */
    flex: 1 1 200px;
}

.info-level-title,
.info-song-title,
.info p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.info-level-title {
    font-size: 30px;
    font-weight: bold;
}
.info-song-title {
    font-size: 20px;
    font-weight: bold;
}


.yt-thumbnail {
    width: 200px;
    max-width: 100%;
    height: auto;
    flex-shrink: 1;
    transition: ease-in-out 100ms;
}
.yt-thumbnail:hover {
    transform: scale(1.025);
    filter: brightness(0.67);
}
.yt-thumbnail:active {
    transition: ease-out 50ms;
    transform: scale(0.9);
}
.yt-thumbnail:hover + .open-in-new-tab-thumbnail {
    filter: opacity(1) drop-shadow(2px 2px 5px black);
}
.thumbnail-link {
    position: relative;
    display: inline-block;
    line-height: 0; /* removes inline-image baseline gap */
}

.open-in-new-tab-thumbnail {
    border-radius: 0;
    transition: ease-in-out 100ms;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25%;
    min-width: 24px;
    max-width: 50px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: opacity(0);
}

@media (max-width: 600px) {
    .list-box {
        margin: 4% 2%;
        padding: 4% 2%;
    }

    .list-item {
        gap: 12px;
        padding: 4%;
    }

    .yt-thumbnail {
        width: 140px;
    }

    .info-level-title {
        font-size: 22px;
    }

    .info-song-title {
        font-size: 17px;
    }
}

