html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 60px;
    background-color: #121212;
    color: #ffffff;
    font-size: 18px;
}

p {
    font-size: 1.15rem;
    line-height: 1.62;
    color: #dddddd;
}

/* H1 */
h1 {
    font-size: 2.8rem;
    color: #a90000;
}

/* H2 */
h2 {
    font-size: 2rem;
    color: #fbfbfb; /* Červený prízvuk pre nadpisy */
    margin-bottom: 15px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-bottom: 2px solid #333;
    z-index: 1000;
}

.navbar a {
    color: #a90000;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.navbar a:hover, .navbar a.active {
    color: #ffffff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.margin-top-page {
    margin-top: 40px;
}

section {
    padding: 40px 0;
    border-bottom: 1px solid #2a2a2a;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    min-height: 70vh;
    background: url('banner_nightmerra.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
    box-sizing: border-box;
}

/* Banner About Me */
.about-banner {
    min-height: 40vh;
    align-items: center;
    background: url('HenysDev_Banner.png') center/cover no-repeat;
}

.banner-title {
    font-size: 3rem;
    margin: 0;
}

.hero-btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: #e53030;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
    background-color: #b5203b;
    transform: translateY(-2px);
}


.horizontal-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    cursor: grab;
    user-select: none;
    scrollbar-color: #a90000 #1e1e1e;
    scrollbar-width: thin;
}

.horizontal-gallery img {
    height: 300px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    flex-shrink: 0;
}

.horizontal-gallery::-webkit-scrollbar,
.video-slider::-webkit-scrollbar {
    height: 8px;
}

.horizontal-gallery::-webkit-scrollbar-thumb,
.video-slider::-webkit-scrollbar-thumb {
    background: #a90000;
    border-radius: 4px;
}
.video-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-color: #a90000 #1e1e1e;
    scrollbar-width: thin;
}
.video-card {
    flex: 0 0 540px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}
.video-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* for mobiles */
@media (max-width: 650px) {
    .video-card {
        flex: 0 0 85vw;
    }
}

/* My Other Games */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.game-card {
    display: flex;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.game-card img {
    width: 250px;
    height: 180px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-info h3 {
    margin-top: 0;
    color: #a90000;
}

.itch-btn {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #fa5c5c;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.itch-btn:hover {
    background-color: #e04343;
}