body {
    margin: 0px;
    height: 100vh;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    ;
    /* background-color: #18bc9c; */
}

.full-SVG {
    width: 100%;
    height: 100%;
}

.full-img {
    width: 100%;
    height: 100%;
}

.container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 50px 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
}

.top-bar {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    align-items: center;
    font-weight: bold;
    font-size: 10px;
    background-color: #2c3e50;
    color: #FFF;
}

.viz {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 4;
    display: flex;
    justify-content: center;
    padding: 5px;
    align-items: center;
}

.top-controls {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    display: flex;
    justify-content: center;
    padding: 30px;
    align-items: flex-end;
}



.toggle-button {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    margin-right: 15px;
    margin-left: 15px;
    border: 2px solid #eaeef4;
    background-color: #eaeef4;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    transition: border-color .1s ease-in-out, background-color .1s ease-in-out;
}

.toggle-button:hover {
    border-color: #dce3ed;
    background-color: #dce3ed;
}

.bottom-controls {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 4;
    grid-row-end: 5;
    display: flex;
    justify-content: center;
    padding: 30px;
    align-items: flex-start;
}

.options {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    align-items: center;
}



.value-span {
    margin-right: 10px;
}

.right-top-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
}


.title {
    font-weight: bold;
    font-size: 120%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.title-white {
    font-weight: bold;
    font-size: 120%;
    margin-top: 5px;
    margin-bottom: 5px;
    color: white;
    text-align: center;
}

.pll-button {
    -webkit-transition-duration: 0.4s;
    /* Safari */
    transition-duration: 0.4s;
    background-color: #18bc9c;
    color: black;
    border: 2px solid #FFF;
    padding: 1em 2em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    border-radius: 1em;
}

.pll-button:hover {
    background-color: #FFF;
    color: black;
}

.framed {
    border: #FFF 4px solid;
}



.name-title {
    font-size: 2em;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
    color: #ffffff;
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.name-title:hover {
    outline: 0;
    color: #18bc9c;
}

#timestamp {
    margin: 5px;
    font-family: Courier New, Courier, monospace;
    font-size: 120%;
}

.invisible {
    display: none;
    visibility: hidden;
}

.end-content {
    color: white;
}

.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog>div {
    width: 400px;
    position: relative;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: #2c3e50;
}

.close {
    background: #606061;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -moz-box-shadow: 1px 1px 3px #000;
    -webkit-box-shadow: 1px 1px 3px #000;
    box-shadow: 1px 1px 3px #000;
}

.close:hover {
    background: #00d9ff;
}

.cell {
    position: relative;
    float: left;
    border: 0.5px #CCC solid;
    display: flex;
    flex-direction: column;
    height: 49px;
    width: 49px;
    -webkit-box-sizing: border-box;
    /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;
    /* Firefox, other Gecko */
    box-sizing: border-box;
    /* Opera/IE 8+ */
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.cell.conflict {
    animation: shake 0.8s;
    animation-iteration-count: 1;
    border-color: rgb(227, 64, 64);
    border-width: 5px;
}

.white-cell {
    background-color: #FFF;
}

.grey-cell {
    background-color: #eeeeee94;
}

.wall-left {
    border-left: 1px black solid;
}

.wall-right {
    border-right: 1px black solid;
}

.wall-top {
    border-top: 1px black solid;
}

.wall-bottom {
    border-bottom: 1px black solid;
}

.board {
    border: 1px black solid;
}

.focus-cell {
    background-color: rgb(214, 239, 255);
}

.cell-value {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.cell-input {
    background: transparent;
    border: none;
    position: absolute;
    font-size: 32px;
    color: gray;
    font-weight: bold;
    /* line-height: 34px; */
    height: 100%;
    margin-right: -1px;
    margin-top: -1px;
    padding: 0;
    text-align: center;
    width: 100%;
}


.cell-hints {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
}

.cell-hints.invisible {
    display: none;
    visibility: hidden;
}

.cell-value.invisible {
    display: none;
    visibility: hidden;
}

.cell-input.invisible {
    display: none;
    visibility: hidden;
}

.span-hint {
    font-family: 'Courier New', Courier, monospace;
    color: gray;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
}

.span-value {
    font-family: 'Courier New', Courier, monospace;
    color: black;
    font-size: 32px;
}

input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

label {
    cursor: pointer;
    text-indent: -9999px;
    width: 60px;
    height: 30px;
    background: grey;
    display: block;
    border-radius: 50%/100%;
    position: relative;
}

label:after {
    content: "";
    position: absolute;
    top: 5%;
    left: 2.5%;
    width: 45%;
    height: 90%;
    background: #fff;
    border-radius: 50% /50%;
    transition: 0.3s;
}

input:checked+label {
    background: #0072E3;
}

input:checked+label:after {
    left: calc(97.5%);
    transform: translateX(-100%);
}

label:active:after {
    width: 65%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.switch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.radial-menu {
    position: absolute;
    display: none;
    width: 200px;
    height: 200px;
}

.menu-item {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6eb9f7;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #41a6f8;
}

.menu-item:nth-child(1) { top: 50%; left: 50%; transform: translate(calc(-50% + 70px * 1), -50%); } /* 0 degrees */
.menu-item:nth-child(2) { top: 50%; left: 50%; transform: translate(calc(-50% + 70px * 0.766), calc(-50% - 70px * 0.643)); } /* 40 degrees */
.menu-item:nth-child(3) { top: 50%; left: 50%; transform: translate(calc(-50% + 70px * 0.173), calc(-50% - 70px * 0.985)); } /* 80 degrees */
.menu-item:nth-child(4) { top: 50%; left: 50%; transform: translate(calc(-50% - 70px * 0.5), calc(-50% - 70px * 0.866)); } /* 120 degrees */
.menu-item:nth-child(5) { top: 50%; left: 50%; transform: translate(calc(-50% - 70px * 0.9397), calc(-50% - 70px * 0.342)); } /* 160 degrees */
.menu-item:nth-child(6) { top: 50%; left: 50%; transform: translate(calc(-50% - 70px * 0.9397), calc(-50% + 70px * 0.342)); } /* 200 degrees */
.menu-item:nth-child(7) { top: 50%; left: 50%; transform: translate(calc(-50% - 70px * 0.5), calc(-50% + 70px * 0.866)); } /* 240 degrees */
.menu-item:nth-child(8) { top: 50%; left: 50%; transform: translate(calc(-50% + 70px * 0.173), calc(-50% + 70px * 0.985)); } /* 280 degrees */
.menu-item:nth-child(9) { top: 50%; left: 50%; transform: translate(calc(-50% + 70px * 0.766), calc(-50% + 70px * 0.643)); } /* 320 degrees */

@media only screen and (max-width: 600px) {
    .cell {
        height: 30px;
        width: 30px;
    }

    .radial-menu {
        position: absolute;
        display: none;
        width: 150px;
        height: 150px;
    }

    .menu-item {
        width: 30px;
        height: 30px;
    }

    .menu-item:nth-child(1) { top: 50%; left: 50%; transform: translate(calc(-50% + 60px * 1), -50%); } /* 0 degrees */
    .menu-item:nth-child(2) { top: 50%; left: 50%; transform: translate(calc(-50% + 60px * 0.766), calc(-50% - 60px * 0.643)); } /* 40 degrees */
    .menu-item:nth-child(3) { top: 50%; left: 50%; transform: translate(calc(-50% + 60px * 0.173), calc(-50% - 60px * 0.985)); } /* 80 degrees */
    .menu-item:nth-child(4) { top: 50%; left: 50%; transform: translate(calc(-50% - 60px * 0.5), calc(-50% - 60px * 0.866)); } /* 120 degrees */
    .menu-item:nth-child(5) { top: 50%; left: 50%; transform: translate(calc(-50% - 60px * 0.9397), calc(-50% - 60px * 0.342)); } /* 160 degrees */
    .menu-item:nth-child(6) { top: 50%; left: 50%; transform: translate(calc(-50% - 60px * 0.9397), calc(-50% + 60px * 0.342)); } /* 200 degrees */
    .menu-item:nth-child(7) { top: 50%; left: 50%; transform: translate(calc(-50% - 60px * 0.5), calc(-50% + 60px * 0.866)); } /* 240 degrees */
    .menu-item:nth-child(8) { top: 50%; left: 50%; transform: translate(calc(-50% + 60px * 0.173), calc(-50% + 60px * 0.985)); } /* 280 degrees */
    .menu-item:nth-child(9) { top: 50%; left: 50%; transform: translate(calc(-50% + 60px * 0.766), calc(-50% + 60px * 0.643)); } /* 320 degrees */

}