* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.page4 {
    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    background-image: url("background.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* TOP HEADING */

.page4 h1 {
    position: absolute;

    top: 6%;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;

    text-align: center;

    font-family: 'Great Vibes', cursive;
    font-size: clamp(38px, 5vw, 70px);

    color: #87404e;
    font-weight: normal;

    z-index: 5;
}

/* VINYL CD */

.vinyl {
    position: absolute;

    width: 105vw;
    height: auto;

    max-width: none;

    left: 50%;
    bottom: -48vw;

    transform: translateX(-50%);

    z-index: 1;
}

/* POLAROID PHOTO */

.polaroid {
    position: absolute;

    width: 36%;
    max-width: 550px;

    left: 50%;
    top: 25%;

    transform: translateX(-50%);

    background: #fff;

    padding: 15px 15px 25px;

    box-shadow: 0 5px 18px rgba(0,0,0,0.25);

    text-align: center;

    z-index: 3;
}

.polaroid img {
    width: 100%;
    height: 300px;

    display: block;

    object-fit: cover;
}

.polaroid p {
    font-family: 'Great Vibes', cursive;

    font-size: clamp(18px, 2vw, 28px);

    color: #873d4c;

    margin-top: 15px;
}

/* MUSIC BUTTON */

#musicButton {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: auto;
    z-index: 10;

    padding: 10px 18px;
    border: 1px solid #873d4c;
    border-radius: 25px;
    background: rgba(255,255,255,0.85);
    color: #873d4c;
    font-family: 'Great Vibes', cursive;
    font-size: 23px;
    cursor: pointer;
}

/* STATIONARY CD POSITION */

.vinyl {
    position: absolute;
    width: 105vw;
    height: 105vw;

    left: 50%;
    top: 20%;

    transform: translateX(-50%);
    border-radius: 50%;

    z-index: 1;
}

/* ONLY THE RECORD ROTATES */

.vinyl-rotating {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;

    background:
        repeating-radial-gradient(
            circle,
            #171717 0px,
            #292929 2px,
            #080808 4px,
            #242424 6px,
            #090909 9px
        );

    box-shadow:
        inset 0 0 35px rgba(255,255,255,0.18),
        0 0 25px rgba(0,0,0,0.5);

    animation: vinylSpin 5s linear infinite;
}

/* Moving glossy reflection */
.vinyl-rotating::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255,255,255,0.22) 45deg,
        transparent 90deg,
        rgba(255,255,255,0.08) 180deg,
        transparent 240deg,
        rgba(255,255,255,0.18) 300deg,
        transparent 360deg
    );
}

/* Rotation */
@keyframes vinylSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* RED CENTRE */

.vinyl-label {
    position: absolute;
    width: 28%;
    height: 28%;

    top: 30%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: radial-gradient(
        circle,
        #9e172e,
        #750c21 65%,
        #390510
    );

    border: 4px solid #26040a;
}

@keyframes vinylSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

  

@keyframes vinylSpin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

.vinyl-label {
    position: absolute;

    width: 28%;
    height: 28%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #9e172e 0%,
            #750c21 65%,
            #390510 100%
        );

    border: 4px solid #26040a;

    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.vinyl-label::after {
    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    background: #ddd;
    border-radius: 50%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}
#lastPageButton {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;

    padding: 10px 18px;
    border: 1px solid #873d4c;
    border-radius: 25px;
    background: rgba(255,255,255,0.85);
    color: #873d4c;
    font-family: 'Great Vibes', cursive;
    font-size: 23px;
    text-decoration: none;
    cursor: pointer;
}