*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: transparent;
}

body {
    font-family: 'Helvetica Neue', 'Open sans', sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;

}

.nav-items {
    position: fixed;
    z-index: 9999;
    font-size: 2rem;
    padding: 2vw;
    top: 0;
    right: 0;
    transition: 0.15s;

}

.nav-items>* {
    cursor: pointer;
}

.power-btn {
    color: rgb(0, 256, 0);

}

.power-btn.active {
    color: rgb(256, 0, 0);
}


.ipod {
    background-color: #dddddd;
    border-radius: 28px;
    width: calc(2.4 * 200px);
    height: calc(4.0 * 200px);
    padding: 22px;
    box-shadow: inset 0 0 30px #6a6a6a, inset 0 0 40px #d6d6d6;
    transition: 0.5s ease;
    transform: scale(0.9)
}

.ipod.active {
    width: calc(2.4 * 150px);
    height: calc(4.0 * 150px);
    border-radius: 18px;
    transform: scale(0.9) translate(0, 0);
}

.ipod.active .control-btn {
    font-size: 0.9rem;
}

.screen {
    position: relative;
    background-color: white;
    width: 100%;
    height: 46%;
    border-radius: 11px;
    outline: 4px solid rgb(24, 24, 24);
    filter: brightness(0%);
    transition: 0.5s ease;
    overflow: hidden;
}


.screen.active {
    filter: brightness(100%);
    border-radius: 5px;
}

.bootscreen {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(22, 24, 24);
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    z-index: 99;
    color: white;
    font-size: 6rem;
}

.bootscreen .fa-apple {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.ipod.active .bootscreen {
    display: none;
}

.screen .flex-screen {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.777);
    z-index: 9;
    transition: 0.2s ease;
}

.screen .menu-item-screen,
.screen .music-player {
    position: absolute;
    overflow-x: scroll;
    top: 0;
    left: 110%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.677);
    height: 100%;
    width: 100%;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    /* justify-content: center;
    align-items: center; */
}

.song-div {
    display: flex;
    justify-content: space-evenly;
    padding-inline: 10px;
    gap: 10px;
    height: 80%;
    align-items: center;
    color: black;
    perspective: 800px;
    /* z-index: 30; */
}

#song-count {
    position: absolute;
    bottom: 20%;
}

.menu-item-screen {
    z-index: 20;
}

.menu-item-active {
    left: 0 !important;
}


.screen .preview-screen {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
    /* background-color: black; */
    background-image: linear-gradient(to top left, #2d4669, #7fa5ca 90%);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    perspective: 800px;
}

.preview-screen img {
    /* transform: translate(50px, 0); */
    object-fit: cover;
    /* animation: flowleft 10s linear infinite; */
}

.preview-screen .preview-img,
.preview-screen .album-art {
    height: 100%;
    width: 100%;
}


.progress-div {
    font-size: 0.7rem;
    height: 10%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.progress-div .progress-bar {
    position: relative;
    height: 70%;
    width: 65%;
    border: 1px solid rgba(128, 128, 128, 0.213);
    box-shadow: inset 0 0 5px rgba(128, 128, 128, 0.413);

}

.progress {
    position: absolute;
    height: 100%;
    width: 0%;
    background-image: linear-gradient(to top, rgb(139, 211, 255), rgb(0, 142, 230) 60%);
    transition: 0.1s ease;
}

.preview-screen .icon-preview {
    transform-style: preserve-3d;
    height: 50%;
    width: 80%;
    transform: rotateY(30deg);
}

.menu-item-brief {
    position: absolute;
    text-align: center;
    width: 50%;
    padding-inline: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    font-weight: 700;
    /* -webkit-text-stroke: 1px rgba(0, 0, 0, 0.596); */
    text-shadow: 0 0 3px black;
    bottom: 10%;
    right: 0;
}

.song-artist-preview {
    font-size: 0.7rem;
    bottom: 4% !important;
}

.preview-screen .album-art {
    width: unset;
    animation: flowleft 5s linear infinite;
}


.music-player .album-art {
    height: 60%;
    width: 45%;
    padding: 10px;
    /* transform-style: preserve-3d; */
    background-image: linear-gradient(to top, rgb(39, 72, 138), rgb(151, 215, 255));
    transform: rotateY(30deg);
    -webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0, 0, 0, 0.0)70%, rgba(0, 0, 0, 0.3));
}


.work-in-progress {
    background-color: red !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}


h4.song-info {
    font-size: 0.9rem;
}

p.song-info,
.info p {
    font-size: 0.8rem;
}


@keyframes flowleft {
    0% {
        transform: translate(0px, 0);
    }

    100% {
        transform: translate(-2.5rem, 0);
    }
}

.split-screen {
    max-width: 50%;
}


.screen .status-bar {
    /* width: 50%; */
    position: absolute;
    top: 0;
    left: 0;
    height: 10%;
    width: 100%;
    background-image: linear-gradient(to top, #cdcdcd 20%, #ffffff);
    border-bottom: 2px solid #c0c0c0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding-inline: 7px;
    /* transition: 0.2s ease; */
    z-index: 50;
}

.status-bar .status-icons {
    display: flex;
    align-items: center;
    gap: 15%;
}

.status-bar p {
    font-weight: 800;
}

.status-bar * {
    transition: 0.5s ease;
}

.play-pause-status {
    color: rgb(71, 184, 255);
}

.fa-battery {
    font-size: 1.5rem;
    color: rgb(0, 167, 0);
}

.ipod.active .fa-battery {
    font-size: 1rem;
}

.menu-items {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    /* transform: translate(-100%, 0px); */
    font-size: 1.5rem;
    font-weight: 700;
    height: 100%;
    transition: 0.3s ease;
}

.ipod.active .menu-items {
    font-size: 1rem;
}

.menu-items>* {
    padding: 2px 5px;
    cursor: pointer;
}

.menu-items>*.active {
    background-image: linear-gradient(to bottom right, rgb(115, 201, 255), rgb(0, 109, 176));
    color: white;
}

.menu-item-selector {
    font-weight: 800;
    float: right;
}

.button-ring {
    position: relative;
    height: 41%;
    width: 75%;
    margin: 14% auto 0 auto;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #d1d1d1;
}

.button-ring::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 39%;
    height: 39%;
    background-color: #dddddd;
    border: 2px solid #d1d1d1;
    box-shadow: inset 0 0 30px #b0b0b0;
}

.control-btn {
    position: absolute;
    color: #b8b8b8;
    font-size: 1.3rem;
    transition: 0.1s;
    cursor: pointer;
    padding: 40px;
}

.control-btn.press {
    font-size: 0.75rem !important;
}

#menu-btn {
    text-transform: uppercase;
    font-weight: 700;
    top: 20px;
}

#forwards-btn {
    left: calc(100% - 20px);
}

#previous-btn {
    left: 20px;
}

#previous-btn,
#forwards-btn {
    top: 50%;
    transform: translate(-50%, -50%);
}

#play-pause-btn {
    top: calc(100% - 20px);
}

#menu-btn,
#play-pause-btn {
    left: 50%;
    transform: translate(-50%, -50%);
}

#play-pause-btn i {
    display: inline;
    padding-inline: 3px;
}

@media only screen and (max-width:700px) {
    .ipod {
        width: calc(2.4 * 130px);
        height: calc(4.0 * 130px);
    }

    .ipod.active {
        width: calc(2.4 * 120px);
        height: calc(4.0 * 120px);
    }

    .menu-items {
        font-size: 1rem;
    }

    .control-btn {
        font-size: 0.8rem;
    }

    .ipod.active .control-btn {
        font-size: 0.7rem;
    }

    .control-btn.press {
        font-size: 0.65rem !important;
    }

    .bootscreen {
        font-size: 3rem;
    }

    .ipod.active .menu-items {
        font-size: 0.74rem;
    }

    .menu-item-brief {
        font-size: 0.7rem;
    }

    .screen .status-bar {
        font-size: 0.7rem;
    }

    h4.song-info {
        font-size: 0.7rem;
    }

    .info p,
    p.song-info {
        font-size: 0.6rem;
    }

    .song-artist-preview {
        font-size: 0.5rem;
    }
}

@media only screen and (max-width:500px) {
    .how-to-use {
        font-size: 0.6rem;
    }

    /* .instruction {
        font-size: 0.7rem;
    } */
}