body {
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
}

#gridContainer {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

#settingsWrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    height: auto;
    background-color: rgba(0,0,0,0.8);
    animation-timing-function: ease-in-out;
    animation-duration: 250ms;
}

#settings {
    position: relative;
    width: 100%;
    z-index: 2;
    color: #fff;
    display: inline;
}

#openCloseSettings {
    position: absolute;
    border-radius: 1.5rem 1.5rem 0 0;
    width: 3rem;
    height: 1.5rem;
    text-align: center;
    transform: translate(-50%, -1.5rem);
    left: 50%;
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
}

#openCloseSettingsSpan {
    position: absolute;
    border-top: solid 2px #fff;
    border-left: solid 2px #fff;
    width: 0.7rem;
    height: 0.7rem;
    transform: translate(-50%, 50%) rotateZ(225deg);
    animation-timing-function: ease-in-out;
    animation-duration: 400ms;
}

@keyframes settingsAni {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes settingsAniBack {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes settingsButtonSpanAni {
    0% {
        transform: translate(-50%, 50%) rotateZ(225deg);
    }
    100% {
        transform: translate(-50%, 50%) rotateZ(45deg);
    }
}

@keyframes settingsButtonSpanAniBack {
    0% {
        transform: translate(-50%, 50%) rotateZ(45deg);
    }
    100% {
        transform: translate(-50%, 50%) rotateZ(225deg);
    }
}

.settingsDiv {
    position: relative;
    float: left;
    margin: 1rem 3rem 1rem 1rem;
    text-align: center;
}

#fieldSize {
    width: 15rem;
    cursor: pointer;
}

#startStop {
    padding: 1rem 1rem;
    border: 0;
    background-color: rgb(0, 200, 0);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 500ms;
    width: 7rem;
    text-transform: uppercase;
}

#progress {
    position: absolute;
    width: 20em;
    background-color: rgba(0,0,0,0.9);
    z-index: 10;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    color: #fff;
    text-align: center;
    padding: 1em;
}

#delay {
    width: 6rem;
    height: 1.5rem;
    font-size: 14px;
    border: solid 1px #ddd;
    padding-left: 7px;
    background-color: rgba(255, 255, 255, 0.5);
}

#delaySpan {
    position: absolute;
    color: #000;
    transform: translate(-50px, 7px);
    font-size: 14px;
}

#fieldColor {
    cursor: pointer;
    border-radius: 0;
    width: 5rem;
    height: 1.8rem;
}

#clearFields, #resetFields {
    position: relative;
    font-size: 14px;
    border: solid 1px #ddd;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    padding: 0.3rem;
}

#clearFields img, #resetFields img {
    width: 100%;
    height: 100%;
}

#generationDiv {
    margin-top: 1.1rem;
    font-size: 20px;
}

#patternButton {
    width: 7rem;
    height: 3.5rem;
    border: solid 2px #fff;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    transition: 250ms;
}

#patternKat {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: scroll;
    background-color: #222;
    width: 80%;
    height: 70vh;
    z-index: 5;
    color: #fff;
    display: none;
    padding: 2rem;
}

#patternClose {
    position: sticky;
    z-index: 20;
    font-weight: bold;
    color: #f33;
    font-size: 20px;
    right: 0;
    top: 0;
    cursor: pointer;
    transform: translate(-1rem, -1rem);
}

.patternCreator::before {
    content: 'Creator: ';
}

.patternName::before {
    content: 'Name: ';
}

.patternDescription::before {
    content: 'Description: ';
}

.pattern {
    width: 100%;
    height: 30rem;
    border: solid 1px #000;
    background-color: #eee;
}

.patterns {
    position: relative;
    margin-bottom: 3rem;
    transition: 200ms;
    padding: 2rem;
    cursor: pointer;
    color: #aaa;
}

.patterns:hover {
    background-color: rgba(255, 255, 255, 0.1);
}