@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
@import './fontawesome/all.css';

:root{
    --accent:#555;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
    border: none;
}

html{
    background-color: #222222;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23777777' fill-opacity='0.59'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    font-family: Lexend, Helvetica, Arial, sans-serif;
}

body{
    flex-direction: column;
    height: 100dvh;
    width: 100dvw;
}

body, .outer, .inner{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.outer{
    border: 5px solid var(--accent);
    border-radius: 50px;
    overflow: hidden;
}

.outer, .inner{
    width: 800px;
}
.inner{
    flex-direction: column;
    background-color: #111;
    min-height: 400px;
    color: white;
    padding: 20px;
}
.inner > button{
    /* font-size: 48px; */
}
.inner button, button{
    padding: 5px 15px;
    border-radius: 50px;
    text-align: center;
}

.project-name{
    font-size: 56px;
    font-weight: 300;
    border-bottom: 5px solid white;
    border-image: linear-gradient(to right, #00aeff, #37ffa2);
    border-image-slice: 1;
    margin-bottom: 25px;
}

/* End of defaults */


.grid, .grid .row{
    display: flex;
}
.grid {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.grid .row .box{
    width: 100px;
    height: 100px;
    border: 1px solid #555;
}

.box form{
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
}

.box.cross, .box.circle, .cross-player, .circle-player{
    position: relative;
}
.box.cross::after, .box.circle::after, .cross-player::after, .circle-player::after{
    font-weight: 900;
    font-family: "Font Awesome 6 Free" !important;
}
.box.cross::after, .box.circle::after{
    font-size: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}
.box.cross::after, .cross-player::after{
    content: "\f00d";
    color: #ff4e4e;
    
}
.box.circle::after, .circle-player::after{
    content: "\f111";
    font-weight: 500;
    color: #4ea9ff;
}

.box.circle::after{
    font-size: 75px;
}

.row.win{
    position: relative;
}
.row.win::after{
    content: '';
    text-align: center;
    position: absolute;
    height: 50px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 95%;
    border-radius: 50px;
    background-color: #ff77a5;
}

form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input{
    padding: 15px 10px;
    border-radius: 25px;
}

form button{
    width: 100%;
}

.cross-player::after, .circle-player::after{
    position: absolute;
    left: 0;
    top: 50%;
    translate: 0 -50%;
}
.cross-player, .circle-player{
    padding-left: 25px;
}
.cross-player::after{
    font-size: 24px;
}
.circle-player::after{
    font-size: 20px;
}
.players{
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

button{
    font-size: 24px;
    font-weight: 600;
}

.action-btns {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    background-color: #555;
}

.action-btns button{
    border-radius: 50px !important;
    padding: 7px;
}
.action-btns button i{
    width: 24px;
    height: 24px;
}

.outer{
    background-color: #333;
}

table {
    td, th{
        padding: 10px;
    }
    tr, td{
        outline:1px solid;
    }
    & > *{
        color: white;
    }
}


@media screen and (width <= 800px){
    .outer, .inner{
        width: 100%;
    }
}