:root {
    --barva-pozadi-stranky: #181818;
    --barva-pozadi-obsahu: #2b2b2b;
    --barva-textu-stranky: #e3e3e3;
    --barva-textu-obsahu: #dedede;
    --barva-stinu-stranky: #000000;
    --barva-stinu-obsahu: #1a1a1a;
    --barva-loga: #5e9dc2;
    --barva-tlacitka: #0096f0;
}

a {
    color: var(--barva-textu-obsahu);
    text-decoration: none;
}

a, img {
    display: block;
}

body, html {
    background-color: var(--barva-pozadi-stranky) !important;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    letter-spacing: .04rem;
    color: var(--barva-textu-stranky);
}

div.nadpis {
    margin-top: 1em;
    text-align: center;
    text-shadow: 0 0 .6em black;
}

h2 {
    font-weight: normal;
}

.center {
    text-align: center;
}

.page-header {
    background-color: var(--barva-pozadi-obsahu);
    display: flex;
    text-align: center;
    justify-content: space-between;
    padding: calc(.5em + 1px) 1em .5em 1em;
    box-shadow: 0 0 .4em black;
}

.page-content {
    flex: 1;
    text-align: center;
    padding: .8em 1em .3em 1em;
}

.page-footer {
    font-size: .75rem;
    text-align: center;
    padding: 2em 1em .2em 1em;
    color: gray;
}

.login-dialog {
    display: flex;
    flex-direction: column;
    gap: 1em;
    background-color: var(--barva-pozadi-obsahu);
    color: var(--barva-textu-stranky);
    width: 18.5em;
    margin: 2em auto;
    padding: 1em;
    border-radius: .4em;
    box-shadow: 0 0 .4em black;
}

    .login-dialog .form-group {
        display: flex;
        align-items: center;
        gap: 0.5em; /* Optional: adds space between label and input */
    }

    .login-dialog label {
        flex: 0 0 6em; /* Fixed width for all labels */
        text-align: right;
        padding: 0 .4em 0 0;
    }

    .login-dialog input {
        flex: 1 1 auto; /* Input takes the rest of the space */
        width: auto; /* Let flexbox control the width */
        min-width: 0; /* Prevent overflow */
    }

    .login-dialog input, .login-dialog button {
        padding: .5em;
        box-sizing: border-box;
    }

    .login-dialog button {
        padding: .8em;
        margin-top: .5em;
        background-color: var(--barva-loga);
        color: #000;
        font-family: sans-serif;
        font-size: .9rem;
        font-weight: 600;
        width: 60%;
        justify-self: center;
        border-radius: 1rem;
        border-width: 0;
        box-shadow: 0 0 .3em black;
    }

        .login-dialog button:hover {
            background-color: var(--barva-tlacitka);
            cursor: pointer;
        }

    .login-dialog input {
        width: 100%;
        height: 80%;
        justify-self: start;
    }

    .login-dialog a {
        text-decoration: none;
        color: gray;
        margin-top: .4em;
    }

        .login-dialog a:hover {
            color: white;
        }

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background-color: #2a2a2a;
    border: 0;
    box-shadow: 0 0 .5em black;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s, visibility .5s;
}

    .menu-dropdown.visible {
        opacity: 1;
        visibility: visible;
    }

    .menu-dropdown a {
        border-radius: 5px;
        color: #ddd;
        padding: 10px 16px;
        text-decoration: none;
        white-space: nowrap;
        display: block;
        transition: background-color .3s;
    }

        .menu-dropdown a:hover {
            background-color: #373737;
        }

.menu-wrapper {
    position: relative;
    cursor: pointer;
}

/* Styles for the playlist container */
.playlist-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between items */
    padding: 16px;
    justify-content: center;
}

/* Styles for each playlist item */
.playlist-item {
    background: var(--barva-pozadi-obsahu);
    border: 0px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px; /* Ensure item does not exceed image width */
    text-align: center;
    box-shadow: 0 0 .6em black;
}

.playlist-item-unchecked {
    background: var(--barva-pozadi-obsahu);
    border: solid .1em red;
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px; /* Ensure item does not exceed image width */
    text-align: center;
    box-shadow: 0 0 .6em black;
}

/* Styles for the playlist image */
.playlist-item img {
    width: 100%; /* Responsive image */
    height: auto; /* Maintain aspect ratio */
}

/* Styles for the playlist information */
.playlist-info {
    padding: 16px;
}

    .playlist-info h3 {
        margin: 0;
        font-size: 1.2em;
    }

    .playlist-info p {
        margin: 4px 0;
        font-size: .9em;
    }

#formisoft_logo, #menu {
    margin: 0;
    padding: 0;
    height: 1.6em;
    width: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #4b4b4b;
    padding: 4px 8px;
    text-align: left;
    white-space: nowrap;
}

th {
    text-align: center;
    background-color: var(--barva-pozadi-obsahu);
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.align-center {
    text-align: center;
}

.quality-max {
    color: rgb(255, 212, 50);
}

.quality-high {
    color: rgb(51, 255, 238);
}

.playlist-table tbody tr:nth-child(odd) {
    background-color: #131313;
}

.playlist-table tbody tr:nth-child(even) {
    background-color: #202020;
}

.playlist-table td.align-center a {
    display: inline-block;
}