body {
    background-color: black;
    margin: 0px;

    width: 100vw;
    height: 100vh;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-container {
    --canvas-size: min(95vw, 95vh);
    width: var(--canvas-size);
    height: var(--canvas-size);

    position: relative;
}

canvas {
    width: 100%;
    height: 100%;
    outline: 2px dotted green;
}

#gear {
    position: absolute;
    top: 8px;
    right: 0px;
    width: 60px;
    height: 60px;
}

#loop {
    position: absolute;
    top: 76px;
    right: 8px;
    width: 45px;
    height: 45px;
}

@font-face {
    font-family: font;
    src: url(../../resources/fonts/darkforest.woff2);
}

#settings-modal {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;

    color: green;
    background-color: rgba(0, 0, 0, 0.8);
    font-family: font;

    display: none; /* flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#dead-modal {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;

    color: rgba(255, 0, 0, 0.8);
    background-color: rgba(0, 0, 0, 0.8);
    font-family: font;
    font-size: calc(var(--canvas-size) * 0.35);
    
    display: flex; /* flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    opacity: 0;
}

.settings-title {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: calc(var(--canvas-size) * 0.05);
}

.invisible-title {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: calc(var(--canvas-size) * 0.05);
    color: rgba(0, 0, 0, 0);
}

.settings-grid {
    width: 80%;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: calc(var(--canvas-size) * 0.02);

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
}

.setting-label {
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-input {
    width: 100%;
    padding: 10px;

    background-color: black;
    color: green;
    border: 2px solid green;
    border-radius: 10px;
    outline: none;
    text-align: center;
}

.setting-input:invalid {
    color: red;
    border: 2px solid red;
}

#ecosystem-string {
    width: 80%;
    height: calc(var(--canvas-size) * 0.1);

    background-color: black;
    color: green;
    border: 2px solid green;
    border-radius: 10px;
    text-align: center;
    outline: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#ecosystem-string::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#ecosystem-string {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
