/* Reset margins and paddings for common elements */
body, h1, h2, ul, p {
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
}

/* Header and general body styles */
body {
    font-family: 'Open Sans', sans-serif; /* Sets the main font for the body */
    line-height: 1.6; /* Adjusts line spacing for readability */
    background-color: #000000; /* Sets body background to black */
    color: #ffffff; /* Sets body text color to white */
}

/* Header styling */
.header {
    display: flex; /* Uses flexbox for layout */
    justify-content: space-between; /* Distributes space evenly between items */
    align-items: center; /* Aligns items vertically in the center */
    padding: 20px; /* Adds padding inside the header */
    background-color: #000; /* Black background for header */
    color: white; /* Text color for header */
}

/* Logo styling */
.logo img {
    height: 60px; /* Adjusts the logo height */
}

/* Dropdown menu styling */
.dropdown {
    position: relative; /* Positions dropdown relative to the header */
}

.dropbtn {
    font-family: 'Brush Script MT', cursive; /* Sets font for dropdown button */
    background-color: #000; /* Black background for dropdown button */
    color: red; /* Red text color for dropdown button */
    padding: 15px; /* Adds padding inside dropdown button */
    font-size: 18px; /* Sets font size for dropdown button */
    border: none; /* Removes border from dropdown button */
    cursor: pointer; /* Changes cursor to pointer on hover */
}

.menu {
    display: none; /* Hides the dropdown menu by default */
    position: absolute; /* Positions the dropdown menu absolutely */
    background-color: #000; /* Black background for dropdown menu */
    color: white; /* White text color for dropdown menu */
    min-width: 160px; /* Sets minimum width for dropdown menu */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Adds shadow for dropdown menu */
    z-index: 1; /* Ensures dropdown is above other content */
}

.menu a {
    background-color: #000; /* Black background for menu links */
    color: red; /* Red text color for menu links */
    padding: 12px 16px; /* Adds padding inside menu links */
    text-decoration: none; /* Removes underline from menu links */
    display: block; /* Makes links block elements */
}

.menu a:hover {
    background-color: #000; /* Keeps background black on hover */
    color: #fff; /* Changes text color to white on hover */
}

.dropdown:hover .menu {
    display: block; /* Shows the dropdown menu on hover */
}

/* Auth links styling */
.auth-links {
    display: flex; /* Uses flexbox for alignment */
    align-items: center; /* Center aligns auth links vertically */
}

.auth-links a {
    color: red; /* Red text color for auth links */
    text-decoration: none; /* Removes underline from auth links */
    padding: 10px; /* Adds padding around auth links */
}

.auth-links a:hover {
    background-color: #000; /* Sets background to black on hover */
    color: #fff; /* Changes text color to white on hover */
    border-radius: 5px; /* Rounds the corners of auth links on hover */
}

/* Navigation styles */
.navigation ul {
    list-style-type: none; /* Removes bullet points from list */
}

.navigation ul li {
    display: inline; /* Displays list items in a single line */
    margin-right: 20px; /* Adds right margin between list items */
}

.navigation a {
    color: #ffffff; /* White text color for navigation links */
    text-decoration: none; /* Removes underline from navigation links */
}

/* Black background for block elements */
.black {
    background-color: #000; /* Sets background color to black */
    color: #fff; /* Sets text color to white */
}


/* Photos are wrapped in <picture> to serve WebP with a JPEG fallback.
   display: contents lets the <img> lay out exactly as if it had no wrapper. */
picture {
    display: contents;
}
