/* Reset základních stylů */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #EEEEEE;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Kontejner pro všechny stránky */
@media (min-width: 1000px) {
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}
    }

@media (max-width: 1000px) {
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%;
    margin: 20px auto;
}
    }
/* Titulek stránky */
h1 {
    font-size: 24px;
    color: #333;
}

h2 {
    margin-top: 1em;
}

/* Horizontální menu */
nav {
    display: flex;
    justify-content: center;
    background-color: #0A623A;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    padding: 8px 12px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #EAAF02;
    border-radius: 4px;
}

/* Formulář a jeho prvky */
form {
    display: flex;
    flex-direction: column;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

/* Stylování pro tlačítka */
button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Styl pro tlačítko přihlášení */
.login-button {
    background-color: #0A623A;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.login-button:hover {
    background-color: #EAAF02;
}

/* Styl pro zelená a červená tlačítka */
button[name="add_multiple_voters"], .add-button {
    background-color: #0A623A;
    color: #fff;
}

button[name="add_multiple_voters"]:hover, .add-button:hover {
    background-color: #EAAF02;
}

button[name="delete_all_voters"], .delete-button {
    background-color: #c82333;
    color: #fff;
}

button[name="delete_all_voters"]:hover, .delete-button:hover {
    background-color: #70000b;
}

/* Chybové zprávy */
p.error, p.success {
    margin-bottom: 15px;
    font-size: 14px;
}

p.error {
    color: red;
}

p.success {
    color: green;
}

/* Tabulka pro výsledky */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #0A623A;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #EEEEEE;
}


/* Styl pro hlasovací otázky */
@media (min-width:1000px) {
.vote-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Styl pro tlačítko hlasování */
.vote-button {
    background-color: #0A623A;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.vote-button:hover {
    background-color: #EAAF02;
}

/* Velké možnosti */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
.option {
    position: relative;
    background-color: #f0f0f0;
    border: 2px solid #0A623A;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    height: 4em;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px; /* Nastavte výšku podle potřeby */
}

/* Zvýraznění vybrané možnosti */
.option input:checked + span {
    background-color: #EAAF02;
    color: #000000;
    padding: 18px;
    width: 100%;
    height: 100%;
    border-radius:7px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Skrytí skutečného radio inputu */
.option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}


/* Styl pro vybranou možnost po odeslání hlasu */
.selected-option {
    background-color: #0A623A;
    color: white;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    border: 2px solid #0A623A;
    text-align: center;
}
    }

@media (max-width:1000px) {
.vote-container {
    padding: 20px;
    width: 95%;
    margin: 0 auto;
}

/* Styl pro tlačítko hlasování */
.vote-button {
    background-color: #0A623A;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    height: 4em;
    cursor: pointer;
    font-size: 25px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.vote-button:hover {
    background-color: #EAAF02;
}

/* Velké možnosti */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.option {
    position: relative;
    background-color: #f0f0f0;
    border: 2px solid #0A623A;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    height: 4em;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px; /* Nastavte výšku podle potřeby */
}

/* Zvýraznění vybrané možnosti */
.option input:checked + span {
    background-color: #EAAF02;
    color: #000000;
    padding: 18px;
    width: 100%;
    height: 100%;
    border-radius:7px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Skrytí skutečného radio inputu */
.option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}


/* Styl pro vybranou možnost po odeslání hlasu */
.selected-option {
    background-color: #0A623A;
    color: white;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    border: 2px solid #0A623A;
    text-align: center;
}
    }

/* Mobilní verze */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .container, .login-container, .vote-container {
        padding: 30px;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .login-container {
        max-width: 100%;
        margin: 0;
    }

    button, .login-button, .vote-button {
        font-size: 22px;
        padding: 20px;
        border-radius: 8px;
    }

    .option {
        font-size: 22px;
        padding: 25px;
    }

    .selected-option {
        font-size: 22px;
        padding: 25px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="number"],
    select {
        padding: 20px;
        font-size: 20px;
    }
}


/* Styl přihlašovací stránky */
@media (min-width: 1000px) {
.login-container {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}
  
        .login-container img {
            display: block;
            margin: 0 auto 20px;
            max-width: 150px;
        }
        .login-button {
            background-color: #0A623A;
            color: white;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.3s;
            width: 100%;
        }
        .login-button:hover {
            background-color: #218838;
        }
        .info-text {
            margin-top: 20px;
            font-size: 14px;
            color: #555;
            text-align: center;
            max-width: 300px;
            margin: 20px auto;
            line-height: 1.5;
        }  }

/* Styl přihlašovací stránky */
@media (max-width: 1000px) {
.login-container {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5em;
    text-align: center;
    font-size: 20px;
}
  
        .login-container img {
            display: block;
            margin: 0 auto 20px;
            max-width: 35%;
            margin-bottom: 2em;
        }

        .login-container input {
            height: 3em;
            padding: 12px;
            line-height: 3em;
            font-size: 25px;
            margin-top: 1em;
        }
    
        .login-button {
            background-color: #0A623A;
            color: white;
            padding: 12px;
            height: 3em;
            line-height: 2em;
            border: none;
            border-radius: 8px;
            font-size: 25px;
            cursor: pointer;
            transition: background-color 0.3s;
            width: 100%;
        }
        .login-button:hover {
            background-color: #218838;
        }
        .info-text {
            margin-top: 20px;
            font-size: 20px;
            color: #555;
            text-align: center;
            max-width: 85%;
            margin: 20px auto;
            line-height: 1.5;
        }  }
		
		
		       /* Styl pro gridové zobrazení a modal */
        .grid-container {
            display: grid;
            gap: 20px;
        }
        .question-card {
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-left: 5px solid #EAAF02;
        }
        .question-card:nth-child(even) {
            background-color: #e9ecef;
            border-left-color: #0A623A;
        }
        .question-header {
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 18px;
        }
        .options-list {
            list-style: none;
            padding: 0;
            margin-top: 10px;
        }
        .options-list li {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            border-bottom: 1px solid #ddd; /* Oddělovací linka */
            padding: 8px 0;
        }
        .status-indicator {
            margin-top: 10px;
            font-size: 14px;
            color: #555;
            font-weight: bold;
        }
        .question-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        /* Modal styling */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            max-width: 500px;
            width: 80%;
            position: relative;
        }
        .close-button {
            background: #dc3545;
            color: #fff;
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            position: absolute;
            bottom: 20px;
            right: 20px;
        }
        .vote-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }
        .vote-table th, .vote-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }
        .vote-table th {
            background-color: #f2f2f2;
        }