html, body {
    height: 100%;  /* Ensures that the html and body take full height of the viewport */
    margin: 0;     /* Removes default margin */
    padding: 0;    /* Removes default padding */
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh; /* Uses viewport height to ensure body takes at least the full height of the viewport */
    position: relative; /* Ensure the body is a positioned parent for pseudo-element */
}

footer {
    margin-top: auto; /* Pushes the footer to the bottom */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #89dfee;
    background-image: url('img/Curio.png');
    background-repeat: repeat;
}
header {
    width: 100%;
    background: #ffffff;
    padding: 10px 0;
    text-align: center;
    display: flex;
    align-items: center;
    opacity: 80%;
}
nav {
    margin: 20px 0;
    border: 3px solid blue;
    padding: 10px;
    border-radius: 5px;
}
nav a {
    text-decoration: none;
    color: black;
    padding: 11px;
    transition: background-color 2s ease-out 50ms;
}
nav a:hover {
    background-color: rgb(128, 0, 255);
}
footer {
    margin-top: auto;
    width: 100%;
    background: #ffffff;
    padding: 10px 0;
    text-align: center;
    border-top: 3px solid blue;
    opacity: 80%;
}
.content1 {
    width: 80%;
    max-width: 300px;
    border: 3px inset blue;
    padding: 30px;
    border-radius: 5px;
    opacity: 100%;
}
.content2 {
    border: 3px inset blue;
    display: inline-block;
    vertical-align: middle;
    padding: 80px;
    border-radius: 5px;
    opacity: 100%;
}

.flexBox{
    display: flex;
    padding: 40px;
}
header h1 {
    padding: 10px;
    margin-right: 250px;
    width: 20%;
}
.contentFast {
    border: 3px solid blue;
}
img {
    height: auto;
    width: 70%;
}
.footerLink{
    text-decoration: none;
    display: flex;
    justify-content: space-evenly;
}
.fa{
    color: black;
}
.footerLink a:visited{
    text-decoration: none;
    color: black;
}
@media only screen and (max-width: 600px) {
    header, nav, .content1, .content2, .flexBox {
        width: 100%;
        padding: 0 10px;
    }
    header {
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 80px;
    }
    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 11px 5px;
    }
    .content1, .content2 {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    .flexBox {
        flex-direction: column;
    }
    .innerPageHeader h1 {
        justify-content: center; /* Center the logo horizontally */
        margin-right: 0; /* Remove any margin that might affect centering */
    }
    
    }
* {
    box-sizing: border-box;
}

.teacher-profiles {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.teacher-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.teacher {
    width: 200px;
    margin: 10px;
    padding: 10px;
    border: 2px solid blue;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.teacher-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.teacher-name, .teacher-subject {
    margin: 5px 0;
}

.innerPageHeader {
    display: flex;
    justify-content: center;
}

.innerPageHeader h1 {
    margin-right: 0;
}

.innerPageHeader h1 img {
    width: 100px; /* Set the width to the desired size for both desktop and phone formats */
    height: auto; /* Maintain aspect ratio */
}
