#fullscreen-button {
    z-index: 9999;
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: hsla(0, 0%, 100%, .05);
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#fullscreen-button:hover {
    transform: scale(1.125);
}

#fullscreen-button svg {
    width: 24px;
    height: 24px;
}

/* Hide the exit fullscreen icon (second SVG) by default */
#fullscreen-button svg:nth-child(2) {
    display: none;
}

/* When fullscreen attribute exists, hide enter icon, show exit icon */
body[fullscreen] #fullscreen-button svg:first-child {
    display: none;
}

body[fullscreen] #fullscreen-button svg:nth-child(2) {
    display: inline-block;
}