@import url('https://fonts.googleapis.com/css2?family=Sigmar&display=swap');

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: Sigmar, Arial, sans-serif;
    background-color: black;
    color: white;
}

a {
    color: rgb(178, 183, 255);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;


    height: 80svh;
    max-width: 80svw;
    aspect-ratio: 1;
}

.covers {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 80svh;
    max-height: 80svw;
    aspect-ratio: 1;
    outline: 2px solid white;
    transition: outline 2s ease-out 1.5s;
}

.covers.hidden-outline {
    outline: 2px solid rgba(0, 0, 0, 0);
}

.box {
    background-color: rgba(0, 0, 0, 1);
    outline-offset: -2px;
    outline: 2px solid white;
    width: 100%;
    height: 100%;
    transition: background-color 1s ease-in, outline 2s ease-out 1.5s;
}


img {
    max-width: 100%;
    max-height: 100%;
    transition: transform .75s ease-in-out;
}

img.impo {
    transform: scale(1.2, 1.2);
}

.box.hidden {
    background-color: rgba(0, 0, 0, 0);
}

.box.hidden-outline {
    outline: 2px solid rgba(0, 0, 0, 0);
}

.box.half {
    background-color: rgba(0, 0, 0, .5);
}

#start {
    display: none;
    position: absolute;
    left: 20px;
    width: 10vw;
    font-size: 25px;
    border: 1px solid darkolivegreen;
    background-color: darkgreen;
    border-radius: 0;
    padding: 10px;
    color: white;
    opacity: 0;
    transition: opacity .5s ease-in;
}

#stop {
    display: none;
    position: absolute;
    left: 20px;
    width: 10vw;
    font-size: 25px;
    border: 1px solid darkred;
    background-color: red;
    border-radius: 0;
    padding: 10px;
    color: white;
    opacity: 0;
    transition: opacity .5s ease-in;
}

#popup-won,
#popup-lost {
    display: none;
    position: absolute;
    right: 50svw;
    transform: translate(50%, 0);
    color: rgba(0, 127.5, 0, 0.7);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    line-height: 1em;
    opacity: 0;
    font-size: 120px;
    transition: opacity .5s ease-out, right 1.5s ease-out, font-size 1.5s ease-out;
}


#popup-won.less,
#popup-lost.less {
    right: 50px;
    font-size: 60px;
}

#popup-lost.less {
    right: 100px;
}

#popup-lost {
    color: rgba(255, 0, 0, 0.7);
}

.edge {
    position: absolute;
    bottom: 5px;
    right: 5px;
}
