* {
    padding: 0;
    margin: 0;
}

body {
    background: #f6f5f4;
    color: #241f31;
}

.screen {
    width: 60%;
    margin: 10vh auto;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 1em;
}

button {
    width: fit-content;

    background: #241f31;
    color: #f6f5f4;
    font-weight: bold;

    padding: 12px 24px 12px 24px;

    border-radius: 10rem;
    border: solid 2px #241f31;

    cursor: pointer;
}

button:hover,
button:focus {
    background: #241f31;
    border: solid 2px #3d3846;
    font-style: oblique;
}

.screen img {
    width: 12em;
}

.screen img.reveal {
    border-radius: 1rem;
    border: solid 2px #3d3846;
    box-shadow: 0px 2px 0 2px #00000050;
    margin-bottom: 10px;
}

.screen .stage img {
    width: 2.5em;
}

.screen canvas {
    border-radius: 0.25rem;
    border: solid 2px #3d3846;
    box-shadow: 0px 2px 0 2px #00000050;
}

.screen h1 {
    text-align: center;
}

.screen p {
    text-align: center;
}

.screen .loader {
    width: 5em;
    height: 5em;
    border: solid 15px #241f31;
    border-radius: 10rem;
    border-right-color: #f6f5f4;
    background: #3d3846;

    animation: helicopter 2s ease infinite;
}

@keyframes helicopter {
  0% {
      transform: rotate(0deg) scale(0.6);
      border-width: 15px;
  }
  50% {
    transform: rotate(180deg) scale(1.0);
      border-width: 5px;
  }
  100% {
      transform: rotate(360deg) scale(0.6);
      border-width: 15px;
  }
}

.error {
    background: #EF898950;
    border: solid 2px #EF8989;
    padding: 1em 2em 1em 2em;
    border-radius: 0.25rem;
    width: fit-content;
    margin: auto;
}

.loadBar {
    padding: 2px;

    border-radius: 10rem;
    border: solid 2px #241f31;
    box-shadow: 0px 2px 0 2px #00000050;

    width: 20vw;
    height: 1vw;

    overflow: hidden;
}
.loadBar .progress {
    height: 100%;
    width: 0%;
    min-width: 10%;

    border-radius: 10rem;

    background: #241f31;

    transition: 1s width;
}

/* i could do this in one grid instead of flex in grid but i miss typed a 
 * class name and than gave up after 30 mins and afterwards when i finished 
 * that i misstyped :(
 */
#endScreen .menuGrid {
    display: grid;
    grid-template-areas: "accept scoreboard";
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
    width: 45vw;
}

@media only screen and (max-width: 1000px) {
    #endScreen .menuGrid {
        grid-template-areas: "accept" "scoreboard";
        grid-template-columns: 100%;
        grid-template-rows: auto;
        width: 80vw;
    }
}

#endScreen .accept {
    grid-area: accept;
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    padding: 5em;
}

#endScreen .scoreboard {
    grid-area: scoreboard;
}

#endScreen .scoreboard h2 {
    padding: 8px 12px 8px 12px;
}

ul.scores {
    list-style: none;
    width: 100%;
}

ul.scores li {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 8px 12px 8px 12px;
}

ul.scores li.newScore {
    background: #241f31;
    color: #f6f5f4;
    font-weight: bold;

    border: solid 2px #241f31;
    border-radius: 0.25rem;
}
