/* GLOBAL AND BASE STYLES */
@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:wght@100..900&display=swap');

body {
    font-family: 'Advent Pro', Arial, sans-serif;
    background-color: #0A0D12;
    background-size: cover;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    min-height: 100vh;
    margin: 0;
    padding-top: 100px;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.container {
    background-color: #16191E;
    padding: 30px 25px;
    border-radius: 12px;
    border-width: 1px;
    border-color: #26292E;
    border-style: solid;;
    text-align: center;
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    color: #76c7c0;
    font-size: 2em;
    margin-bottom: 5px;
}

h2 {
    font-size: 1.5em;
    color: #e0e0e0;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

/* MAIN BUTTONS (GAME/MENU) */
button {
    background-color: #444444;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    margin: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
}

button:hover, button:focus {
    background-color: #555555;
    transform: none;
    box-shadow: none;
}

.instruction {
    color: #ffffff;
    font-size: 1em;
    line-height: 1.5;
    margin-top: 0px;
}

/* --- MAIN MENU AND GAME TILES STYLES --- */
.game-category {
    margin-bottom: 40px;
}

.game-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.tile {
    flex: 0 0 auto;
    width: 280px;
    height: 120px;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    text-decoration: none;
    color: #e0e0e0;
    background-color: #1D2025;
    transition: background-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.tile:hover {
    background-color: #222429;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0);
    border-color: #76c7c0;
}

.tile h3 {
    margin-top: 0;
    color: #76c7c0;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.tile p {
    font-size: 0.8em;
    color: #b0b0b0;
}

.disabled-tile {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #1a1a1a;
}
/* --- END OF MAIN MENU STYLES --- */


/* --- NAVBAR STYLES --- */
.navbar {
    background-color: #040709;
    padding: 20px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1215px;
    width: 100%;
    margin: 0 auto;
}

.logo a {
    color: #76c7c0;
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    margin-left: 25px;
    padding: 5px 0;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #76c7c0;
}


/* END GAME MODAL (Uniwersalny Modal) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #131921;
    color: #e0e0e0;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
}

#final-feedback-title {
    font-size: 2.2em;
    margin-top: 0;
}

.total-score-info {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 30px;
}

.modal-content button {
    padding: 12px 30px;
    width: 100%;
}

/* --- STYL DLA ZÓŁTEGO PRZYCISKU RESTARTU --- */
.yellow-btn {
    background-color: #FFCA1A;
    color: #080C10;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.yellow-btn:hover {
    background-color: #e6b717;
}

.default-btn {
    background-color: #1F252C;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.default-btn:hover {
    background-color: #1C2128;
}


/* Responsiveness */
@media (max-width: 1250px) {
    .container {
        padding: 30px 15px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
        box-shadow: none;
    }
    .modal-content {
        margin: 20px;
        padding: 30px;
    }
    .tile {
        width: 100%;
    }
    .navbar {
        padding: 10px 0;
    }
    .nav-links a {
        margin-left: 15px;
        font-size: 0.9em;
    }
}
