* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../Subory/Kostol_Poprad_Juh.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
}

.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
    z-index: 100;
}

.nav_list {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav_list li {
    height: 50px;
}

.nav_list a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 25px;
}

.nav_link {
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 25px;
    cursor: pointer;
    height: 50px;
}

.nav_link:hover {
    background-color: white;
    color: black;

}

.nav_list a:hover {
    background-color: white;
    color: black;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(10px);
    align-items: flex-start;
    text-decoration: none;
    list-style: none;
    background-color: black;
}

.sidebar a {
    text-decoration: none;
    width: 100%;
}

.bar1 {
    cursor: pointer;
    background-color: black;
    display: none;
}

.close {
    cursor: pointer;
    margin-left: 25px;
    margin-top: 15px;
}

.dropdown_link {
    display: flex;
    align-items: center;
}

.dropdown_menu {
    max-height: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .dropdown_link {
    margin-left: -30px;

}

.dropdown_item:hover .dropdown_menu {
    max-height: 1000px;
    transition: max-height .4s ease-in;
    background-color: black;
    text-decoration: none;
    list-style: none;
}

.nav_link1:hover {
    background-color: white;
    color: black;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background-color: #1a202c;
    color: white;
}

.footer .social {
    justify-content: center;
    text-align: center;
    padding-bottom: 25px;
    color: white;
}

.footer .social a {
    font-size: 25px;
    color: inherit;
    border: 1px solid #ccc;
    width: 40px;
    height: 40px;
    line-height: 38px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 8px;
    opacity: 0.75;
}

.footer .social a:hover {
    opacity: 0.9;
}

.footer .copyright {
    text-align: center;
    margin-top: 15px;
}

img {
    display: block;
    margin: auto;
    width: 50%;
}

.images {
    margin-top: 200px;
    margin-bottom: 10px;
    position: relative;
}

.images:hover {
    cursor: pointer;
}

.nauky {
    justify-content: center;
    align-items: center;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 7px;
    margin-top: -7px;
    border: none;
    border-radius: 20px;
    font-size: 22px;
    transition: all 0.7s ease;
}

.dropbtn:hover {
    background-color: black;
    border-radius: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
}

.dropdown-content {
    border-radius: 20px;
    margin-left: -3px;
    display: none;
    position: absolute;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    width: 120px;
    border-radius: 20px;
    color: white;
    padding: 16px 20px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    border-radius: 20px;
    background-color: white;
    color: black;
}

.dropdown:hover .dropdown-content {
    background-color: black;
    color: white;
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: black;
}
.dropdown-menu {
    position: absolute;
}

header img {
    width: 500px;
}

.navbar-logo img {
    display: inline-flex;
    align-items: center;
    width: 300px;
}

.omse-btn {
    height: 150px;
    padding: 10px;
    border: none;
    display: grid;
    place-items: center;
}

.omse-btn .btn {
    background-color: #1a202c;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 40px 280px;
    display: block;
    margin-top: 200px;;
}

.omse-btn .btn:hover {
    color: #1a202c;
    background-color: white;
}

.table-container {
    padding: 250px;
    font-family: "Roboto", sans-serif;
}

.table-container h2.table-heading {
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.table-container table {
    width: 100%;
    background: #fff;
    color: black;
    padding: 24px;
    box-shadow: 0 4px 15px -8px rgba(0,0,0,0.4);
}

.table-container table thead tr {
    background: #1a202c;
    color: white;
}

.table-container table td,
.table-container table th {
    width: 400px;
    padding: 40px 40px;
    text-align: center;
}

.table-container table tr {
    border-bottom: 1px solid #eee;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -150px;
    margin-left: 450px;
    height: 80px;
    width: 50%;
    position: sticky;
    top: 0;
    background: transparent;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50px;
    padding: 0 2rem;
    max-width: 100px;
}

.navbar-container .navbar-menu {
    display: flex;
    text-align: center;
    gap: 1.5rem;
    list-style: none;
    margin-top: 90px;
}

.omse-a {
    text-decoration: none;
}

.dane {
    margin-bottom: 10px;
}

.navbar-container .navbar-menu li a {
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
    white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover {
    color: white;
    background-color: black;
}

.navbar-toggle {

    display: none;
    margin: 0;
    background: transparent;
    padding: 0px 200px;
    right: 0;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background: white;
    transition: all 0.3s ease-in-out;
}

.kontakt-text {
    margin-top: 300px;
    color: white;
    text-align: center;
}

.kontakt {
    margin-top: 100px;
    color: white;
    text-align: center;
    font-size: 20px;
}

.texty {
    color: white;
    margin-top: 300px;
    text-align: center;
}

.podtexty {
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 100px;
    color: white;
    font-size: 20px;
}

.podtext {
    color: white;
    margin-left: 50px;
    position: relative;
}

.kancelaria {
    color: white;
}

.manzelstvo {
    margin-top: 5px;
    margin-bottom: 5px;
}

.vynimka {
    color: red;
    text-align: center;
}

.qrcode {
    margin-top: 5px;
    width: 10%;
}

.login {
    width: 30px;
    cursor: pointer;
}

.addbutton {
    margin: 150px;
    margin-left: 50px;
    display: flex;
    text-decoration: none;
    list-style: none;
    width: 80px;
    color: white;
    background-color: #1a202c;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.obrazok {
    color: white;
}

.itemy {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.deletebtn {
    border-width: 1px;
    background-color: transparent;
    border-radius: 4px;
    border-color: #df1d1d;
    border-style: solid;
    color: #df1d1d;
    height: 40px;
    width: 80px;
    margin: 250px;
    margin-top: 190px;
    position: absolute;
    z-index: 999;
}

.pdf {
    margin: 1px;
    margin-left: 450px;
}

.deletebtn:hover {
    background-color: #df1d1d;
    color: white;
}

.pagination {
    text-align: center;
    justify-content: center;
}

.dropdown_menu .dropdown_link_8 {
    height: 30px;
    margin-left: -30px;
}

.dropdown_menu .dropdown_link_8:hover {
    height: 120%;

}


@media (max-width: 1000px) {
    .deletebtn {
        margin: 50px;
        margin-top: 150px;
    }
    .hideOnMobile {
        display: none;
    }

    .dropdown-content {
        margin-left: 0px;
    }

    .bar1 {
        display: block;
    }

    .qrcode {
        width: 20%;
    }

    .table-heading {
        width: 400px;
    }
    .omse-btn .btn {
        padding: 30px 200px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .table-container table thead {
        display: none;
    }

    .table-container table td {
        display: block;
    }

    .table-container table td::before {
        content: attr(data-heading) "  ";
        font-weight: bold;
    }

    .navbar-logo img{
        width: 700px;
    }

    img {
        width: 90%;
        justify-content: center;
    }

    .dropbtn {
        margin-left: 15px;
    }

    .navbar-container {
        width: 100vh;
    }

    .navbar-logo img {
        width: 300px;
    }

    .navbar {
        backdrop-filter: none;
    }

    .navbar-container .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        margin-right: 30px;
        margin-top: 105px;
        height: 105vh;
        width: 200px;
        top: 0;
        right: 0;
        background-color: black;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        backdrop-filter: blur(10px);
    }

    .navbar-container .navbar-menu.active {
        display: flex;
        margin-right: 40px;
    }

    .navbar-toggle {
        margin-left: 50px;
        margin-top: 80px;
        display: block;
        z-index: 999;
        width: 50px;
    }

    .bar {
        margin-right: 50px;
    }

    .sidebar .dropdown_menu .dropdown_link {
        color: white;
        background-color: black;
        padding: .5rem;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        transform: translateY(0.5px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 500px) {
    .addbutton {
        margin-top: 260px;
    }

    .deletebtn {
        margin-top: 5px;
    }
    .sidebar .dropdown_menu .dropdown_link {
        color: white;
        background-color: black;
        padding: .5rem;
    }
    .sidebar {
        width: 100%;
    }
    .table-container {
        margin-left: -210px;
    }
    .navbar {
        margin-left: 350px;
    }
    .navbar-toggle {
        padding: 0px 1px;
        margin-left: -200px;
    }

    .navbar-container .navbar-menu.active {
        margin: 120px;
    }

    .navbar-logo img {
        width: 60%;
    }

    .navbar-logo {
        margin-left: 5px;
    }
    .omse-btn .btn {
        padding: 30px 90px;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .navbar-container {

        padding: 0 1rem;
    }

    .navbar-container .navbar-menu li a {
        font-size: 1.2rem;
        padding: 3px 15px;
    }
}

@media (max-width: 443px) {
    .navbar-logo img {
        width: 70%;
    }
    .bar1 {
        margin: 10px;
        margin-left: -25px;
    }

    .table-container {
        margin-left: -270px;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 250px;
    }

    .table-container tbody {
        width: 200px;
    }

    .login {
        margin-left: -50px;
    }

    .table-container h3 {
        margin-left: 25px;
    }

    .podtext {
        text-align: center;
        margin-left: 1px;
    }

    .podtexty {
        margin-left: 10px;
    }
}
