body {
    background-color: #0d0d19;
    color: aliceblue;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", sans-serif;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.7rem;
}

p {
    max-width: 60ch;
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

header {
    text-align: center;
    margin-block: 20px;
    max-width: 90vw;
    margin: 20px auto 20px auto;
}

header h1 {
    font-size: 4.5rem;
}

.container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto;
    grid-template-areas: 'display canvas rules';
    gap: 60px;
    justify-items: center;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
}

canvas {
    width: fit-content;
    max-width: 60vw;
    margin: 0px auto 40px auto;
    background-color: #222242;
    border: 4px solid rgb(77, 85, 109);
    border-radius: 4px;
    grid-area: canvas;
}

.rule-set, .display-option {
    width: fit-content;
    max-width: 15vw;
    border: 5px solid rgb(77, 85, 109);
    border-radius: 6px;
    padding: 10px;
    margin-block: 20px;
    -webkit-user-select: none;     
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.rule-set h2, .display-option h2 {
    text-align: center;
    margin-bottom: 5px;
}

.rule-set hr, .display-option hr {
    color: aliceblue;
}

.rules {
    grid-area: rules;
}

.display-options {
    grid-area: display;
    margin-block-end: 40px;
}

.rules h1, .display-options h1 {
    text-align: center;
}

.selected {
    border: 5px solid rgb(152, 137, 79);
}

.unavailable {
    border: 5px solid rgb(129, 22, 17);
}

#rule3 b {
    color: rgb(255, 123, 123);
}

@media only screen and (max-width: 1670px) {
    .container {
        display: block;
    }

    canvas {
        max-width: 70vw;
    }

    .display-options {
        margin-top: 40px;
    }

    .rule-set, .display-option {
        max-width: 40vw;
        margin: 15px auto;
    }
}

@media only screen and (max-width: 700px) {
    .rule-set, .display-option {
        max-width: 70vw;
    }
}

@media only screen and (max-width: 500px) {
    canvas {
        max-width: 85vw;
    }
}