/* ZĂˇkladnĂ­ reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}

/* NavigaÄŤnĂ­ liĹˇta */
.navbar {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
}
.links{
    display: flex;
}

.navbar h1 {
    font-size: 24px;
    cursor: pointer;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* User menu styles */
.flexcolumn.user-menu-container {
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.flexcolumn.user-menu-container:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-menu-dropdown {
    position: absolute;
    bottom: auto;
    top: 40px;
    right: 10px;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    width: 200px;
    z-index: 1001;
    display: none;
    overflow: hidden;
    margin-top: 10px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.user-menu-dropdown.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #4e5254;
}

.menu-item i {
    font-size: 20px;
}


/* New backdrop styles */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: none;
}

.menu-backdrop.show {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-menu-dropdown {
        position: fixed;
        bottom: auto;
        top: 80px;
        left: 5%;
        right: 3%;
        width: 90%; /* Full width on mobile */
        border-radius: 8px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .user-menu-dropdown.show {
        transform: translateY(0);
    }
    

}


.navigation {
    display: flex;
    align-items: center; 
    margin: 5px 0;
    padding: 5px;
    gap: 8px; 
    border-radius: 5px;
    color: #333;
    background-color: #aaa;
}

.navigation a {
    display: flex; 
    align-items: center; 
    text-decoration: none;
    color: #333;
}

.navigation a span,
.navigation span {
    display: flex;
    align-items: center; 
    font-size: 20px; 
}

.flexcolumn {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.flexcolumn:hover{
    cursor: pointer;
}

.yourname {
    font-size: 14px;
    color: #ccc;
}

/* HlaviÄŤka */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin-bottom: 10px;
}
header a{
    font-size: 16px;
}
header h1 {
    font-size: 28px;
    margin: 10px 0 10px 0;
}

header form {
    margin-bottom: 20px;
}

header input[type="text"] {
    padding: 8px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

header button {
    padding: 15px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

header button:hover {
    background-color: #555;
}
.item2{
    display: flex;
    flex-direction: row;
    gap: 10px;
}
header .item2 a{
    display: flex;
    justify-self: center;
    align-self: center;
    background-color: #333;
    color: #fff;
    padding: 15px 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

header .item2 a:hover {
    background-color: #555;
}

.filter-section{
    display: flex;
    flex-direction: row;
}


        /* Responzivní obsah */
        #tadyhere {
            display: flex;
            justify-content: center; /* Horizontální centrování */
            align-items: center;     /* Vertikální centrování */
            width: 100%;             /* Šířka na 100% obrazovky */
            min-height: 85vh;
            background-color: #f4f4f4; /* Světle šedé pozadí */
        }

        /* Sekce obsahu */
        .content {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
            padding: 20px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            width: 90%; /* Šířka obsahu je 90% šířky okna */
            max-width: 600px; /* Maximální šířka 600px */
            height: 300px;
        }

        .content h1 {
            font-size: 2.5rem;
            color: #333;
        }

        .content p {
            font-size: 1.0rem;
            color: #666;
            margin-top: 10px;
        }

        /* Tlačítko pro interakci */
        .prihlasit-button {
            margin-top: 20px;
            padding: 12px 24px;
            background-color: #333;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
            text-decoration: none;
            width: 200px;
        }

        .content .prihlasit-button:hover {
            background-color:#4e5254;
        }
/*
        form {
        display: flex;
        flex-direction: row; 
        align-items: center;
        gap: 10px;
    }
*/

input[type="text"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 60%; /* Šířka inputu */
}

button[type="submit"] {
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}



.header-forms{
    display: flex;
    flex-direction: column;
    align-self: space-between;
}

/* Styl pro filtrování formulář */
.filter-section {
}
form .filter-form{
    width: 300px;
    display:flex;
    justify-content: space-around;
    flex-direction: row;
}

.filter-form label {
    font-size: 16px;
    margin-right: 10px;
    color: #333;
}

.filter-form select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333;
    font-size: 16px;
}

/* Styl pro výběr v selektoru */
.filter-form select option {
    color: #333;
    background-color: #fff;
}

select:focus, select:active {
    border-color: #333;
    background-color: #fff;
}

/* Styl pro aktivní výběr textu */
::selection {
    background-color: #333;
    color: #fff;
}
button[type="submit"]:hover{
    background-color: #4e5254;
}
@media (max-width: 768px) {
    .finding-form {
        flex-direction: column; /* Při menších obrazovkách budou input a button pod sebou */
    }
    .filter-form{
        flex-direction: row;
    }

    input[type="text"], button[type="submit"] {
        width: 100%; /* Na menších obrazovkách budou input a tlačítko 100% šířky */
        min-width: auto; /* Zrušení minimální šířky pro input a tlačítko */
    }
    header input[type="text"] {
    width: 100%; /* Na menších obrazovkách budou input a tlačítko 100% šířky */
    min-width: auto; /* Zrušení minimální šířky pro input a tlačítko */

}
}






main {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 0 20px 0;
}

.container {
    justify-content: flex-start;
    /*margin: 0 auto;*/
}


.form-flex {
    display: flex;
    justify-content: center; /* HorizontĂˇlnĂ­ centrovĂˇnĂ­ */
    align-items: center;     /* VertikĂˇlnĂ­ centrovĂˇnĂ­ */
    width: 100%;
    height: 85vh;            /* NastavenĂ­ vĂ˝Ĺˇky na 100% vĂ˝Ĺˇky okna */
    background-color: #f4f4f4; /* VolitelnÄ› mĹŻĹľete pĹ™idat pozadĂ­ pro lepĹˇĂ­ vzhled */
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color:#4e5254;
}

.login-form .links {
    flex-direction: column;
    margin-top: 15px;
    font-size: 14px;
}

.login-form .links a {
    color: #3498db;
    text-decoration: none;
}

.login-form .links a:hover {
    text-decoration: underline;
}

.error-message {
    color: red;
    margin-bottom: 10px;
}



.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Flexibilní sloupce, min 300px */
    gap: 20px;
    justify-items: center; /* Horizontálně centrováno */
    align-items: center;   /* Vertikálně centrováno */
    padding: 20px;
}

.album {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 250px; /* Maximální šířka alba */
    display: flex;
    flex-direction: column; /* Umožní vertikální zarovnání obsahu */
    justify-content: flex-start;
    text-align: center; /* Zarovnání textu na střed */
}

.album:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.album h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.album h3{
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    font-size: 16px;
    /* background-color: rgba(102, 102, 102, 0.15);  */
    border-radius: 5px;
}
/* Zajistí, že na menších obrazovkách budou alba stále dobře zarovnaná */
@media (max-width: 600px) {
    .album-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Pro mobilní zařízení menší šířka */
        padding: 15px;  /* Trochu menší padding pro mobilní zařízení */
    }
    .album h3{
        word-wrap: break-word;
    }
    .album {
        max-width: 100%; /* Umožní, aby alba využívala dostupnou šířku na mobilních zařízeních */
    }
}
.album-image {
    width: 100%;
    height: 120px;
    background-color: #eee;
    border-radius: 4px;
    margin: 0px 0 5px 0;
    background-size: cover;  
    background-position: center; 
    background-repeat: no-repeat; 
}

.zobrazit-album{
    display: inline-block;
    color: #333;
    text-decoration: none;
}

.tools{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
}
    .pocet_fotek{
        color: #666;
    }

.info {
    padding: 10px;
    font-size: 16px; /* Opravená velikost písma, měla by být čitelná */
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    min-width: 50px;
    max-width: 100px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center; /* Horizontální centrování */
    align-items: center; /* Vertikální centrování */
}
.info {
    background-color: #333; /* Zelená */
    color: white;
}

.info:hover {
    background-color: #4e5254;
}

.smazat-album {
    background-color: #98221a; /* Červená */
    color: white;
}

.smazat-album:hover {
    background-color: #d32f2f;
}
/*
.album:hover {
    transform: translateY(-5px);
}
*/
.album, .photo {
    padding: 10px;
    border-radius: 10px;
    background-color: white;
    border: 1px solid #aaa;
}



/* PatiÄŤka */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    margin-top: auto; /* Tento řádek zajistí, že footer bude vždy na spodní části */

}

footer p {
    font-size: 14px;
}