/* Reset základních stylů */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --secondary-color: #7C3AED;
    /*--background-color: #F9FAFB;*/
    /*--text-color: #1F2937;*/
    --background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    --text-color: white;
    --text-na-bilem-pozadi: black;
    --accent-color: #10B981;
    --error-color: #EF4444;
    --success-color: #059669;
    --header-bg: #1F2937;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ziskane-kody{    
    background-color: #FFEB3B;
    padding: 6px;        
    max-width: 100%;
    margin: 0px auto;
    margin-bottom: 0px;
    color: black;
    font-size: 20px;
}

.oblast-ziskane-kody{ 
    background-color: #333;
    padding: 20px;
    border-radius: 19px;
    box-shadow: 2px 4px 4px 4px rgba(0, 0, 0, .5);
    max-width: 70%;
    margin: 5px auto;
    margin-bottom: 10px;
    color: white;
    font-weight: 100;
    font-size: 15px;
}

.language-switcher{
    float:right;
    margin-right: 20px;
    z-index: 999999;
    color:white;
}

.language-switcher a{
    color:white;
    text-decoration: none;
    z-index: 999999;
}

#matching-game {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: auto;
}
.left-column, .right-column {
    display: flex;
    flex-direction: column;
    width: 45%;
}
.draggable, .droppable {
    padding: 10px;
    margin: 5px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    text-align: center;
    cursor: move;
}
.droppable {
    min-height: 40px;
    background: #e0e0e0;
}

.form-sprite{
        position: relative;
        z-index: 99999999;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        height: 100%;
    }

html, body {
    height: 100%; /* Zajistí plnou výšku */
}

body {
    display: flex; /* Použití flexboxu */
    flex-direction: column; /* Obsah směřuje odshora dolů */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

header, footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    background: #555;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Základní styly */
nav {
    position: relative;
    
}

.pagination-link {
    border: black solid 1px;
    padding: 5px;
    margin: 0px 4px;
    text-decoration: none;
}

.pagination-link:hover {
    background-color: black;
    color:white;
}


.menicko {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.menicko li {
    margin: 0;
}

.menicko a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: #333;
}

/* Styl pro hamburger menu tlačítko */
.menicko-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Responzivní styly */
@media (max-width: 768px) {
    .menicko {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .menicko.show {
        display: flex;
    }

    .menicko li {
        text-align: center;
    }

    .menicko-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

main {
    flex: 1;
    padding: 0px;
    margin: 0px auto;
    width: 80%;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.5);
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.vstup{
    margin-bottom: 40px;
}

footer {
    flex-shrink: 0; /* Footer se nebude zmenšovat */
}

button {
    padding: 8px 12px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

button:hover {
    background: #555;
}

.blok-dveri{
    margin-top:20px;
    background-image: url("../img/dvere.jpg");
    height:600px;
    background-size: contain;
    background-repeat: no-repeat;
}

.dvere{    
    display: inline-block;    
    margin-top: 170px;
    height: 150px;
    width: 89px;
    margin-left: 34px;
    margin-right: 33px;
}

.popis-dveri{
    margin: auto;
    text-align: center;
    
}

.uspech{
    color:green;
}

.neuspech, .chyba{
    color:red;
}

.stred{
    text-align: center;
}

/*formuláře*/

/* Základní styl pro formulář */
#final-code-form{
    display:none;
}


form {
    background-color: #333;
    padding: 20px;
    border-radius: 19px;
    box-shadow: 2px 4px 4px 4px rgba(0, 0, 0, .5);
    max-width: 70%;
    margin: 5px auto;
    margin-bottom: 10px;
}

/* Styly pro labely formuláře */
form label {
    font-size: 18px;
    font-weight: 600;
    display: contents;
    color: white;
}

/* Styly pro textová pole a inputy */
form input[type="text"], form input[type="password"], form input[type="email"], form input[type="number"], form textarea {
    padding: 6px 10px;
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

form input[type="file"]{
    padding: 6px 10px;
    width: 100%;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;

}

.checkboxy{
    font-size: 15px;
    font-weight: normal;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Styl pro tlačítka */
form button[type="submit"] {
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0px;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Styly pro selekty (výběrová pole) */
form select {
    padding: 12px 15px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Styling pro multi select */
form select[multiple] {
    height: 150px;
    overflow-y: auto;
    padding: 12px 15px;
}

/* Vylepšený styl pro placeholdery */
form input::placeholder,
form textarea::placeholder {
    color: #888;
    font-style: italic;
}

/* Vylepšený styl pro error zprávy */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
}


 /* Překrytí pozadí */
 .message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Obsah zprávy */
.message-content {
    background: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 1.2em;
    color: #333;
}

/* Styl pro úspěšnou zprávu */
.message-content p {
    color: green;
    margin: 0;
}

/* Styly pro textové popisky/pomocníky pod inputy */
.form-helper {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
/*konec css formulářů*/

/*Styly pro tabulky*/
/* Globální styl pro tabulky */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 16px;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

th {
    background-color: #007BFF;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f1f9ff;
}

td a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Responsivní tabulka */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px 10px;
    }
}
/*Konec stylů pro tabulky*/

/*Tlačítka ve taskovém formuláři*/
/* Kontejner pro tlačítka */
.button-container {
    display: flex;
    gap: 10px; /* Mezera mezi tlačítky */
    margin-top: 10px; /* Odstup od prvků nad nimi */
}

/* Styl tlačítek */
.btn-smazat,
.btn-pridat {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
}

/* Specifický styl pro tlačítko "Smazat" */
.btn-smazat {
    width: 134px;
    background-color: #e74c3c; /* Červená */
    margin-bottom: 10px;
}

.btn-smazat:hover {
    background-color: #c0392b; /* Tmavší červená při najetí */
}

/* Specifický styl pro tlačítko "Přidat" */
.btn-pridat {
    width: 134px;
    background-color: #27ae60; /* Zelená */
    margin-bottom: 10px;
}

.btn-pridat:hover {
    background-color: #229954; /* Tmavší zelená při najetí */
}
/*KOnec formulářových tlačítek*/

.separator-box {
    background-color: #f9f9f9; /* Světle šedé pozadí */
    border: 1px solid #ddd;   /* Šedý okraj */
    border-radius: 8px;       /* Zaoblené rohy */
    padding: 15px;            /* Vnitřní odsazení */
    margin: 10px 0;           /* Mezera nad a pod boxem */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Jemný stín */
}

#tableSearch{
    margin-bottom: 10px; 
    padding: 8px; 
    width: 200px; 
    float:right;
}

.seznamy{
    margin-top:50px;
    display: contents;
}

/*CSS z index.php*/


        .dashboard {
            background-color: #a4e3ff;
            margin: 30px auto;            
            color: black;
            padding: 20px;
            text-align: center;
        }

        .container {
            max-width: 1200px;
            margin: auto;
            padding: 20px;
        }

        /*h1, h2 {
            color: #5D5FEF;
        }*/

        .section {
            margin-bottom: 40px;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .section h2 {
            margin-top: 0;
        }

        .steps {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .steps li {
            margin-bottom: 10px;
            padding-left: 20px;
            position: relative;
        }

        .steps li:before {
            content: "✔";
            color: #a4e3ff;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        .image-preview {
            text-align: center;
            margin-top: 20px;
        }

        .image-preview img {
            max-width: 100%;
            border: 2px solid #ddd;
            border-radius: 8px;
        }

        footer {
            text-align: center;
            margin-top: 20px;
            color: #666;
            font-size: 0.9em;
        }
    








/* Skrytí modálního okna na začátku */
.stats-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 30%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    transition: right 1s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Obsah modálního okna */
.stats-modal {
    width: 100%;
    padding: 20px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Tlačítko zavření */
.stats-close {
    font-size: 30px;
    cursor: pointer;
    align-self: flex-end;
}

.stats-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    transition: right 1s ease; /* Stejná transition jako u overlay */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 1001;
}

/* Nová třída pro posunuté tlačítko */
.stats-button.moved {
    right: 30%; /* Stejná šířka jako má overlay */
    
}

/* Aktivní třída pro zobrazení modálního okna */
.stats-overlay.active {
    right: 0;
}

/* Responzivní úpravy pro menší displeje */
@media (max-width: 768px) {
    .stats-overlay {
        width: 70%; /* Zvětšení šířky na tabletech */
        max-width: none;
    }
    .stats-button.moved {
        right: 70%;
    }
}

@media (max-width: 480px) {
    .stats-overlay {
        width: 100%; /* Na mobilních zařízeních přes celou šířku */
    }
    .stats-button.moved {
        right: 100%;
    }
}







.container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
    text-align: center;
}
.room-image {
    position: absolute;
    transition: all 0.3s ease-in-out;
}
.room-image:hover {
    transform: scale(1.1);
}
.room-link {
    position: absolute;
    text-decoration: none;
    font-weight: bold;
    color: black;
}
.logout {
    position: absolute;
    top: 10px;
    right: 10px;
}

.game-footer {
    position: fixed;
    bottom: 0px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    background-color: rgba(255, 255, 255, .7);
    border-radius: 25px;
    width: 400px;
    height: 616px;
}

.secondary-image {
max-width: 150px;
max-height: 150px;
margin-bottom: 10px;
}

#final-code-form input {
margin: 5px 0;
padding: 5px;
width: 70%;
}

.fin-code{
padding: 10px;
margin: 0px;
margin-bottom: 100px;
width: 380px;
/*background-color: #333;        */
}

/*form{
margin: 15% auto;
}*/


form label{
color: white;
font-weight: 100;
font-size:15px;
}

.success-message {
position: fixed;
bottom: 50%;
left: 50%;
transform: translateX(-50%);
background-color: #4CAF50;
color: white;
padding: 47px;
text-align: center;
font-size: 30px;
z-index: 999;
border-radius: 31px;
box-shadow: 0px 0px 18px 7px black;
}
.unsuccess-message {
position: fixed;
bottom: 50%;
left: 50%;
transform: translateX(-50%);
background-color: red;
color: white;
padding: 47px;
text-align: center;
font-size: 30px;
z-index: 999;
border-radius: 31px;
box-shadow: 0px 0px 18px 7px black;
}

.success-message-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: fadeIn 0.3s ease;
}

form button[type="submit"]{
padding: 5px 5px;        
}

.do-hry{
    
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0px;
    padding: 3px 5px;
    float: right;
    background-color: #d66300;
    text-decoration: none;
}




