/* Global Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and HTML Layout */
body, html{
    background-color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
}

/* Header and Logo */
header {
    background-color: gold;
    padding: 10px;
    color: black;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;   
    position: relative; 
}

.logo{
    height: 50px;
    margin-right: 15px;
    position: absolute;
    left: 10px;
}

.logo img {
    width: 25%;
    height: auto;
}

/* Navigation Bar */
nav{
    margin-top: 20px;
    text-align: center;
    background-color: gold;
    margin-bottom: 20px;
    width: 100%;
    position: sticky;
    top: 0;
    border: solid black 2px;
}

/* Navigation Links */
nav a{ 
    display: inline-block;
    text-decoration: none;
    font-style: italic;
    color: black;
    background-color: gold;
    font-weight: bold;
    font-size: 1.5em;
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.5s, color 0.5s;
}

nav a:hover{
    background-color: black;
    color: gold;
    text-decoration: underline;
}

/* Main Content Area */
main{
    flex: 1;
    padding: 2rem;
}

.link a:hover{
    background-color: white;
    color: black;
    transition: 0.7s;

}

/* Images */
img{
    width: 50%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Section */
.gallery-images{
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    width: 100%;
    justify-content: center;
}

.gallery-images img {
    width: 200px;
    height: auto;
}

/* Video Embeds */
iframe{
    display: block;
    margin: 20px auto;
    width: 560px;
    max-width: 100%;
    height: 315px;
}

/* Headings */
h1 {
    font-size: 3em;
    padding: 20px;
    color: black;
    background-color: gold;
    font-style: italic;
    text-align: center;
}

p{
    font-size: 1.2em;
    line-height: 1.6;
    margin-top: 20px;
    text-align: center;
}

h2 {
    font-size: 2em;
    color: white;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Lists and Tables */
ol {
    background-color: gold;
    color: black;
    padding: 20px 40px;
    margin: 20px auto;
    max-width: 600px;
    font-size: 1.1em;
    line-height: 1.8;
}

table {
    width: 50%;
    border-collapse: separate;
    border-spacing: 10px;
    background-color: gold;
    color: black;
    margin: auto;
}

table th,
table td {
    text-align: left;
}

/* Footer */
footer{
    width: 100%;
    padding: 10px;
    background-color: gold;
    font-style: italic;
    font-size: 1.5em;
    text-align: center;
    color: black;
}

footer a{
    color: black;
    text-decoration: none;
    justify-content: center;
    display: flex;
}

footer a:hover {
    background-color: black;
    color: gold;
    text-decoration: underline;
    transition: background-color 0.5s, color 0.5s;
    border-radius: 5px;
}

/* Responsive Design - Tablet (1024px and below) */
@media (max-width: 1024px) {
    .logo {
        height: 45px;
    }
    
    nav a {
        font-size: 1.3em;
        padding: 12px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    img {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 35px;
        position: static;
        margin: 0 auto 10px;
        display: block;
    }
    
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav a {
        font-size: 1.2em;
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
        padding: 15px;
    }
    
    p {
        font-size: 1em;
    }
    
    img {
        width: 90%;
    }
    
    main {
        padding: 1rem;
    }
    
    .gallery-images {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }
    
    iframe {
        width: 100%;
    }
    
    table {
        width: 100%;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 1em;
        padding: 8px;
        display: block;
        margin: 5px auto;
        width: 90%;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    img {
        width: 100%;
    }
}