:root{
    --font-color: #ffffff;
    --dark-color: #292F36;
}

body{
    overflow: hidden;
    margin: 0;
    padding: 0;

    user-select: none;

    font-family: Arial, Helvetica, sans-serif;

    color: var(--dark-color);
}

#webgl{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#ui{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: whitesmoke;

    z-index: 1000;

    gap: 10vh;
}

/* Start Screen */
#startscreen-bg{
    position: absolute;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;

    background-image: url("./img/placeholder-pattern.svg");
    background-repeat: round;
    opacity: 50%;

    z-index: -1;

    overflow: hidden;
    animation-name: pattern;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-duration: 30s;
    animation-timing-function: linear;
}
@keyframes pattern{
    100%{background-position: 100%;}
}

#donations{
    position: fixed;
    bottom: 2vh;
    left: 2vh;
}

#logo{
    flex: 2;
    height: auto;
    width: 40vh;
}

#start-menu{
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 2;

    justify-content: center;
    align-items: center;
}
#key-art{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;

    height: 50vh;
    width: auto;
}
#play{
    position: relative;
    display: flex;
}
#play span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
}

#legal{
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#legal span{
    margin-bottom: 5vh;
}

/* Dialogue Box */
#dialogue-box span{
    z-index: 1;
    opacity: 0;
}
#dialogue-box span.revealed {
    opacity: 1;
}