﻿Menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    pointer-events: all;
    padding: 50px;

    text-shadow: 2px 2px 0 black, 4px 4px 0 black;

    font-family: Segoe UI;
}

.menu-button {
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    
    font-family: "Kode Mono";
    font-size: 30px;
    // font-weight: bold;
    
    margin: 4px 2px;
    cursor: pointer;

    width: 800px;

    border-left: 15px solid transparent;
    
    flex-direction: column;
    small {
        font-size: 20px;
        font-weight: normal;
    }
}

.menu-button:hover {
    border-left-color: white;
    background-color: rgba(0, 0, 0, 0.3);
    sound-in: "sounds/menu/button-hover.sound";
}

.menu-button:active {
    border-left-color: black;
    text-shadow: none;
    sound-in: "sounds/menu/button-click.sound";
}

h1 {
    font-family: "Rubik Mono One";
    font-size: 140px;
    font-weight: bold;
    font-style: italic;
    color: white;
    padding: 0 32px;
    // margin-bottom: 20px;
}

.cars {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 50px;
    bottom: 50px;
}

.car-button {
    border: none;
    background-color: transparent;
    width: 100px;
    height: 100px;
}

.car-button:hover {
    background-color: rgba(229, 235, 253, 0.32);
    sound-in: "sounds/menu/button-hover.sound";
    cursor: pointer;
}

.car-button:active {
    background-color: rgba(129, 154, 217, 0.32);
    sound-in: "sounds/menu/button-click.sound";
}

.cars .selected {
    background-color: rgba(129, 154, 217, 0.32);
}

.colors {

    width: 200px;
    height: 100px;
    flex-wrap: wrap;

    .color-button {
        flex-shrink: 0;
        width: 15%;
        height: 25%;
        cursor: pointer;
        // text-shadow: none;
        color: white;
        align-content: center;
        justify-content: center;
        &:hover {
            sound-in: "sounds/menu/button-hover.sound";
        }
        &:active {
            sound-in: "sounds/menu/button-click.sound";
        }
    }

}

.leaderboard {
    position: absolute;
    top: 50px;
    right: 50px;
    color: white;
    font-size: 20px;
    font-family: "Segoe UI Light";
    text-shadow: 1px 1px 0 black;

    flex-direction: column;

    h2 {
        font-family: Segoe UI;
        font-size: 30px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    table {
        flex-direction: column;
        width: 300px;
    }

    column {
        display: flex;
        flex-direction: column;
        justify-content: center;
        // align-items: center;
        &.grow {
            flex-grow: 1;
        }

        gap: 10px;

        &.rank {
            font-weight: bold;
            // font-size: 15px;
        }
    }

    row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;

        &.me {
            color: yellow;
        }
    }
}

Credits {
    padding: 40px;
    color: white;
    font-size: 25px;
    font-family: "Segoe UI Light";
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 400px;
    gap: 20px 80px;
    div {
        flex-direction: column;
        h3 {
            font-size: 30px;
            font-weight: bold;
            font-family: "Rubik Mono One";
        }
    }
}

.levels {
    position: absolute;
    right: 50px;
    bottom: 200px;
    color: white;
    font-size: 20px;
    button {
        border: none;
        background-color: transparent;
        width: 200px;
        height: 200px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        // gap: 5px;
        img {
            width: 70%;
            height: 70%;
        }
        &:hover {
            background-color: rgba(203, 211, 225, 0.32);
            sound-in: "sounds/menu/button-hover.sound";
            cursor: pointer;
        }
        &:active {
            // background-color: rgba(129, 154, 217, 0.32);
            sound-in: "sounds/menu/button-click.sound";
        }
        &.selected {
            background-color: rgba(46, 66, 117, 0.32);
        }
    }
}