*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    margin: 0;
}

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

.license {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 2rem;
}

#game {
    display: none;
}

#menu {
    align-items: flex-start;
    width: 100vw;
    height: 100vh;
}

#menu .homeLink {
    position: absolute;
    left: 0;
    top: 0;
    margin: 4vmin;
}

#menu .homeLink img.logo {
    width: 12vmin;
}

#menu > .centerColumn {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    height: 100vh;
    width: 60vw;
}

#menu > .centerColumn > h1 {
    font-size: 10vmin;
}

.selectBox {
    display: flex;
    flex-direction: column;
}

.selectBox > h2 {
    font-size: 5vmin;
    margin: 0;
    text-align: center;
}

.selectBox > select {
    margin: 5vmin;
    font-size: 3vmin;
    background-color: white;
    border: 0.5vmin solid #1a4f7a;
    cursor: pointer;
    padding: 1vmin;
}

.selectBox > button {
    border: none;
    padding: 2vmin;
    cursor: pointer;
    background-color: #1a4f7a;
    color: white;
    font-size: 4vmin;
}

#menu > .centerColumn > p {
    width: 40vw;
    font-size: 2vmin;
}

#menu > img.carRed {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 20%;
    transform: rotate(30deg);
}

#menu > img.trees {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20%;
}

.road {
    background-color: #ddd;
    background-image: url("assets/road.png");
    background-position: center;
    background-size: 100%;
    height: 100vh;
    width: 50vmin;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.panel {
    width: 20vmin;
    height: 100vh;
    background-size: 100%;
}

#left-panel {
    background-image: url("assets/left_panel.png");
}

#right-panel {
    background-image: url("assets/right_panel.png");
}

.finish {
    width: 30vmin;
    position: absolute;
    top: 0;
}

.car {
    width: 10vmin;
    height: 20vmin;
    transition: all 0.2s ease;
    z-index: 2;
}

.car img {
    width: 100%;
}

.questionbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30vmin;
    min-height: 30vmin;
    font-size: 3vmin;
    margin: 2vmin;
}

.questionbox img {
    width: 100%;
    height: 30vmin;
    padding: 1vmin;
    object-fit: cover;
}

.questionbox .caption {
    margin: 2vmin;
}

.questionbox .buttons {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.3vmin;
}

.questionbox button {
    width: 40%;
    border: none;
    padding: 1vmin;
    font-size: 3vmin;
    cursor: pointer;
    color: white;
}

button.yes {
    background-color: #009763;
}

button.no {
    background-color: #fe004b;
}

button:hover {
    filter: brightness(95%);
}

.winBox {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.747);
    display: none;
    z-index: 100;
}

.winBox .innerBox {
    background-color: white;
    padding: 0vmin 15vmin;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80vmin;
    height: 40vmin;
    overflow: hidden;
    position: relative;
}

.winBox h1 {
    margin: 10vmin;
    font-size: 3vmin;
}

.winBox .buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.winBox button {
    border: none;
    padding: 1vmin;
    background-color: #1a4f7a;
    color: white;
    font-size: 2vmin;
    cursor: pointer;
    margin: 1vmin;
}

.logoprojekt {
    width: min(50rem, 90%);
}

#winCar {
    position: absolute;
    width: 10vmin;
    margin-left: -55vmin;
    margin-top: 0;
    transform: rotate(45deg);
}
