* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 0 !important;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 20%;
  width: 100%;
  text-align: center;
  color: white;
}

#heroTitle {
    font-size: 10vw;
    opacity: 1;
    transform:translateY(0px);
    animation: heroAnim 2s ease-out;
}

@keyframes heroAnim {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    30% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.clickable-card {
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .clickable-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        .card-body {
            height: 150px;
            overflow: hidden;
        }

.carousel-inner {
    padding-bottom: 70px;          
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute !important;                   
    top: auto !important;
    width: 60px !important;         
    height: 60px !important;
    opacity: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    
}

.carousel-control-prev {
    left: 50% !important;          
    transform: translateX(-100%);  
}

.carousel-control-next {
    left: 50% !important;         
    transform: translateX(0);     
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
    background-size: 100% 50% !important;
    background-color: rgba(170, 21, 27);  
    
}

.carousel-control-prev-icon{
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
}

.carousel-control-next-icon{
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F1BF00'><path d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/></svg>") !important;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F1BF00'><path d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/></svg>") !important;
}

.card-body {
    min-height: 180px;     
    height: auto !important;   
    overflow: visible !important; 
}

.card {
    min-height: 220px;        
}

.modal-kep {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-kep img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.modal-kep img:nth-child(1) { animation-delay: 0.1s; }
.modal-kep img:nth-child(2) { animation-delay: 0.2s; }
.modal-kep img:nth-child(3) { animation-delay: 0.3s; }
.modal-kep img:nth-child(4) { animation-delay: 0.4s; }
.modal-kep img:nth-child(5) { animation-delay: 0.5s; }

.modal-kep img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h5 {
    text-decoration: none;
    color: white;
    
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

body.darkMode {
    background: #111 !important;
}

header {
    background: linear-gradient(135deg, #c60b1e 0%, #ffc400 100%) !important;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.darkMode .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

section {
    padding-top: 2rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.darkMode section {
    background-color: rgb(40, 40, 40);
    box-shadow: rgba(0, 0, 0, 0.8) 0px 2px 15px 0px !important;
}

.darkMode .offcanvas{
    
    background-color: rgb(40, 40, 40);
    box-shadow: rgba(0, 0, 0, 0.8) 0px 2px 15px 0px !important;

}

.darkMode .offcanvas .list-group-item {
        background-color: rgb(40, 40, 40);
    box-shadow: rgba(0, 0, 0, 0.8) 0px 2px 15px 0px !important;
    color: white;
}

section h2 {
    color: #c60b1e;
    border-bottom: 3px solid #ffc400;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.darkMode section h2 {
    color: #ee4858;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    animation: fadeIn 0.5s ease-out;
}

.darkMode .card {
    background-color: rgb(50, 50, 50);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 6px 0px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.darkMode .card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

.card-title {
    color: #c60b1e;
    font-weight: bold;
    margin-bottom: 1rem;
}

.darkMode .card-title {
    color: #ee4858;
}

.card-text {
    color: #555;
    line-height: 1.6;
}

.darkMode .card-text {
    color: #eee;
}

.darkMode .list-unstyled li {
    color: #eee;
}

#latnivalok .card:first-child .card-title {
    font-size: 1.2rem;
}

#gasztro .card {
    background: linear-gradient(to bottom, #fff 0%, #fff9e6 100%);
    border-left: 4px solid #ffc400;
}

.darkMode #gasztro .card {
    background: linear-gradient(to bottom, #473606 0%, #4d3a06 100%);
    border-left: 4px solid #ffc400;
}

#kultura .card {
    background: linear-gradient(to bottom, #fff 0%, #ffe6e6 100%);
    border-left: 4px solid #c60b1e;
}

.darkMode #kultura .card {
    background: linear-gradient(to bottom, #521f1f 0%, #582222 100%);
    border-left: 4px solid #c60b1e;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%) !important;
    margin-top: 3rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-md-4:nth-child(1) .card, .col-md-3:nth-child(1) .card, .col-md-6:nth-child(1) .card { animation-delay: 0.1s; }
.col-md-4:nth-child(2) .card, .col-md-3:nth-child(2) .card, .col-md-6:nth-child(2) .card { animation-delay: 0.2s; }
.col-md-4:nth-child(3) .card, .col-md-3:nth-child(3) .card { animation-delay: 0.3s; }
.col-md-4:nth-child(4) .card { animation-delay: 0.4s; }
.col-md-4:nth-child(5) .card { animation-delay: 0.5s; }
.col-md-4:nth-child(6) .card { animation-delay: 0.6s; }

.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.darkMode .list-unstyled li {
    border-bottom: 1px solid #555;
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled strong {
    color: #c60b1e;
    min-width: 120px;
    display: inline-block;
}

.darkMode .list-unstyled strong {
    color: #ee4858;
}

.darkMode .modal-content {
    background: #222;
    color: #eee;
}

.darkMode .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.darkMode .modal-footer .btn {
    background: #555;
    border-color: #555;
}

.darkMode .modal-footer .btn:hover {
    background: #434343;
    border-color: #434343;
}

#lightMode {
    aspect-ratio: 1;
    height: 100%;
    background-image: url("kepek/dark-mode.png");
    background-size: cover;
    opacity: 0.55;
}

.darkMode #lightMode {
    background-image: url("kepek/light-mode.png");
}

#helpScene > h2 {
    color: white;
    border: none;
    font-weight: 500;
    margin: 0;
}
#helpScene > p {
    width: 50%;
    min-width: 200px;
    text-align: justify;
}
#helpScene > p {
    font-size: 20px;
}

#helpScene > table > tbody > tr:not(:last-child) {
    border-bottom: 1px white solid;
}
#helpScene th {
    padding: 3px 10px;
}