body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid gray;
    border-radius: 3%;
    padding: 10px;
    background: #dde3ea;
}

.row {
    display: flex;
}

.row > div {
    height: 25px;
    width: 25px;
    border: 1px solid black;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1px;
    font-size: 0;
    cursor: pointer;
    user-select: none;
}

.cell:hover {
    background: orangered;
}

.alive:hover {
    background: cornflowerblue;
    color: #ffffff;
}

.cell {
    background: #000;
    color: #ffffff;
}

.alive {
    background: #fff;
    color: #000000;
}

.control {
    border: 2px solid gray;
    border-radius: 3px;
    background: #f5f7fa;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.buttons {
    padding: 10px;
}

.buttons > button {
    font-size: 16px;
    height: 35px;
    width: 75px;
    cursor: pointer;
}

.buttons_black {
    background: #000000;
    color: #ffffff;
}

.buttons_black:hover {
    background: #474747;
}

.setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
}

.setup > label {
    width: 150px;
    display: flex;
    justify-content: space-between;
}

.setup > label > input {
    width: 30px;
}

