/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Segoe UI",sans-serif;
    background:linear-gradient(135deg,#0d1117,#111827);
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    padding:20px;
    overflow:auto;
}

/* ===========================
   CONTAINER
=========================== */


.container{

    width:min(95vw,900px);

    min-height:95vh;

    height: auto;

    background:#161b22;

    border:2px solid #2563eb;

    border-radius:20px;

    padding:15px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    overflow:hidden;

}




/* .container{

    width:min(95vw,900px);

    height:95vh;

    background:#161b22;

    border:2px solid #2563eb;

    border-radius:20px;

    box-shadow:0 0 30px rgba(37,99,235,.35);

    padding:15px;

} */

/* ===========================
   HEADER
=========================== */

header{

    text-align:center;

    margin-bottom:8px;

}

header h1{

    color:white;

    font-size:1.8rem;

}

header p{

    color:#9ca3af;

    margin-top:5px;

    font-size:.95rem;

}

/* ===========================
   DASHBOARD
=========================== */

.dashboard{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:10px;

    margin-bottom:10px;

}

.card{

    background:#1f2937;

    border-radius:10px;

    padding:10px;

    text-align:center;

    border:1px solid #374151;

    transition:.3s;

}

.card:hover{

    transform:translateY(-4px);

    box-shadow:0 0 15px rgba(37,99,235,.4);

}

.card h3{

    color:#60a5fa;

    font-size:15px;

    margin-bottom:8px;

}

.card span{

font-size:1.2rem;

}

/* ===========================
   STATUS
=========================== */

.status{

    background:#1f2937;

    border-radius:10px;

    padding:10px;

    text-align:center;

    margin-bottom:10px;

}

.status h2{

    color:#22c55e;

    font-size:20px;

    margin-bottom:5px;

}

.status p{

    color:white;

    font-size:15px;

}

/* ===========================
   GAME BOARD
=========================== */

.board{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:8px;

    margin:10px 0;

}

.node{

    width:100%;

    aspect-ratio:1;

    max-height:60px;

    border-radius:10px;

    cursor:pointer;

    transition:0.3s;

    box-shadow:0 5px 10px rgba(0,0,0,.3);

}

.node:hover{

    transform:scale(1.05);

    box-shadow:0 0 20px white;

}

/* ===========================
   COLORS
=========================== */

.blue{

    background:#2563eb;

}

.red{

    background:#ef4444;

}

.green{

    background:#22c55e;

}

.yellow{

    background:#facc15;

}

.purple{

    background:#9333ea;

}

.orange{

    background:#f97316;

}

.white{

    background:#f8fafc;

}

.brown{

    background:#92400e;

}

/* ===========================
   BUTTON
=========================== */

.button-area{

    text-align:center;

}

button{

    width:260px;

    max-width:100%;

    padding:10px;

    border:none;

    border-radius:40px;

    background:#2563eb;

    color:white;

    font-size:15px;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

}

button:hover{

    background:#16a34a;

    transform:scale(1.05);

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:768px){

.container{

padding:15px;

}

.dashboard{

grid-template-columns:repeat(2,1fr);

}

.card span{

font-size:1.3rem;

}

.board{

gap:10px;

}

header h1{

font-size:1.7rem;

}

}

@media(max-width:500px){

body{

padding:10px;

overflow:auto;

}

.dashboard{

grid-template-columns:repeat(2,1fr);

gap:8px;

}

.card{

padding:10px;

}

.card h3{

font-size:13px;

}

.card span{

font-size:1.2rem;

}

.status{

padding:10px;

}

.status h2{

font-size:18px;

}

.status p{

font-size:14px;

}

.board{

gap:8px;

}

button{

width:100%;

font-size:15px;

}

header h1{

font-size:1.5rem;

}

header p{

font-size:13px;

}

}




/* ===========================
   ACTIVE NODE
=========================== */

.active{
    transform: scale(1.08);
    filter: brightness(2);
    animation: pulse .8s ease infinite;
    outline: 4px solid cyan;

    box-shadow:
        0 0 15px cyan,
        0 0 30px cyan,
        0 0 45px cyan,
        0 0 60px white;
}

@keyframes pulse{

    0%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.08);
    }

    100%{
        transform: scale(1);
    }

}