*{
    margin: 0;
    padding: 0;
}
body{
    background-color: #043D5D;
}
button{
    cursor: pointer;
}
#gradient-canvas {
    width:100%;
    height:100%;
    --gradient-color-1: #043D5D;
    --gradient-color-2: #032E46;
    --gradient-color-3: #23B684;
    --gradient-color-4: #0F595E;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    /* create hue-rotate animation */
}
.hue-rotate {
    animation: hue-rotate 60s infinite linear;
}
@keyframes hue-rotate {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(360deg);
    }        
}
.game-container{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* background: rgb(4,61,93); */
    /* background-color: linear-gradient(45deg, rgba(4,61,93,1) 0%, rgba(3,46,70,1) 33%, rgba(35,182,132,1) 66%, rgba(15,89,94,1) 100%);     */
}
.board{
    /* width: clamp(90%, 600px, 60vw);
	height: min(60vh, 600px, 60vw); */
    /* height: 600px;
    width: 600px; */
    height: 90vh;
    width: 90vh;
	/* margin: 2.5vh auto; */
    background-color: rgba(0,0,0,.5);
    /* background-color: black; */
    color: #fff;
    border: 6px solid black;
    border-radius: 10px;
	display: grid;
    gap: 2px;
}
.box{
    width: 100%;
    height: 100%;
    color: black;
    /* background-color: rgba(0,0,0,.5) ; */
    background-color: rgba(255,255,255,1);
    font-family: Helvetica;
    font-weight: bold;
    font-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.box:hover{
    cursor: crosshair;
}
.box-big{
    font-size: 200%;
}
.box[inside="X"]{
    color: #043D5D;
    cursor: not-allowed;
}
.box[inside="O"]{
    color: #23B684;
    cursor: not-allowed;
    /* cursor: -moz-not-allowed;
    cursor: -webkit-not-allowed;
    cursor: -ms-not-allowed;
    cursor: -o-not-allowed; */
}
.box[win]::after{
    content: "";
    position: absolute;
    height: 3px;
    left: 0;
    z-index: 1;
    background-color: red;
}
.box[win="diagonal"]::after{
    width: 141.42%;
    top: -2px;
    transform: rotate(45deg);
    transform-origin: left;
}
.box[win="diagonal2"]::after{
    width: 141.42%;
    bottom: -2px;
    transform: rotate(-45deg);
    transform-origin: left;
}
.box[win="horizontal"]::after{
    width: 100%;
    bottom: 50%;
}
.box[win="vertical"]::after{
    width: 3px;
    height: 100%;
    top: 0;
    left: 50%;
}
.settings{
    width: 300px;
    margin: 2.5% auto;
    background-color: rgba(0,0,0,.5);
    border-radius: 5px 0 0 5px;
    border: solid 1px #032E46;
    padding: 10px;
    display: flex;
    justify-content: left;
    flex-direction: column;
    position: absolute;
    top: 5%;
    /* to hide use right: 30%; */
    color: white;
    transition: right 1s ease-in-out;
}
.settings h2{
    font-family: Helvetica;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}
.settings h2::after, .settings h2::before{
    content: "";
    display: inline-block;
    width: 20%;
    height: 1px;
    background-color: rgba(255,255,255,.5);
    margin: .5rem 5px;
}
.settings > div{
    text-align: right;
}
.settings input[type="number"] {
    width: 65px;
    height: 20px;
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    background-color: rgba(255,255,255,.5);
    color: black;
    font-family: Helvetica;
    font-weight: bold;
    font-size: 1em;
}
.settings input[type="number"]:focus{
    outline: rgba(255,255,255,.7) solid 1px;
}
.settings button{
    width: 100%;
    height: 30px;
    border: none;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    background-color: rgba(255,255,255,.5);
    color: black;
    font-family: Helvetica;
    font-weight: bold;
    font-size: 1em;
    margin: 15px auto 5px auto;
}
.settings .show-hide-gui{
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,.5);
    top: 0;
    left: 10px;
    z-index: 2;
    font-size: 5rem;
    height: 85%;
    cursor: pointer;
}
.settings-label h2, .settings-label input, .settings-label button, .settings-label label{
    pointer-events: none;
}

.settings-label::before{
    content: 'SETTINGS';
    position: absolute;
    left: -25px;
    top: 0;
    width: 7.5%;
    height: 100%;
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.25rem;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    animation: slow-appear 1s ease-in-out;
}
@keyframes slow-appear{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.color-bg{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:5px;
    margin: 3px 5px 5px 50px;
    border-radius: 5px;
    border:1px solid transparent;
    transition: border .2s ease-in-out;
}

.color-bg:hover {
    /* background: rgba(255,255,255,.5); */
    border:1px solid #ccc;
    cursor:pointer;
}
.color-bg input[type="checkbox"] {
    transform: scale(1.75);
    margin: 0 5px;
    cursor: pointer;
}
@media only screen and (max-width: 750px) {
    html{
        font-size: 12px;
    }
    .board{
        width: 90vw;
        height: 90vw;
        max-width: 90vh;
        max-height: 90vh;
    }
    .settings{
        bottom: 0px;
        top: unset;
        overflow: show;
        left: 50%;
        transform: translateX(-50%);

    }
    .settings .show-hide-gui {
        transform: rotate(90deg);
        position: absolute;
        top: -26px;
        left: 0;
        right: 0;
        height: 2rem;
    }
  }