/* Společné styly */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1, h2, h3, h4, h5
{
  font-family: "BenchNine", sans-serif;
  font-weight: bold;
  color: #000056;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

h2 {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    margin-top: 30px;
    font-family: 'BenchNine', sans-serif;
    position: relative;
    left: 0px;
}

ul.mainmenu {
    margin-top: 5px;
    margin-left: 280px;
    text-align: left;
    list-style-type: none;
    padding-left: 0;
    z-index: 8;
}
ul.mainmenu li.menuitem {
    display: inline-block; /* Use inline-block to stack content vertically */
    padding: 10px 20px; 
    cursor: pointer; 
    font-size: 35px; 
    margin-top: 0px;
    margin-left: 1%;
    text-align: center; /* Center-align the content */
}
ul.mainmenu li.menuitem a {
    font-weight: bold;
    text-decoration: none;
    color: #000000;
    display: block; /* Ensure the link takes the full width */
}
ul.mainmenu li.menuitem.selected .line_under_selected_button {
    display: block; /* Show line only for selected item */
}
ul.mainmenu li.menuitem.login.selected .line_under_selected_button {
    display: none;
}
.line_under_selected_button {
    display: none;
    margin-top: 5px; /* Space between text and the line */
    width: 100%; /* Match the width of the parent */
    height: 10px;
    background-image: url('../images/top-bar.png');
    background-size: cover;
}
.mainmenu-top {
    position: fixed;
    z-index: 5;
    height: 90px;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
}
.prihlaseni_img {
    position: absolute;
        width: 30px;
        right: -25px;
        height: auto;
    }
ul.mainmenu li.menuitem.login {
    position: absolute;
    right: 2%;
}
/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 30px;
    width: 40px;
    margin: 20px;
    margin-top: 10px;
    margin-right: 5%;
    position: fixed;
    top: 20px;
    right: 20px; /* Place the hamburger menu on the right side */
    z-index: 8;
}
.hamburger-menu .bar {
    height: 5px;
    width: 100%;
    background-color: #000;
    margin: 3px 0;
}
    .menu-toggle {
    display: none; /* Hide the checkbox */
    }
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2em;
    z-index: 1;
}
.container {
  z-index: 7;
  display: none; /* Skryje celý div */
  position: fixed;
  top: 100px;
  right: 10px;
  background: white;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
  border: 5px solid #000056;
}
input {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}
input.input_login {
    width: 93%;
}
.submit_btn {
  background: #0000a5;
  color: white;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.submit_btn:hover { background: #000055; }
@media (min-width: 1000px) {
ul.mainmenu li.menuitem .prihlaseni {
    font-size: calc(1em/1.3);
}
.logged-in .prihlaseni_img {
    display: none;
}
}
.logo {
    position: fixed;
    z-index: 6;
    top: 0px;
    width: 160px;
    padding: 10px 20px; 
    margin-top: 0px;
    margin-right: 10px;
}
.fixed_ratio {
    width: 100%;
    max-width: 100%;
    resize: both;
    overflow: auto;
    padding: 0px;
}
.fixed_ratio img {
    width: 30%;
    height: auto;
}
/* Contact Section */
.kontakty {
    margin-top: 5px;
    margin-left: 0px;
    text-align: center;
    list-style-type: none;
    padding-left: 0;
}
.kontakty .telefon, 
.kontakty .email, 
.kontakty .podminky a, 
.kontakty .IC {
    display: inline-block;
    padding-top: 10px;
    padding-right: 20px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 20px; 
    margin-top: 5px;
    margin-right: 10px;
    margin-bottom: 8px;
    color: #ffffff; /* šedý text */
}
/* Footer */
.mainmenu-bottom {
    color: white;
    height: auto;
    padding-bottom: 10px;
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
    width: 100%;
    background-image: url('../images/top-bar.png');
}
.all {
    position: relative;
    top: 0px;
}
.top-bar {
  position: fixed;
  left: 0;
  top: 80px;
  width: 100%;
  height: 10px;
}

body {
    background-color: white;
    padding-top: 100px;
    padding-bottom: 125px;
    width: 100%;
    margin: 0px;
}
/* ================================
   Uživatelský dropdown (opraveno)
   ================================ */

/* Rámeček kolem "Profil" v menu */
.user-dropdown {
    position: relative;     /* umožní absolutní pozicování dropdownu */
    display: inline-block;
}

/* Dropdown box */
.user-logout {
    position: absolute;
    top: 100%;              /* hned pod tlačítkem Profil */
    right: 0;               /* zarovnání doprava */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;

    display: none;          /* schovaný defaultně */
    white-space: nowrap;
    font-size: 15px;
}

/* Zobrazení dropdownu */
.user-logout.show {
    display: block;
}

/* Styl textů uvnitř dropdownu */
.user-info-box {
    padding: 6px 0 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.user-info-box .user-name {
    font-weight: 700;
    font-size: 16px;
}

.user-info-box .user-role {
    font-size: 14px;
    color: #555;
    margin-bottom: 3px;
}

.user-info-box .user-email {
    font-size: 13px;
    color: #777;
}

/* Logout odkaz */
.user-logout a {
    display: block;
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 8px 0 0;
}

.user-logout a:hover {
    text-decoration: underline;
}


/* Responsive Menu */
@media (max-width: 1400px) {
    ul.mainmenu li.menuitem {
    padding: 10px 10px; 
    font-size: 31px; 
    margin-top: 0px;
    margin-right: 10px;
}
    .kontakty .kontakt {
    font-size: 21px;
    padding: 8px 16px;
    }
    .prihlaseni_img {
    position: absolute;
        width: 25px;
        right: -25px;
        height: auto;
    }
}
@media (max-width: 1200px) {
    /* Initially hide the menu */
    ul.mainmenu {
        display: none; /* Menu is hidden by default */
        flex-direction: column;
        position: fixed;
        top: 85px; /* Space from the top for menu */
        right: 0px; /* Align the menu to the right */
        background-color: #ffffff;
        width: 200px; /* Set width of the sliding menu */
        padding: 0;
        border: 5px solid #000056;
    }
    

    /* When checkbox is checked, show the menu */
    .menu-toggle:checked + ul.mainmenu {
        display: flex; /* Display the menu */
    }

    ul.mainmenu li.menuitem {
        font-size: 25px; /* Adjust size for smaller screens */
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #888;
    }
    ul.mainmenu li.menuitem.login {
    position: relative;
    top: -5px;
    padding-bottom: 15px;
    border-bottom: 1px solid transparent;
    }
    ul.mainmenu li.menuitem .prihlaseni {
    position: relative;
    font-size: 25px;
    }
    ul.mainmenu li.menuitem .prihlaseni_img {
        position: relative;
        top: 5px;
        right: -5px;
        width: 20px;
        height: auto;
    }
    .hamburger-menu {
        display: flex; /* Show hamburger menu icon */
    }
      .container {
  position: fixed;
  top: 420px;
  width: 190px;
  right: 0px;
  padding: 5px;
  }
  input{
  padding: 5px;
  }
.kontakty .telefon, 
.kontakty .email, 
.kontakty .podminky a, 
.kontakty .IC {
    padding-top: 8px;
    padding-right: 14px;  
    border-radius: 4px;  
    font-size: 15px; 
    margin-top: 4px;
    margin-right: 8px;
    margin-bottom: 6px;}
}
@media screen and (max-width: 1000px) {
    .kontakty .kontakt {
    font-size: 18px;
    padding: 7px 14px;
    }
}

@media screen and (max-width: 585px) {
    body {
    padding-top: 100px;
    }
    .kontakty {
    margin-bottom: 5px;
    }
    .kontakty .kontakt {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 15px;
    padding: 5px 20%;
    }
}
@media screen and (max-width: 460px) {
    .logo {
    width: 130px;
    margin-top: 12px;
    }
    body {
    padding-top: 110px;
    }
}
@media screen and (max-width: 363px) {
    body {
    padding-top: 110px;
    padding-bottom: 75px;
    }
    .kontakty {
    margin-bottom: 5px;
    }
    .kontakty .kontakt {
    }
}
@media screen and (max-width: 800px) 
{
  .maincontent {
    margin-left: 20px;
    margin-right: 20px;
  } 
}
@media screen and (min-width: 800px) {
    body {
        margin: 0px;
        padding: 0px;
        height: 98%;
        width: 98%;
        background-image: url('../images/infinite-loop-left.svg'), url('../images/background-shadow.png'), url('../images/infinite-loop-right.svg'); /* Two different images for left and right */
        background-repeat: repeat-y; /* Both images repeat vertically */
        background-size: 15% auto, 64% auto, 15% auto; /* Adjust size (auto, cover, contain, etc.) */
        background-position: 2% 0, 50% 0, calc(100% - 2%) 0; /* Left image 15px right, right image 15px left */
        position: relative;
    }
    .maincontent {
        padding-top: 120px;
        margin-bottom: 120px;
        width: 56%;
        position: relative;
        left: 22%;
    }
}

