:root {
    --mainColor: #395e5e;
    --borderWidth: min(2.5vw, 2vh);
    --mainPadding: min(10vw, 5vh);
    --fontSize: min(4vw, 2.5vh);
}
h1, p {
    all: unset;
}
body {
    display: grid;
    height: 100vh;
    grid-template-columns: 100%;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    margin: 0; padding: 0;
    font-size: var(--fontSize);
    background-color: white;
}
main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}
.marbled {
    background-image: url("assets/marble.jpg");
    background-size: 100% 100%;
    border-color: var(--mainColor);
    border-style: solid;
    border-width: var(--borderWidth) 0 var(--borderWidth) 0; 
}
.marbled::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    background-color: var(--mainColor);
    opacity: 0.175;
    z-index: 1;
}
#main-container {
    position: relative;
    width: auto;
    height: 100vw;
    aspect-ratio: 1 / 1;
    margin: var(--mainPadding) 0; 
}
canvas {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    z-index: 10;
    width: 100%;
    height: 100%;
}
#image {
    pointer-events: none;
}
.desktop {
    display: none;
}
aside {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
button {
    all: unset;
    user-select: none;
}
button:hover {
    cursor: pointer;
    filter: brightness(110%);
}
button:active {
    filter: brightness(120%);
}
.mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.mobile img {
    width: 7.5vw;
}
.mobile span {
    font-variant: small-caps;
    font-size: 1.35em;
    font-weight: bold;
    text-shadow:
            -1px -1px 0 grey,  
            1px -1px 0 grey,
            -1px 1px 0 grey,
            1px 1px 0 grey;
    color: var(--mainColor);
}

@media (min-aspect-ratio: 1/1){
    body {
        grid-template-columns: 1fr 100vh 1fr;
        grid-template-rows: 100%;
    }
    main {
        width: 100%;
        height: 100%;
    }
    .marbled {
        border-width:  0 var(--borderWidth) 0 var(--borderWidth);
    }
    #main-container {
        width: 100%;
        max-width: 100vh;
        height: 100%;
        margin: 0 var(--mainPadding);  
    }
    .desktop {
        display: block;
    }
    .mobile {
        display: none;
    }
    .desktop img {
        width: 10vw;
        user-select: none;
    }
}

/* LOADER */
#overlay {
    background-color: white;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    width: 100%; height: 100%;
    z-index: 95;
}
#loader-container {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    width: 100%; height: 100%;
    z-index: 100;
}
#loader-container::before {
    background-image: url("assets/marble.jpg");
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    background-color: var(--mainColor);
    opacity: 0.175;
    background-size: 100% 100%;
}
#loader-container img {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    width: min(10vw, 10vh);
    height: min(10vw, 10vh);
    animation: rotateLoader 1s linear infinite;
}
@keyframes rotateLoader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#welcome-text {
    opacity: 0;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    width: 60vh;
    max-width: 80vw;
    height: max-content;
    border: calc(var(--borderWidth) * 0.5) solid var(--mainColor);
    background-color: white;
    z-index: 150;
}
h1, p, span {
    font-family: Arial, Helvetica, sans-serif;
    display: block;
    text-align: center;
    margin: 0.5rem 0.5rem;
}
h1 {
    font-variant: small-caps;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow:
            -1px -1px 0 grey,  
            1px -1px 0 grey,
            -1px 1px 0 grey,
            1px 1px 0 grey;
    color: var(--mainColor);
}
#welcome-text span {
    margin: 1.5rem;
    color:#395e5e;
    font-variant: small-caps;
    font-size: 1.15em;
    font-weight: bold;
    animation: blinkingContinue 1.5s steps(5, start) infinite;
}
@keyframes blinkingContinue {
    to {visibility: hidden;}
}