@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: white;
    background-color: #1b1f22ff;
    height: 100%;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

a, a:visited, a:active {
    color: white !important;
}

.alert {
    padding: 1.5rem 2.5rem; 
}

.alert-danger{
    background-color: #ff535399;/*#721c24;*/
    color:#fff;
}
.alert-success{
    background-color: #721c24;
    color:#fff;
}

.top-left {
    position: absolute;
    top: -22px;
    left: -22px;
    transition: all .2s ease-in-out;
    border-radius: 50%;
    padding: 32px;
    background-color: #3eaf7c55;
}
.top-left i {
    font-size: 3em !important;
}

.top-left:hover {
    transform: scale(1.6) translate(20px,20px);
    background-color: #3eaf7cff;
    cursor: pointer;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


.play-area {
    display: grid;
    width: 325px;
    height: 330px;
}

.board-size-3 {
    grid-template-columns: auto auto auto;
}

.board-size-4 {
    grid-template-columns: auto auto auto auto;
}

.board-size-5 {
    grid-template-columns: auto auto auto auto auto;
}

.block {
    display: flex;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    transition: background 0.2s ease-in-out;
    border-radius: 5px;
    background: #0c5460;
    margin: 4px;
}

    .block:hover {
        cursor: pointer;
    }

.occupied:hover {
    background: #ff3a3a;
}

.spot_X {
    color: white !important;
    background-color: #338d33f0 !important;
}
.spot_O {
    color: white !important;
    background-color: #ff1fa6d0 !important;
}

.win-message {
    background-color: #8cff7d99;
}
.lose-message {
    background-color: #ff535399;
}
.draw-message {
    background-color: #ffb04e99;
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

.loading-line {
    animation: slide 3s ease-in-out infinite alternate;
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1
}
.loading-line.line1 {
    background-image: linear-gradient(105deg, rgb(62, 175, 124) 50%, rgb(27, 31, 34) 50%);
}
.loading-line.line2 {
    background-image: linear-gradient(105deg, rgb(62, 175, 124) 50%, rgb(27, 31, 34) 50%);
    animation-direction:alternate-reverse;
    animation-duration:2s;
}
.loading-line.line3 {
    background-image: linear-gradient(105deg, rgb(62, 175, 124) 50%, rgb(27, 31, 34) 50%);
    animation-duration:5s;
}

.loading-line-cont {
    left: 50%;
    padding: 10vmin;
    position: fixed;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%)
}


/*loading spinner*/
.loading-grid {
    display: inline-block;
    position: relative;
    width: 160px;
    height: 160px;
}

.loading-grid div {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0bff00;
    animation: loading-grid 1.2s linear infinite;
}

    .loading-grid div:nth-child(1) {
        top: 16px;
        left: 16px;
        animation-delay: 0s;
    }

    .loading-grid div:nth-child(2) {
        top: 16px;
        left: 64px;
        animation-delay: -0.4s;
    }

    .loading-grid div:nth-child(3) {
        top: 16px;
        left: 112px;
        animation-delay: -0.8s;
    }

    .loading-grid div:nth-child(4) {
        top: 64px;
        left: 16px;
        animation-delay: -0.4s;
    }

    .loading-grid div:nth-child(5) {
        top: 64px;
        left: 64px;
        animation-delay: -0.8s;
    }

    .loading-grid div:nth-child(6) {
        top: 64px;
        left: 112px;
        animation-delay: -1.2s;
    }

    .loading-grid div:nth-child(7) {
        top: 112px;
        left: 16px;
        animation-delay: -0.8s;
    }

    .loading-grid div:nth-child(8) {
        top: 112px;
        left: 64px;
        animation-delay: -1.2s;
    }

    .loading-grid div:nth-child(9) {
        top: 112px;
        left: 112px;
        animation-delay: -1.6s;
    }

@keyframes loading-grid {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.back-btn {
    background-color: #242228;
    font-weight: bold;
    font-size: x-large;
    color: white;
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50%;
    margin-right: 5px;
    margin-left: -5px;
}

    .back-btn:hover {
        cursor: pointer;
        background-color: #173e44;
    }