$primary: #242424;
$secondary: #282828;
$tertiary: #ffcd38;

$button-primary: #ffffff !default;
$button-primary-fg: #ffffff !default;
$button-secondary: #242424 !default;
$button-secondary-fg: #dadada !default;
$button-size: 45px;

ClassSelect {
    position: relative;
    pointer-events: all;
    height: 500px;
    background-color: #1a1a1af2;
    font-family: Poppins;
    flex-direction: column;
    border-radius: 10px;
    border: 4px rgb(61, 129, 63);
    box-shadow: 10px 10px 20px 0px rgba(0,0,0,0.75);
    text-shadow: 1px 1px 2px black;
    align-items: center;
    justify-content: center;

    .main {
        width: 100%;
        height: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .classes {
        color: #c8c8c8;
        width: 350px;
        height: 100%;
        flex-shrink: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
        overflow-y: scroll;
        text-shadow: 2px 2px 2px black;
    }

    .description {
        width: 500px;
        height: 100%;
        font-size: 42px;
        color: white;
        padding: 16px;
        font-family: Poppins;
        border: 2px rgb(61, 129, 63);
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        text-shadow: 2px 2px 2px black;
        flex-direction: column;
        align-items: center;
        transform: translateX(0);
        transition: all .3s ease-in-out;
        overflow: hidden;

        .header {
            width: 100%;
            font-size: 42px;
            height: 150px;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .body {
            width: 100%;
            height: 100%;
            overflow-x: hidden;
            overflow-y: scroll;
            font-size: 22px;
            align-items: flex-start;
            justify-content: center;
            padding: 2px;
        }

        .button {
            align-items: center;
            justify-content: center;
            font-family: Poppins;
            text-shadow: 2px 2px 2px black;
            overflow: hidden;
        }
    }

    .class {
        width: 100%;
        height: 100px;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        color: $button-primary-fg;
        min-height: $button-size;
        background-color: $secondary;
        transition: all 0.2s ease;
        border-radius: 4px;
        overflow: hidden;

        &:hover {
            transform: scale(1.1);
            cursor: pointer;
            border-radius: 20px;
            text-shadow: 4px 4px 4px black;
            sound-in: ui.button.over;
        }

        &:active {
            color: $button-primary-fg;
            background-color: $secondary;
            sound-in: ui.button.press;
        }
        
        .label {
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
    }

    .close {
        position: absolute;
        top: 24px;
        right: 24px;
        align-items: center;
        justify-content: center;
        font-family: Material Icons;
        background-color: $secondary;
        width: 40px;
        height: 40px;
        font-size: 32px;
        cursor: pointer;
        border-radius: 10px;

        &:hover {
            background-color: red;
        }

        &:active {
            background-color: $secondary;
        }
    }

    .hidden {
        width: 0;
        opacity: 0;
        overflow-y: hidden;
        color: rgba(255, 255, 255, 0);
        transition: all .3s ease-in-out;
        padding: 0px;
        background-size: 0;
        border: none;
    }
    
    .icon {
        height: 100%;
        width: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 95px;
    }
}