/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Wrapper for centered liquid layout */
#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
header {
    text-align: center;
    /*background-color: #333;*/
    background-image: url(titlebackground.png);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 35px;
}

/* Navigation Styling */
.navbar {
    list-style-type: none;
    background-color: #283845;
    display: flex;
    justify-content: center;
    padding: 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

.navbar li a:hover {
    background-color: #658EAB;
}

/* Main content */
main {
    margin-top: 30px;
}

main section {
    margin-bottom: 30px;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    background-color: #A5B2C0;
}

ul {
    padding-left: 20px;
}

/* a element styling */
a {
    color: #ffffff;
}

/* h2 element styling */
h2 {
    margin-bottom: 10px;
}

/* h3 element styling */
h3 {
    font-size: 19px;
    font-style: italic;
    margin-top: 7px;
    text-decoration: underline;
}

/* Data Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #333;
}

th, td {
    padding: 10px;
    text-align: left;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.table-container table {
    width: 100%; 
    min-width: 900px; 
    border-collapse: collapse;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: #283845;
    color: white;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply animation */
.fade-in {
    animation: fadeIn .5s ease-in;
}

/* Media Queries */
@media only screen and (max-width: 768px) {
    #wrapper {
        padding: 10px;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar li {
        margin: 5px 0;
    }

    .table-container {
        padding: 0 10px; 
    }

    table {
        width: auto; 
    }
}

@media only screen and (max-width: 480px) {
    header, footer {
        font-size: 14px;
    }
    
    img {
        width: 100%;
    }
}
