html, body {
    width: 100%; 
    height: 100%;
    margin: 0;
    overflow: clip;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: white;
    user-select: none;
    /*width: 100%;
    height: 100%;
    margin: 0;*/
}

#lightbulb {
    height: 30%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center -200%;
    transform: rotate(0deg);
    
    user-select: none;

    /*animation-name: lightbulb-sway;*/
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes lightbulb-sway {
    0% {
        transform: rotate(0deg);
        animation-timing-function: ease-out;
    }
    25% {
        transform: rotate(calc(var(--amplitude) * -1deg));
        animation-timing-function: ease-in;
    }
    50% {
        transform: rotate(0deg);
        animation-timing-function: ease-out;
    }
    75% {
        transform: rotate(calc(var(--amplitude) * 1deg));
        animation-timing-function: ease-in;
    }
}

#lightbulb-light {
    height: 25%;
    transform: translateX(-1px);
}

#lightbulb-string {
    background-size: contain;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)), black;
    width: 1px;
    flex: 0.8;
}

#door {
    display: flex;
    width: 100%;
    height: 60%;
    flex-direction: column;
    align-items: center;
    flex-shrink: 1;
    overflow: clip;
    min-height: 0;
}

#blackout {
    /*display: none;*/
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 1;
    transition: opacity 6s;
}

/*#blackout {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    transition: opacity 6s;
}*/