/* =========================================
   1) Definice fontů
========================================= */

/* Rleud Regular */
@font-face {
    font-family: 'Rleud';
    src: url('../fonts/Rleud/font.woff2') format('woff2'),
         url('../fonts/Rleud/font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* Rleud Black */
@font-face {
    font-family: 'Rleud';
    src: url('../fonts/RleudBlack/font.woff2') format('woff2'),
         url('../fonts/RleudBlack/font.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}
/* RleudSC Regular */
@font-face {
    font-family: 'RleudSC';
    src: url('../fonts/RleudSC/font.woff2') format('woff2'),
         url('../fonts/RleudSC/font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* RleudSC Black */
@font-face {
    font-family: 'RleudSC';
    src: url('../fonts/RleudSCBlack/font.woff2') format('woff2'),
         url('../fonts/RleudSCBlack/font.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* =========================================
   2) Základní styly (body, headings, kontejnery)
========================================= */

body {
    font-family: 'Rleud', sans-serif;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rleud', sans-serif;
    font-weight: 900; /* Použije "Rleud Black" */
    margin-top: 0;
    margin-bottom: 0.5em;
}
h1.high {
    font-size: 3em;
    font-weight: normal; /* pokud chcete menší sílu */
    color: #ffe0b1!important;
}
h1.brown {
    font-size: 3em;
    font-weight: normal;
    color: #3c231f!important;
}
h2.brown-light {
    font-size: 3em;
    font-weight: normal;
    color: #8b6d62!important;
}
.brown-light {
    color: #8b6d62!important;
}
.bg-brown-light {
    background-color: #8b6d62!important;
}

/* Základní kontejner pro obsah */
.container-main {
    max-width: 1380px;
    margin: 0 auto; /* Vycentrování kontejneru */
}
.container-content {
    background-color: #ffffff;
    width: 95%;
    margin: 0 auto; /* Vycentrování kontejneru */
}
.modal-content {
    background-color: #3c231fc7!important;
}

.btn-secondary {
    color: #3c231f!important;
    border-color: #d3a274!important;
    background-color: #d3a274!important;
}
.alert.news {
    background-color: #fff2df!important;
    border-color: #ffe0b1!important;
}

/* =========================================
   3) Legend ikony, map markers, karty atd.
========================================= */

.legend-icon {
    display: inline-block;
    width: 35px;  /* Šířka jedné ikony ve sprite */
    height: 46px; /* Výška jedné ikony ve sprite */
    background-image: url('https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/images/markers-soft.png');
    background-repeat: no-repeat;
}
/* Červená ikona */
.legend-icon-red {
    background-position: 0 0;
}
/* Oranžová ikona */
.legend-icon-orange {
    background-position: -36px 0;
}
/* Zelená ikona */
.legend-icon-green {
    background-position: -72px 0;
}
.legend {
    margin-top: 15px;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.legend-item span {
    margin-left: 10px;
}
.legend {
    margin-top: 15px;
    padding: 30px;
    border-color: #cde6c6;
    background-color: #dfedd8;
    border-radius: 10px;
}

/* Karty */
.card-body {
    background-color: #fff2df !important;
    color: #3c231f !important;
}
.card {
    background-color: #ffe0b1 !important;
    color: #3c231f !important;
}

.map-info {
    padding-right: 50px;
}

/* =========================================
   4) Styly vln (wave-top, wave-middle, wave-bottom) + SVG
========================================= */

/* Nastavení SVG vln, aby se roztáhly na šířku */
svg {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.wave-top, .wave-middle, .wave-bottom {
  font-size: 0;
  line-height: 0;
  vertical-align: bottom;
}

/* =========================================
   5) .full-width-section (pokud chcete zachovat)
========================================= */

.full-width-section {
    position: relative;
    padding: 25px 0;
    background-color: #f6e3bd;
    background-image: linear-gradient(to bottom right, #e3bb78, #e5c795);
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
    overflow: hidden;
}
.full-width-section::before,
.full-width-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 65px; /* Výška obrázků */
    background-size: 100% 65px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}
.full-width-section::before {
    top: -1px;
    background-image: url('https://macoo.fun/images/bg_top.png');
}
.full-width-section::after {
    bottom: -1px;
    background-image: url('https://macoo.fun/images/bg_down.png');
}
.full-width-section .container-fluid {
    position: relative;
    z-index: 1;
}
.full-width-section .container-main {
    max-width: 1380px;
    margin: 20px auto;
    padding: 25px;
    padding-bottom: 50px;
    background-color: transparent; /* ať prosvítá background sekce */
}

/* =========================================
   6) .footer-transition (pokud chcete obrázkový přechod nad patičkou)
========================================= */

.footer-transition {
    width: 100%;
    height: 64px;
    background-image: url('https://macoo.fun/images/bg_footer.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center bottom;
    margin-top: -1px;
}
.footer-transition, footer {
    display: block;
    margin: 0;
    padding: 0;
}

/* =========================================
   7) Navigace (admin-navbar + main-navbar)
========================================= */

/* Admin Navbar (pro administraci) */
    .admin-navbar {
        background-color: #fff2df;
        border-bottom: 1px solid #e9ecef;
        padding: 0.5rem 0;
        font-size: 0.9rem;
      }
      .admin-navbar .nav-link {
        color: #6c757d;
        padding: 0.4rem 1rem;
      }
      .admin-navbar .nav-link:hover {
        color: #343a40;
      }
  
      /* Hlavní navigace styly */
      .main-navbar {
        padding-top: 10px;
        background-color: #fff2df !important;
        padding-bottom: 0px;

      }
      .navbar-brand img {
        height: 60px;
        width: auto;
      }
      a.navbar-brand {
        margin-top: 10px;
    }
  
      /* Odstranění modrého outline efektu */
      .dropdown-toggle:focus,
      .nav-link:focus,
      .dropdown-item:focus {
        outline: none !important;
        box-shadow: none !important;
      }
  
      /* Dropdown menu styly */
      .dropdown-menu {
        border-radius: 8px;
        border: none;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
      }
      .dropdown-item:hover {
        background-color: #ffe0b1;
      }
      #mainNavbar a.nav-link {
        font-size: 24px !important;
      }

/* Ikony / logout odkaz vedle hamburgeru na mobilu */
.login-icon {
    display: none;
    margin-right: 10px;
}
.login-icon img {
    height: 30px;
    width: auto;
}

/* Tlačítka (login / registrace) vpravo na desktopu */
.navbar-nav.ml-auto .nav-link {
    margin-left: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.navbar-nav.ml-auto .nav-link img {
    height: 30px;
    width: auto;
}

/* =========================================
   8) Patička (footer), boxy, text, barvy
========================================= */

footer {
    position: relative;
  }

footer {
    background-color: #e4c288; /* starší nastavení, pokud chcete jinou barvu, změňte */
    padding: 5px 10% 5px 10%;
}
.footer-content {
    background-color: #f1f1f1 !important;
}
.footer-content h5 {
    font-weight: bold;
    color: #593a30;
}
.footer-content p, .footer-content a {
    color: #593a30;
    text-decoration: none;
}
.footer-content a:hover {
    color: #04642e;
}

/* Text v patičce */
.footer-text {
    margin: 0;
    text-align: center;
    font-weight: normal;
    font-size: 1em;
    color: #ffe0b1; /* Krémově světle */
}
.footer-text a {
    color: white;
    text-decoration: none;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* Boxy v patičce */
.footer-box {
    background-color: #fddeaf;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
}
.footer-box a {
    color: #3c231f;
    text-decoration: none;
}
.footer-box a:hover {
    text-decoration: underline;
}
p.description {
    color: #fff2df;
    font-size: 1em;
    margin-right: 3em;
    }

/* =========================================
   9) Tlačítka a další obecné prvky
========================================= */

/* Tlačítko "Chci se zapojit" */
.submit-btn-home {
    display: inline-block;
    padding: 18px 35px;
    color: #fff;
    background-color: #b07e49;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 21px;
    transition: background-color 0.3s;
}
.submit-btn-home:hover {
    background-color: #593a30;
    color: #fff2d9;
    text-decoration: none;
}

/* Obecná primární tlačítka */
    .btn-primary {
        background-color: #3c231f;
        border-color: #04642E;
        color: white;
      }
      .btn-primary:hover {
        background-color: #04642E;
        border-color: #04642E;
      }
      .btn-outline-primary {
        color: #3c231f;
        border-color: #d3a274;
        background-color: #d3a274;
      }
      .btn-outline-primary:hover {
        background-color: #04642E;
        border-color: #04642E;
        color: #fff;
      }
      .submit-btn-home {
        display: inline-block;
        padding: 18px 35px;
        color: #fff;
        background-color: #b07e49; 
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        font-size: 21px;
        transition: background-color 0.3s;
      }
      .submit-btn-home:hover {
        background-color: #593a30; 
        color: #fff2d9; 
        text-decoration: none; 
      }

/* =========================================
   10) Tabulky (custom-table), hover atd.
========================================= */

.container .table.custom-table,
.container-main .table.custom-table {
    font-family: 'Rleud';
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    color: #593a30 !important;
    background-color: #f6e3bd !important;
    border-radius: 8px;
}
/* Hlavička tabulky */
.container .table.custom-table thead tr,
.container-main .table.custom-table thead tr {
    background-color: #b07e49 !important;
    color: #ffffff !important;
    text-align: center;
}
/* Buňky tabulky */
.container .table.custom-table th,
.container .table.custom-table td,
.container-main .table.custom-table th,
.container-main .table.custom-table td {
    padding: 12px 15px !important;
    border: 1px solid #e5c795 !important;
    background-color: inherit !important;
    color: inherit !important;
}
/* Změna barvy řádků */
.container .table.custom-table tbody tr:nth-of-type(even),
.container-main .table.custom-table tbody tr:nth-of-type(even) {
    background-color: #e5c795 !important;
}
.container .table.custom-table tbody tr:hover,
.container-main .table.custom-table tbody tr:hover {
    background-color: #b07e49 !important;
    color: #ffffff !important;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Zlepšuje posouvání na mobilních zařízeních */
}
.container.py-3.text {
    color: #ffe0b1 !important;
}

/* =========================================
   11) Formuláře (login, register) atd.
========================================= */

/* Login box */
.login-container, .register-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 30px;
}
.login {
    padding: 40px;
    text-align: center;
    width: 500px;
    border-radius: 7px;
    color: #593a30;
    background-image: url('https://macoo.fun/images/bg_login.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding-top: 46px;
}
.login h2 {
    font-family: 'RleudSC';
    font-weight: bold;
    font-size: 24px;
    color: #593a30;
    margin-bottom: 20px;
}
.brown {
    font-family: 'RleudSC';
    font-weight: bold;
    font-size: 24px;
    color: #8b6d62;
}
.login input {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid rgba(89, 58, 48, 0.6);
    border-radius: 5px;
    color: #593a30;
}
.login input::placeholder {
    color: rgba(89, 58, 48, 0.7);
}
.login button {
    background-color: #028090;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}
.login button:hover {
    background-color: #016f78;
}

.btn-google {
    background-color: #028090;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}
.btn-google:hover {
    background-color: #016f78;
}
.btn-google img {
    width: 30px;
    margin-right: 15px;
    padding-bottom: 3px;
}

.login p {
    margin-top: 15px;
    color: #593a30;
}
.login a {
    color: #593a30;
    text-decoration: underline;
}
.login a:hover {
    color: #000;
}

/* Register box */
.register {
    padding: 40px;
    margin-top: 10px;
    text-align: center;
    width: 480px;
    border-radius: 7px;
    color: #593a30;
    background-image: url('https://macoo.fun/images/bg_registrace.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.register h2 {
    font-family: 'RleudSC';
    font-weight: bold;
    font-size: 24px;
    color: #593a30;
    margin-bottom: 20px;
}
.register input {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid rgba(89, 58, 48, 0.6);
    border-radius: 5px;
    color: #593a30;
}
.register input::placeholder {
    color: rgba(89, 58, 48, 0.7);
}
.register small {
    display: block;
    color: #593a30;
    font-size: 0.8em;
    margin-top: -5px;
    margin-bottom: 15px;
}
.register button {
    background-color: #028090;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}
.register button:hover {
    background-color: #016f78;
}
.register p {
    margin-top: 15px;
    color: white;
}
.register a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}
.register a:hover {
    color: #fff;
}

/* =========================================
   12) Administrační menu - drobnosti
========================================= */

.admin-navbar .navbar-nav .nav-item .nav-link {
    padding: 10px 20px; /* Větší padding pro button styl */
    border-color: #343a40;
    text-align: center;
}

.accordion-body .table {
    width: 100%;
    margin: auto;
    font-size: 0.8em;
    border-radius: 8px;
    overflow: hidden;
}

/* =========================================
   13) Ověření mince (kód, hash, email, result)
========================================= */

.code-input:last-child,
.hash-input:last-child {
    margin-right: 0;
}
.code-input:focus,
.hash-input:focus {
    border-color: #66afe9;
    outline: none;
}
.code-input-container,
.hash-input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}
.code-input,
.hash-input {
    width: 50px;
    text-align: center;
    font-size: 24px;
    margin-right: 5px;
}
.hash-input[readonly] {
    background-color: #e9ecef;
}
.submit-btn {
    display: block;
    margin: 20px auto;
    background-color: #68a92f;
    border-color: #68a92f;
    font-size: 18px;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
}
.submit-btn:hover {
    background-color: #5b8a27;
    border-color: #5b8a27;
}
.result-container {
    text-align: center;
    margin-top: 30px;
}
.alert {
    margin-top: 20px;
}
.email-input {
    width: 300px;
    margin: 0 auto 20px;
}
.form-check {
    margin-bottom: 20px;
}

/* =========================================
   14) Responzivita (media queries)
========================================= */

/* 14a) max-width: 991.98px (tablety a menší) */
@media (max-width: 991.98px) {
    .container-main {
        width: 98%;
        background-color: #ffffff;
    }
    /* Skryjeme tlačítka vpravo, zobrazíme mobilní ikonu */
    .navbar-nav.ml-auto {
        display: none !important;
    }
    .login-icon {
        display: block;
    }
    .mobile-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    h1.high {
        font-size: 1.8em;
        font-weight: normal;
        color: #ffe0b1!important;
    }
    h1.brown {
        font-size: 1.8em;
        font-weight: normal;
        color: #3c231f!important;
    }
    .submit-btn-home {
        padding: 18px 20px;
        font-size: 18px;
        margin-bottom: 15px;
    }
    .admin-navbar {
        padding: 10px;
    }
    .admin-navbar .nav-link {
        display: block; /* každý link na novém řádku */
        margin: 5px 0;
    }
    .full-width-section {
        padding: 15px 0;
    }
    .map-info {
        padding-right: 0px;
    }
}

/* 14b) max-width: 768px (telefony) */
@media (max-width: 768px) {
    .code-input, .hash-input {
        width: 42px; /* zmenšeno z 50px */
        font-size: 20px; /* zmenšeno z 24px */
        margin-right: 4.5px; /* zmenšeno o 10% */
    }
    .code-input-container, .hash-input-container {
        margin-bottom: 18px;
    }
    .submit-btn {
        margin: 18px auto;
    }
    .result-container {
        margin-top: 27px;
    }
    .alert {
        margin-top: 18px;
    }
    .email-input {
        width: 270px;
        margin: 0 auto 18px;
    }
    .form-check {
        margin-bottom: 18px;
    }
    .col-md-5.d-flex.align-items-center.justify-content-center.text-center.text-md-left {
        margin-top: 20px;
    }
    .login {
        padding: 25px;
        width: 435px;
    }
    .register {
        padding: 30px;
        width: 300px;
    }
    .social-logins {
        margin-top: 29px;
    }
    .btn-social.fb, .btn-social.google {
        font-size: 0.7em !important;
    }

    h1.text-center.brown.py-3 {
        padding-top: 0rem !important;
    }
    p.description {
        color: #fff2df;
        font-size: 1em;
        margin-right: 0em !important;
    }

}

/* Rámec pro sociální tlačítka vedle sebe */
/* Sociální tlačítka vedle sebe */
.social-logins {
    display: flex;
    justify-content: space-between;  /* roztáhne tlačítka vlevo a vpravo */
    margin-bottom: 20px;            /* mezera pod nimi */
  }
  
  /* Společný základ pro sociální tlačítka */
  .btn-social {
    flex: 1;                       /* aby se roztáhla rovnoměrně */
    margin: 0 5px;                 /* mezery mezi tlačítky */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
  }
  
  /* Facebook modrá */
  .btn-social.fb {
    background-color: #4267B2;
  }
  .btn-social.fb:hover {
    background-color: #365899;
  }
  
  /* Google červená */
  .btn-social.google {
    background-color: #DB4437;
  }
  .btn-social.google:hover {
    background-color: #C23321;
  }
  
  /* Ikony uvnitř tlačítek */
  .btn-social img {
    width: 24px;
    height: auto;
    margin-right: 8px;
  }
  
  /* Dekorativní oddělovač "Nebo vyplňte formulář" */
  .divider {
    text-align: center;
    color: #593a30;
    position: relative;
    margin-bottom: 20px;
  }
  .divider span {
    background-color: rgba(254, 238, 205, 1); /* barva pozadí (kvůli textu na textu) */
    padding: 0 10px;
    z-index: 1;
    position: relative;
  }
  .divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(89, 58, 48, 0.3);
    z-index: 0;
  }
  