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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

/* =========================
   GLOBAL THEME
========================= */

body{
    background:#0f172a;
    color:#f8fafc;
    min-height:100vh;
}

h1,h2,h3{
    margin-bottom:15px;
}

p{
    line-height:1.6;
}

a{
    color:white;
    margin-top: 10px;
}

/* =========================
   LAYOUT
========================= */

.container{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:40px 20px;
}

.row{
    display:flex;
    flex-wrap:wrap;
    margin-inline:-0.5rem;
}

[class^="col"]{
    padding-inline:0.5rem;
    width:100%;
}

/* =========================
   COLUMN SIZES
========================= */

.col-1{ width:8.333%; }
.col-2{ width:16.666%; }
.col-3{ width:25%; }
.col-4{ width:33.333%; }
.col-5{ width:41.666%; }
.col-6{ width:50%; }
.col-7{ width:58.333%; }
.col-8{ width:66.666%; }
.col-9{ width:75%; }
.col-10{ width:83.333%; }
.col-11{ width:91.666%; }
.col-12{ width:100%; }

/* =========================
   NAVBAR
========================= */

.navbar{
    display:flex;
    gap:20px;
    padding:20px;
    background:#111827;
    border-bottom:1px solid #334155;
}

.navbar a{
    font-weight:bold;
}

/* =========================
   TOP BAR
========================= */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:40px;
    flex-wrap:wrap;
}

.topbar-actions{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

/* =========================
   BUTTONS
========================= */

.btn,
.edit-btn,
.delete-btn,
.page-btn,
.login-btn{

    display:flex;
    align-items:center;
    justify-content:center;

    width:fit-content;

    padding:10px 18px;

    border:none;
    border-radius:8px;

    color:white;
    font-size:15px;
    font-weight:bold;

    cursor:pointer;

    transition:0.2s;

    line-height:1;

    margin-top: 10px;
}

.btn:hover,
.edit-btn:hover,
.delete-btn:hover,
.page-btn:hover,
.login-btn:hover{
    transform:translateY(-2px);
}

/* Primary */

.btn-primary,
.edit-btn,
.login-btn,
.page-btn{
    background:#2563eb;
}

.btn-primary:hover,
.edit-btn:hover,
.login-btn:hover,
.page-btn:hover{
    background:#1d4ed8;
}

/* Danger */

.btn-danger,
.delete-btn{
    background:#dc2626;
}

.btn-danger:hover,
.delete-btn:hover{
    background:#b91c1c;
}

/* Success */

.btn-success{
    background:#16a34a;
}

.btn-success:hover{
    background:#15803d;
}

/* =========================
   LOGIN
========================= */

#login{
    display:flex;
    justify-content:center;
    margin-top:25vh;
}

/* =========================
   CARDS
========================= */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap:25px;
}

.card{
    background:#1e293b;
    border:1px solid #334155;
    border-radius:16px;
    overflow:hidden;

    transition:0.2s;

    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.card:hover{
    transform:translateY(-5px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card-content{
    padding:20px;
}

.card-content h2{
    margin-bottom:10px;
}

.card-content p{
    margin-bottom:10px;
    color:#cbd5e1;
}

.card-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:15px;
}

/* =========================
   FORMS
========================= */

form{
    width:100%;
}

.input-group{
    margin-bottom:20px;
}

.input-group label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}

.input-group input,
.input-group textarea,
.input-group select{
    width:100%;

    padding:12px;

    border-radius:10px;
    border:1px solid #334155;

    background:#1e293b;
    color:white;
    margin-bottom: 10px;
}

.input-group textarea{
    min-height:120px;
    resize:vertical;
}

/* =========================
   PAGINATION
========================= */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;

    width:100%;

    margin-top:40px;
}

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

#game-area{
    width:100%;
    height:500px;

    background:#020617;

    border:2px solid #334155;
    border-radius:16px;

    position:relative;
    overflow:hidden;

    margin-top:20px;
}

.signal{
    width:60px;
    height:60px;

    border-radius:50%;

    position:absolute;

    cursor:pointer;
}

.good{
    background:limegreen;
}

.bad{
    background:red;
}

.hud{
    display:flex;
    gap:30px;

    margin-bottom:20px;

    font-size:20px;
    font-weight:bold;
}

/* =========================
   HALL OF FAME
========================= */

.hall-of-fame{
    margin-top:50px;

    padding:25px;

    background:#1e293b;

    border:1px solid #334155;
    border-radius:16px;
}

.hall-of-fame ol{
    margin-top:20px;
    padding-left:20px;
}

.hall-of-fame li{
    margin-bottom:12px;
    font-size:18px;
}

/* =========================
   SECTION
========================= */

.section{
    margin-top:60px;
}

.section-title{
    margin-bottom:25px;
}

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

/* Tablet */

@media (min-width:768px){

    .col-md-6{ width:50%; }
    .col-md-4{ width:33.333%; }
    .col-md-3{ width:25%; }
    .col-md-12{ width:100%; }

}

/* Desktop */

@media (min-width:992px){

    .col-lg-6{ width:50%; }
    .col-lg-4{ width:33.333%; }
    .col-lg-3{ width:25%; }
    .col-lg-12{ width:100%; }

}

/* Mobile */

@media(max-width:768px){

    .topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .hud{
        flex-direction:column;
        gap:10px;
    }

}