@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    /****** bg ******/
    --bg01: linear-gradient(180deg,
            #22262A 0%, #181A1D 100%);
    --bg02: linear-gradient(135deg,
            #2F3439,
            #1D1F23);
    --bg03: linear-gradient(135deg,
            #2C3136, #1D2023);
    --bg04: #040404;
    --border01: #22262A;
    --border02: #1A1D21;

    /******* box-shadow ********/
    --box-shadow01:
        6px 6px 10px -6px 6px 10px #151618, #2c3136, #33353b, inset 2px 2px 6px inset -3px 3px 6px #151618;
    --box-shadow02:
        -6px 6px 10px #151618, 6px 6px 10px #2c3136, inset 2px 2px 6px #33353b,
        inset -3px 3px 6px #151618;
    --box-shadow03:
        6px 6px 12px #151618, -6px -6px 12px #2c3136;
    --box-shadow04:
        inset 2px 2px 3px 2px inset 0px 1px 1px 0px rgba(167, 169, 171, 0.322), #4a4c4e;

    --box-shadow05:
        8px 8px 12px -2px 2px 10px #151618, #2c3136, #333536, inset 2px 2px 3px inset -2px 2px 3px #151618;
    --box-shadow06:
        10px 10px 12px 10px 10px 12px inset 4px 4px 8px #151618, #222529, #33353b,
        inset -4px 4px 8px #151618;
    --box-shadow07:
        10px 10px 12px -10px -10px 12px #151618, #222529, inset -4px 4px 8px #333536, inset 4px 4px 8px #151618;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

body {
    font-family: 'Lato', sans-serif;
    background: #fff;
    height: 100vh;
    overflow: hidden;
}

.phone-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 30px;
}

.phone-time p {
    color: #A7A9A7;
}

.phone-search {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.sound {
    top: 10px;
    left: 54px;
    width: 40px;
    height: 6px;
    background: #A7A9A7;
    border-radius: 10px;
}

.camera {
    top: 10px;
    left: 54px;
    width: 6px;
    height: 6px;
    background: #A7A9A7;
    border-radius: 50px;
}

.wrapper {
    max-width: 400px;
    height: 720px;
    text-align: center;
    padding: 1.5rem;
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg01);
    box-shadow: var(--box-shadow03);
    border-radius: 20px;
    margin-top: 25px;
    border: 3px solid var(--border01);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


header,
.song-timer,
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

header .hdbtn {
    background: var(--bg02);
    border: 3px solid var(--border01);
    box-shadow: var(--box-shadow03);
    width: 52px;
    height: 52px;
    line-height: 52px;
    color: #86898c;
    font-size: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hdbtn:active {
    box-shadow: var(--box-shadow02);
}

.hdbtn i {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

header h3 {
    text-transform: uppercase;
    font-size: 14px;
    color: #86898c;
}

.player {
    margin-top: 2rem;
}

img {
    width: 15rem;
    height: 15rem;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 10px solid var(--border02);
    border-radius: 50%;
    box-shadow: var(--box-shadow03);

}

.name {
    color: #A7A9AB;
    font-size: 1.5rem;
    text-transform: capitalize;
}

.artist {
    color: #7c7d80;
    font-size: 14px;
    text-transform: capitalize;
    padding: 10px 0 20px 0;
}

.song-timer {
    margin-bottom: 20px;
}

.song-timer span {
    font-size: 10px;
    color: #7c7d80;
    user-select: none;
    font-weight: 800;
}

.progress-area {
    height: 7px;
    width: 100%;
    margin-top: 15px;
    border-radius: 50px;
    background: var(--bg04);
    box-shadow: var(--box-shadow04);
    cursor: pointer;
}

.progress-area .progress-bar {
    height: inherit;
    width: 0%;
    position: relative;
    border-radius: inherit;
    background: linear-gradient(90deg,
            #bf2311, 0%, #e1530a, 80%);
    box-shadow: var(--box-shadow04);
}

.progress-bar::before {
    content: "";
    position: absolute;
    background: var(--bg02);
    box-shadow: var(--box-shadow05);
    border-radius: 50%;
    top: 50%;
    right: -14px;
    z-index: 2;
    width: 28px;
    height: 28px;
    outline: none;
    border: none;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.progress-bar::after {
    content: "";
    position: absolute;
    background: #e1530a;
    border-radius: 50%;
    top: 50%;
    right: -5px;
    z-index: 2;
    width: 10px;
    height: 10px;
    outline: none;
    border: none;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.controls {
    margin: 30px 8px 5px 8px;
}

.btnC {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--border02);
    transition: all 0.2s ease;
    background: var(--bg03);
    box-shadow: var(--box-shadow03);
}

.btnC:active {
    box-shadow: var(--box-shadow07);
}

.controls i {
    font-size: 20px;
    user-select: none;
    color: #a7a9a7;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.controls .play-pause {
    width: 80px;
    height: 80px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.play-pause i {
    text-align: center;
    color: #fff;
}

.play-pause {
    border: 3px solid #ce4b0e;
    background: linear-gradient(135deg, #bd2210, #e5550b);
    box-shadow:
        10px 10px 12px #151618, -10px 10px 12px #222529, inset 4px 4px 8px #e5550b, inset -4px 4px 8px #bd2210;
}

.play-pause:active {
    box-shadow:
        10px 10px 12px -10px -10px 12px #151618, #222529, inset -10px 10px 8px #e5550b, inset 10px 10px 8px #bd2210;
}

/* General styling for the volume control */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
    margin-top: 15px;
}

.volume-control i {
    font-size: 20px;
    color: #a7a9a7;
    cursor: pointer;
}

/* Range Slider */
.volume-slider-container {
    display: none;
    transition: all 0.1s ease-in-out;
}

.volume-slider-container input[type="range"] {
    width: 150px;
    height: 5px;
    appearance: none;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
    background: #CE380E;
    display: flex;
    align-items: center;
}

/* Slider thumb styling */
.volume-slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Hover effect */
.volume-slider-container input[type="range"]:hover {
    background: #CE380E;
}



.img-area img {
    transition: transform 0.3s ease-in-out;
}

/* Keyframe for continuous rotation */
@keyframes rotateImage {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Class for when music is playing */
.playing img {
    animation: rotateImage 8s linear infinite;
}