﻿/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1.5;
    background-color: #808080;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Global */
#wrapper {
    max-width: 1200px; /* Added max-width for better layout control */
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Top Section */
#top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #CCCCCC;
    padding: 20px;
}

#logo img {
    max-width: 100%; /* Ensure responsiveness */
    height: auto; 
}

#title {
    flex: 1; /* Allows flexible width adjustment */
    text-align: center;
}

#title h1 {
    font-size: 36px;
    color: #CC0066;
}

/* Navigation */
#navigation {
    background-color: #999999;
    padding: 10px 0;
}

#navigation ul {
    display: flex;
    justify-content: center;
    background-color: #666666;
}

#navigation ul li {
    display: inline-block;
}

#navigation ul li a {
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
}

#navigation ul li a:hover {
    background-color: #CC3300;
}

/* Content Section */
h2 {
    line-height: 1.5;
    text-align: center;
    font-size: 24px;
    color: #CC0066;
    margin-top: 20px;
}

h3 {
    font-size: 20px;
    color: #CC0066;
    margin-top: 30px;
}

#about p {
    text-align: justify;
    line-height: 1.8;
    margin: 10px 0;
}

/* Links */
a {
    color: #CC0066;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */

@media screen and (max-width: 768px) {
    #navigation ul {
        flex-direction: column;
    }

    #navigation ul li a {
        padding: 15px;
        font-size: 18px;
    }

    #title h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    #about p {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }

    #title h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    #navigation ul li a {
        padding: 10px;
        font-size: 16px;
    }

    #about p {
        font-size: 14px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
