/* Basic reset for consistency across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1b1b1b;
    background-image: url('dragon-background.jpg');
    background-attachment: fixed;
    background-size: cover;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-y: auto;
    scrollbar-width: thin;          /* For Firefox */
    scrollbar-color: #e63946 #333;  /* For Firefox */
}

/* Custom scrollbar for WebKit browsers */
body::-webkit-scrollbar {
    width: 12px;                    /* Width of the scrollbar */
}

body::-webkit-scrollbar-track {
    background: #333;               /* Background of the scrollbar track */
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: #e63946;      /* Color of the scrollbar thumb */
    border-radius: 6px;
    border: 3px solid #333;         /* Adds padding around the thumb */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #d62828;      /* Darker thumb on hover */
}

body::-webkit-scrollbar-thumb:active {
    background-color: #a30000;      /* Even darker thumb when active */
}

/* Scrollbar styling for all scrollable elements */
*::-webkit-scrollbar {
    width: 12px;
}

*::-webkit-scrollbar-track {
    background: #333;
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
    background-color: #e63946;
    border-radius: 6px;
    border: 3px solid #333;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #d62828;
}

*::-webkit-scrollbar-thumb:active {
    background-color: #a30000;
}

/* Navigation Styles */
nav {
    background: #333;
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #e63946;
}

/* Section Styles */
.section {
    display: none;
    padding: 50px 20px;
}

.section.active {
    display: block;
}

#home {
    background: url(home-background.jpg) no-repeat center center / cover;
    text-align: center;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

#home h1 {
    font-family: 'Metal Mania', cursive;
    font-size: 3em;
    margin-bottom: 20px;
    color: #e63946;
    text-shadow: 2px 2px 5px #000;
}

.slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    border: 2px solid #e63946;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
}

.slider img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
}

.slider button {
    background: #e63946;
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    margin: 10px 5px;
    transition: background 0.3s ease-in-out;
    border-radius: 5px;
}

.slider button:hover {
    background: #d62828;
}

#about, #menu, #events, #contact {
    background-color: rgba(20, 20, 20, .9);
    margin: 20px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

#about img {
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
}

#about h2, #menu h2, #events h2, #contact h2 {
    font-family: 'Metal Mania', cursive;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #e63946;
}

#about p, #menu p, #events p, #contact p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.8;
}

#menu ul {
    list-style: none;
    padding-left: 0;
}

#menu ul li {
    background: #333;
    margin: 10px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1em;
    color: #f4f4f4;
    transition: background 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

#menu ul li:hover {
    background: #444;
}

#menu ul li strong {
    display: block;
    font-family: 'Metal Mania', cursive;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #e63946;
}

#events {
    background-color: rgba(20, 20, 20, .9);
    margin: 20px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

#events h2 {
    font-family: 'Metal Mania', cursive;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #e63946;
}

#events h3 {
    font-family: 'Metal Mania', cursive;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #e63946;
}

#events p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.8;
}

#events ul {
    list-style: none;
    padding-left: 0;
}

#events ul li {
    background: #333;
    margin: 10px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1em;
    color: #f4f4f4;
    transition: background 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

#events ul li:hover {
    background: #444;
}

#events ul li strong {
    display: block;
    font-family: 'Metal Mania', cursive;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #e63946;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

form label {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #e63946;
}

form input, form textarea {
    padding: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    margin-bottom: 10px;
}

form input::placeholder, form textarea::placeholder {
    color: #888;
}

form button {
    margin-top: 20px;
    padding: 15px;
    font-size: 1.2em;
    background: #e63946;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

form button:hover {
    background: #d62828;
}

/* Social Media Icons */
.social-media {
    text-align: center;
    margin-top: 20px;
}

.social-media a {
    color: #f4f4f4;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s ease-in-out;
}

.social-media a:hover {
    color: #e63946;
}

.social-media i {
    font-size: 2em;
}
