/* Súbor: global.css */

/* GLOBÁLNE NASTAVENIE PRE POZADIE */
html, body {
    /* height: 100%; <-- ODSTRÁNENÉ: Povoľuje rolovanie */
    margin: 0;
    padding: 0;
    /* overflow: hidden; <-- ODSTRÁNENÉ: Povoľuje rolovanie */
    
    /* Trávnaté a oblohové pozadie zostáva, fixed pozícia zachová pekný efekt pri rolovaní */
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 50%, #82C46C 50%, #82C46C 100%);
    background-attachment: fixed;
    color: #333; /* Predvolená farba textu */
    font-family: Arial, sans-serif;
}

/* Upravíme #content, aby korektne centroval obsah */

@media (max-width: 1377px) {
    .container {
        max-width: 100%;
    }
}

#content {
    flex-grow: 1; 
    width: 100%;
    max-width: 100%; 
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ŠTÝLY PRE NAVBAR */
.navbar {
    margin-bottom: 20px; /* Pridá medzeru pod navigáciou */
}

/* ŠTÝLY PRE KRUHOVÉ TLAČIDLÁ OBTIAŽNOSTI (difficulty-button) */
.difficulty-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 140px; 
    height: 140px;
    border-radius: 50%; /* Kruhový tvar */
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
    
.difficulty-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
    
.difficulty-button span:first-child {
    font-size: 2em;
    line-height: 1.2;
}

.difficulty-button span:last-child {
    font-size: 0.9em;
    opacity: 0.8;
}

#diff-1 { background-color: #2ecc71; }
#diff-2 { background-color: #3498db; }
#diff-3 { background-color: #f1c40f; }
#diff-4 { background-color: #e74c3c; }
#diff-5 { background-color: #9b59b6; }

.diff-1 { background-color: #2ecc71; }
.diff-2 { background-color: #3498db; }
.diff-3 { background-color: #f1c40f; }
.diff-4 { background-color: #e74c3c; }
.diff-5 { background-color: #9b59b6; }

/* styl pre obrazok pri vybere hry s viacerymi hracmi default je pre 1377x768 */
.player-select-image {
    max-height: 300px;
    border: 5px solid #f0ad4e;
}

@media (min-width: 1440px) {
    .player-select-image {
        max-height: 450px;
    }
}

    .game-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 800px; /* Väčšia šírka pre lepšie rozloženie tlačidiel */
        width: 100%;
        padding: 20px;
        /*background-color: #fff;*/
        background-color: rgba(244, 238, 224, 0.95);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        text-align: center;
        margin-top: auto;
        margin-bottom: auto;
    }
    #difficulty-screen {
        width: 100%;
    }
    .style-options,
    .difficulty-options {
        display: flex;
        justify-content: center;
        flex-wrap: wrap; /* Povolenie zalamovania na menších obrazovkách */
        gap: 15px; /* Medzera medzi tlačidlami */
        margin-top: 15px;
        margin-bottom: 30px; 
    }

    /* ŠTÝL PRE TLAČIDLÁ SYMBOLOV (NOVÝ HORIZONTÁLNY VZHĽAD) */
    .style-option-btn {
        flex: 1 1 120px; /* Zabezpečí rovnomernú minimálnu šírku */
        max-width: 180px;
        padding: 12px 15px;
        font-size: 1em;
        cursor: pointer;
        border: 2px solid #ccc;
        border-radius: 8px;
        background-color: #f9f9f9;
        transition: all 0.2s;
        text-align: center;
    }
    
    .style-option-btn:hover {
        border-color: #aaa;
        background-color: #eee;
    }
    
    .style-option-btn.selected {
        border-color: #3498db; 
        background-color: #eaf6ff; /* Svetlomodré pozadie pre výber */
        font-weight: bold;
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
    }