html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    font-family: Arial, sans-serif;
}


/* PLAYER */

#player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}


/* 360 VIEW */

#viewer {
    position: absolute;
    inset: 0;
}

#viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#video {
    display: none;
}


/* START COVER */

#start-screen {
    position: absolute;
    inset: 0;
    z-index: 20;

    background-color: #000;
    background-image: url("assets/cover.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;

    cursor: pointer;
}


/*
The whole start screen is clickable.
The Play button is already drawn
on the cover image.
*/

#start-button {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    cursor: pointer;
}

#start-button:hover,
#start-button:focus,
#start-button:active {
    background: transparent;
    outline: none;
}


/* LOADING STATUS */

#status {
    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    color: rgba(255, 255, 255, 0.75);

    font-size: 12px;
    letter-spacing: 2px;

    white-space: nowrap;

    pointer-events: none;
}


/* PLAYER CONTROLS */

#controls {
    position: absolute;
    z-index: 10;

    left: 20px;
    right: 20px;
    bottom: 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 15px;

    border-radius: 12px;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;

    transition: opacity 0.3s;
}

#player.started #controls {
    opacity: 1;
}


/* CONTROL BUTTONS */

#controls button {
    flex-shrink: 0;

    border: 0;

    background: transparent;
    color: #fff;

    font-size: 16px;

    cursor: pointer;
}

#controls button:hover {
    opacity: 0.8;
}


/* TIMELINE */

#progress {
    flex: 1;

    min-width: 50px;

    cursor: pointer;
}


/* MOBILE */

@media (max-width: 700px) {

    #start-screen {
        background-size: contain;
    }

    #controls {
        left: 8px;
        right: 8px;
        bottom: 8px;

        gap: 7px;

        padding: 8px 10px;
    }

    #controls button {
        font-size: 12px;
    }

    #status {
        bottom: 15px;
        font-size: 10px;
    }
}