body {
    font-family: Arial, sans-serif;
    margin: 0;
    margin-top: 60px; /* Leaves space for the fixed header */
    padding: 0;
    background-color: #FFF8E1;
    color: #5D4037;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FF9800;
    color: #FFF;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px 5px 0 0; /* Rounded top edges only */
    margin-left: 0px;
    margin-right: 0px;


    
}

header h1 {
    margin: 0;
    color: #333;
    font-family: "Rock Salt", serif;
    font-size: large;
}

.rock-salt-regular {
    font-family: "Rock Salt", serif;
    font-weight: 400;
    font-style: normal;
}

header nav {
    margin: 0 30px ;
    display: flex; /* Use flexbox for proper alignment */
    gap: 15px; /* Space between links */
    
}

header nav a {
    padding: 8px 12px;
    border-radius: 15px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
}

header nav a:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2); /* Subtle background on hover */
}

header nav .auth-button {
    background-color: #5D4037;
    color: #fff;
}

header nav .auth-button:hover {
    background-color: #FF9800;
    color: #5D4037;
}

#hero {
    height: 350px;
    padding: 20px;
    text-align: center;
    background-color: #FFF8E1;
}

#hero h2 {
    font-size: 24px;
}

#hero p {
    font-size: 16px;
}

#hero img {
    width: 150px;
    max-width: 80%;
    border-radius: 50%;
}

section {
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.gallery-item h3,
.gallery-item p {
    text-align: left;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border: 2px solid #FF9800;
    border-radius: 5px;
}

footer {
    background-color: #5D4037;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

#cartoon-detail {
    text-align: center;
    padding: 20px;
    background-color: #FFF8E1;
    color: #5D4037;
}

#cartoon-detail img {
    border: 3px solid #FF9800;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px 20px; /* Reduce large padding */
    margin: 10px; /* Simplify spacing */
}

.nav-toggle .line {
    width: 25px;
    height: 3px;
    background-color: white;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .gallery-grid img {
        width: 100%; 
        height: auto; 
        border-radius: 10px; 
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #b68d4f;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 150px;
        border-radius: 20px;
    }

    .nav-links a {
        padding: 10px 15px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

#contact {
    background-color: #FFF8E1;
    padding: 40px;
    text-align: center;
    color: #5D4037;
    border-top: 3px solid #FF9800;
}

#contact h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

#contact p {
    font-size: 16px;
    margin-bottom: 30px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-icons a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icons a img:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.admin-button {
    background-color: #FF9800;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.admin-button:hover {
    background-color: #E65100;
    transform: scale(1.1);
}
