html, body {
    height: 100%;
    margin: 0;
    padding: 0; /* Ensure no extra spacing around the content */
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #000000;
    background: url('pic.jpg') no-repeat center center fixed; /* Background image */
    background-size: cover; /* Ensures aspect ratio is maintained while covering the entire viewport */
}

header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    height: 3rem; /* Adjust to the desired header height */
    display: flex;
    align-items: center;
    justify-content: center;
}

iframe {
    flex: 1; /* Makes the iframe fill all available space */
    border: none;
    width: 100%;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-link {
    color: white; /* Match header text color */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}
.home-link:hover {
    color: #f1c40f; /* Add hover effect */
}

main {
    flex: 1; /* This makes the main content area expand to fill available space */
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%; /* Ensure it takes the full remaining height */
}

section {
    margin-bottom: 0;
}

section h2 {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 0.5rem;
}

#about {
    text-align: center;
    padding: 0.1rem 1rem 5rem 1rem;
}

#links {
    display: flex;
    justify-content: space-between;
    flex-direction: row; /* Ensures horizontal layout */
}

#about2 {
    display: flex;
    justify-content: space-between;
    flex-direction: row; /* Ensures horizontal layout */
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #e2e2e2;
    text-decoration: none;
    font-weight: bold;
    padding: 0 0 0 1rem
}

.link-column {
    flex: 1;
    padding: 0 1rem;
}

.link-column h3 {
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 0.5rem 0;
}

ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 40px;
}

ul li a:hover {
    
    color: #4c5eaf;
}

/* Media query for mobile devices */
@media only screen and (max-width: 768px) {
    header h1 {
        font-size: 15px; /* Smaller font size for mobile */
    }

    main {
        padding: 0rem; /* Reduced padding for smaller screens */
    }

    ul li a {
        color: #e2e2e2;
        text-decoration: none;
        font-weight: bold;
        font-size: 20px;
    }
    
    #links {
        display: flex;
        justify-content: space-between;
        flex-direction: column; /* Ensures horizontal layout */
    }
}
