* {
    box-sizing: border-box;
}
body {
    background-color: whitesmoke;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
}
#titlebar {
    background-color: darkgoldenrod;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    padding: 8px 20px;
}
#titlebar h1 {
    margin: 0;
}
#navbar {
    position: absolute;
    top: 10px;
    left: 10px;
}
#navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
#navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: large;
}
#navbar ul li a:hover {
    text-decoration: underline;
}
main {
    flex: 1;
    padding: 20px;
}
#main {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
#left,
#right {
    width: calc(50% - 10px);
    background-color: dimgrey;
    min-height: 700px;
    border-radius: 10px;
    border: 3px solid darkgoldenrod;
}
#left {
    padding: 20px;
    color: white;
    font-size: 18px;
    line-height: 1.6;
}
#left h2 {
    margin-top: 0;
}
#right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}
footer {
    text-align: center;
    padding: 20px;
    background-color: darkgoldenrod;
    color: white;
}
@media (max-width: 800px) {
    #left,
    #right {
        width: 100%;
    }
    #navbar {
        position: static;
        margin-bottom: 15px;
    }
    #titlebar {
        flex-direction: column;
    }
}