body {
    padding: 0;
    margin: 0;
}

.wrapper {
    display: flex;
    justify-content: flex-start;
    /* gap: 2rem; */
    align-items: center;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    padding-top: 4rem;
    overflow: auto;
    background-image: url(./img/tetris_bg_1.png);
    background-size: 80%;
    image-rendering: pixelated;
    background-repeat: repeat;
    /* z-index: -1; */
}

.wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

h1, p {
    margin: 0.5rem 0;
}

.background {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    flex-direction: row;
    padding: 1rem;
    position: relative;
    margin-bottom: 4rem;
    z-index: 1;
}

.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000070;
    border-radius: 4px;
    z-index: -1;
}

.text {
    color: white;
    width: 50vw;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

.code-box {
    color: white;
    background-color: #0000006e;
    max-height: 150px;
    overflow: auto;
    margin: 0.5rem 0;
    border: solid 2px #150347;
    padding: 0 0.5rem;
    width: calc(100% - 2rem - 4px);
    user-select: all;
    font-family: monospace;
}

.music_player_holder {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border: solid 5px black;
    background-image: url(./img/pattern\ 155.gif);
    z-index: 0;
    position: relative;
}

.music_player_holder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000046;
    z-index: -1;
}

#back {
    position: absolute;
    left: 0;
    top: 0;
    image-rendering: pixelated;
    cursor: pointer;
    filter: drop-shadow(0px 0px 10px #000000);
    z-index: 2;
}

/* Custom styles element */
/* This one has no space because the StarrPlayer class has the SP-stone id */
/* Other elements have a space between the id and the class selector due to them being children of the id class */
#SP-stone.StarrPlayer {
    background-image: url(./img/drock074.jpg);
    color: white;
    padding: 1rem 1.5rem;
}

/* The space between #SP-stone and .SP-track-info selects any children with the class of SP-track-info under an element with the ID of SP-stone */
#SP-stone .SP-track-info {
    padding: 0.5rem;
    z-index: 1;
}

#SP-stone .SP-track-info::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./img/drock040.jpg);
    z-index: -1;
    filter: brightness(0.5);
    outline: 10px #000000a1;
    outline-offset: -5px;
    outline-style: ridge;
}

#SP-stone .SP-track {
    background-color: transparent;
}

#SP-stone .SP-track-name {
    background-color: transparent;
}

#SP-stone .SP-artist {
    background-color: transparent;
}

#SP-stone .SP-artist-name {
    background-color: transparent;
}

#SP-stone .SP-duration {
    background-color: transparent;
}

#SP-stone .SP-progress-bar-knob {
    background-color: #c7c7c7;

}

#SP-stone .SP-button-row {
    background-color: transparent;
    width: 100%;
    justify-content: space-evenly;
    padding: 1rem 0 0 0;
}

#SP-stone .SP-button {
    border: outset 5px #00000094;
    position: relative;
    z-index: 0;
}

#SP-stone .SP-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./img/dark_gray020.png);
    background-position: center;
    background-size: 175px;
    z-index: -1;
    filter: contrast(1.75);
}

#SP-stone .SP-button:hover {
    border-style: inset;
    transform: scale(0.9);
}

/* SP-tv --------------------------------------- */
@keyframes flicker {
    0% {
        opacity: 0.37861;
    }

    5% {
        opacity: 0.34769;
    }

    10% {
        opacity: 0.23604;
    }

    15% {
        opacity: 0.80626;
    }

    20% {
        opacity: 0.38128;
    }

    25% {
        opacity: 0.83891;
    }

    30% {
        opacity: 0.65583;
    }

    35% {
        opacity: 0.67807;
    }

    40% {
        opacity: 0.36559;
    }

    45% {
        opacity: 0.84693;
    }

    50% {
        opacity: 0.86019;
    }

    55% {
        opacity: 0.38594;
    }

    60% {
        opacity: 0.30313;
    }

    65% {
        opacity: 0.71988;
    }

    70% {
        opacity: 0.53455;
    }

    75% {
        opacity: 0.37288;
    }

    80% {
        opacity: 0.71428;
    }

    85% {
        opacity: 0.70419;
    }

    90% {
        opacity: 0.7003;
    }

    95% {
        opacity: 0.36108;
    }

    100% {
        opacity: 0.34387;
    }
}

#SP-tv.StarrPlayer {
    color: black;
    text-shadow: black 0 0 5px;
    background-color: #4a4a4a;
    padding: 1rem 1.5rem 0.75rem 1.5rem;
    border-radius: 5px;
    box-shadow: inset 0px 0px 50px -15px black;
    position: relative;
}

#SP-tv.StarrPlayer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #c7c7c7;
    transform: rotate(-3deg) skewX(-3deg) translate(0, -6px);
    z-index: -1;
    border-radius: 10px;
    outline: 1.75px solid #505050;
    outline-offset: -1.75px;
    box-shadow: inset -6px -5px 8px -5px black;
}

#SP-tv.StarrPlayer::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 60%;
    height: 10px;
    z-index: 0;
    border-right: black solid 40px;
    border-left: black solid 40px;
}

#SP-tv .SP-track-info {
    padding: 0.75rem;
    border-radius: 10px;
    background-image: url(./img/tv-test.jpg);
    background-size: cover;
    background-position-y: 72%;
}

#SP-tv .SP-track-info::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 5px, 10px 100%;
    animation: flicker 0.05s infinite;
    pointer-events: none;
}

#SP-tv .SP-track {
    background-color: transparent;
}

#SP-tv .SP-track-name {
    background-color: transparent;
}

#SP-tv .SP-artist {
    background-color: transparent;
}

#SP-tv .SP-artist-name {
    background-color: transparent;
}

#SP-tv .SP-duration {
    background-color: transparent;
}

#SP-tv .SP-progress-bar {
    background-color: black;

}

#SP-tv .SP-button-row {
    background-color: transparent;
    width: 100%;
    justify-content: space-evenly;
    padding: 0.5rem 0 0 0;
    position: relative;
}

#SP-tv .SP-button {
    background-color: #868686;
    border-radius: 3px;
    position: relative;
    height: 1.75rem;
    width: 2.5rem;
    box-shadow: inset 0px 0px 25px -10px black;
}

#SP-tv .SP-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100%);
    height: calc(100%);
    border-bottom: solid 4px #272727;
    border-radius: 3px;
}

#SP-tv .SP-button:hover {
    background-color: #868686;
    border: none;
    transform: translate(0, 4px);
}

#SP-tv .SP-button:hover::before {
    border: none;
}

#SP-tv .SP-button img {
    height: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    opacity: 0.5;
    pointer-events: none;
}

#SP-tv .SP-button.SP-next img {
    height: 2.25rem;
    transform: translate(-45%, -50%);
}

#SP-tv .SP-button.SP-prev img {
    height: 2.25rem;
    transform: translate(-55%, -50%) rotate(180deg);
}

#SP-tv .SP-button.SP-pause img {
    height: 2.25rem;
}

span#power-led {
    position: absolute;
    top: 5px;
    left: -10px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    box-shadow: inset -1px -1px 5px 0px rgb(99, 6, 6)
}