body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 20px;
}

.btn-secondary {
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: #007bb5;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #6200ea;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

footer a {
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer a.active {
    color: yellow;
}

footer .material-icons {
    display: block;
    margin: 0 auto;
    /* font-size: 36px; Zvětšení ikon */
}

/* Dialog styles */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px; /* Zaoblené rohy */
}

.btn-confirm, .btn-cancel, .btn-google, .btn-facebook {
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    cursor: pointer;
    border-radius: 4px; /* Zaoblené rohy tlačítek */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-confirm {
    background-color: #4CAF50;
}

.btn-cancel {
    background-color: #f44336;
}

.btn-google {
    background-color: white;
    color: #4285F4; /* Change text color to Google blue */
    border: 1px solid #4285F4; /* Add a border in Google blue */
}

.btn-google img {
    margin-right: 10px;
}

.btn-facebook {
    background-color: #4267B2;
    color: white;
}

.btn-facebook img {
    margin-right: 10px;
}

.link-secondary {
    color: #008CBA;
    text-decoration: none;
    cursor: pointer;
    margin: 10px 0;
}

.link-secondary:hover {
    text-decoration: underline;
}

.text-secondary {
    color: #333;
    text-align: center;
    white-space: nowrap; /* Zajistí, že text zůstane na jednom řádku */
}

#show-forgot-password {
    text-align: left;
    margin-top: -10px; /* Přiblížení k vstupnímu poli pro heslo */
    margin-bottom: 15px; /* Zvětšení rozestupu mezi textem a následujícím tlačítkem */
    display: block; /* Zajistí, že text zůstane vlevo */
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.divider:not(:empty)::before {
    margin-right: .25em;
}

.divider:not(:empty)::after {
    margin-left: .25em;
}

form div {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px; /* Zaoblené rohy inputů */
    box-sizing: border-box;
}

input[type="password"].error {
    background-color: #f8d7da;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* Space for the toggle icon */
}

.password-container .material-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.error-message {
    color: #f44336; /* Červená barva pro chybovou zprávu */
    display: none; /* Skryté jako výchozí */
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

/* Snackbar styles */
#snackbar {
    visibility: hidden; /* Skryté jako výchozí */
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 30px; /* Zobrazení na horní straně obrazovky */
    transform: translateX(-50%);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#snackbar.show {
    visibility: visible; /* Zobrazení snackbaru */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackbar.success {
    background-color: #4CAF50; /* Zelená */
}

#snackbar.warning {
    background-color: #FFC107; /* Oranžová */
}

#snackbar.error {
    background-color: #F44336; /* Červená */
}

#snackbar .material-icons {
    margin-right: 10px;
}

@-webkit-keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 30px; opacity: 1;}
}

@keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {top: 30px; opacity: 1;}
    to {top: 0; opacity: 0;}
}

@keyframes fadeout {
    from {top: 30px; opacity: 1;}
    to {top: 0; opacity: 0;}
}
