html {
    height: 100%;
    background: linear-gradient(rgba(175, 163, 234, 1), rgba(255, 183, 155, 1)) no-repeat fixed;
}

body {
    font-family: "century gothic", sans-serif;
    font-size: 14px;
    line-height: 20px;
    text-align: start;
    margin: 0;
    padding: 0;
}

#container {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
    top: 0;
    width: 91.5vw;
    background-color: white;
    min-height: 99%;
}

.header {
    margin-top: 40px;
    text-align: center;
    flex-wrap: wrap;
    padding: 0 4px;
}

.navigation {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.title {
    font-family: "century gothic", sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #622291;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.sidebar {
    float: left;
    margin-left: 50px;
    width: 18%;
}

.sidebar2 {
    float: left;
    margin-left: 50px;
    width: 18%;
    height: 100vh;
    position: sticky;
    top: 0;
}

.main {
    float: left;
    margin-left: 30px;
    margin-right: 0.1vw;
    margin-bottom: 50px;
    min-width: 65%;
    max-width: 72%;
}
.main2 { /*wide version of main */
    margin: 30px 60px 50px;
    max-width: 95%;
}

a.nav, a.nav:active, a.nav:visited, a.nav:link {
    color: #974bca;
    text-decoration: none;
    font-family: "century gothic", sans-serif;
    font-weight: bold;
    padding-right: 10%;
    font-size: 16px;
}

a.nav:hover {
    color: #009fff;
    border-bottom: 4px #009fff;
    text-decoration: none;
}
a.nav2, a.nav2:active, a.nav2:visited, a.nav2:link {
    color: #974bca;
    text-decoration: none;
    font-family: "century gothic", sans-serif;
    font-weight: bold;
}

a.nav2:hover {
    color: #009fff;
    border-bottom: 4px #009fff;
    text-decoration: none;
    font-family: "century gothic", sans-serif;
    font-weight: bold;
}
a, a:active, a:visited, a:link {
    color: #974bca;
    text-decoration: none;
}

a:hover {
    color: #009fff;
    border-bottom: 4px #009fff;
    text-decoration: none;
    font-style: oblique;
}
b, strong {
    color: #8a3daf;
}

i, em {
    color: #5552bc;
}

u {
    border-bottom: 2px #374d80;
    text-decoration: none;
}

h1 {
    font-family: "century gothic", sans-serif;
    font-size: 22px;
    text-align: left;
    color: #622291;
    border-bottom: 2px dashed #009fff;
    padding-top: 10px;
    margin-bottom: 5px;
    padding-bottom: 10px;
}

h2 {
    font-family: "century gothic", sans-serif;
    font-size: 20px;
    text-align: left;
    color: #622291;
    padding-top: 3px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

h2::after {
    content: '';
    flex: 1;
    margin-left: 1rem;
    height: 2px;
    background: linear-gradient(to right, rgba(175, 163, 234, 1), rgba(255, 183, 155, 1)) no-repeat;
}

h3 {
    font-family: "century gothic", sans-serif;
    color: #974bca;
    font-size: 17px;
    font-weight: bold;
}
h4{
    font-family: "century gothic", sans-serif;
    color: #974bca;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0;
}

hr {
    border-top: dashed #009fff 2px;
    border-bottom: none;
}

.responsive-image {
    padding: 20px 10px;
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.image-right{
    float:right;
    margin: 20px;
    border: #974bca inset;
    line-height: 0;
    font-size: 0;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: #f8f8f8;
    padding: 10px 0;
    color: #622291;
}

table {
    width: 100%;
    border: 1px solid #622291;
    border-collapse: collapse;
}

td, th {
    border: 1px solid #622291;
    padding: 5px 10px;
    word-wrap: break-word;
}

th {
    text-align: left;
    color: #622291;
    background-color: #d8a4ff;
}
.image-align {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Space between image and iframe */
    margin: 20px 0;
}

.image-align img,
.image-align iframe {
    width: 48%; /* Set a percentage width for balance */
    height: auto; /* Ensure proper aspect ratio for images */
}

.image-align iframe {
    aspect-ratio: 16 / 9; /* Maintain a 16:9 ratio for the iframe */
    height: auto; /* Ensure the height adjusts properly */
}


@media screen and (max-width: 768px) {
    .sidebar2 {
        display: none;
    }

    .main {
        float: none;
        margin: 0 auto;
        width: 100%;
    }

    .responsive-image {
        max-width: 100%;
    }

    table {
        font-size: 12px;
    }
    .image-align {
        flex-direction: column; /* Stack image and iframe vertically */
        gap: 10px; /* Reduce space between stacked items */
    }

    .image-align img,
    .image-align iframe {
        width: 100%; /* Use full width for both on smaller screens */
    }
}

@media screen and (min-width: 1921px) {
    body {
        font-size: 1.2rem; /* Relative to the root font size, scales with the base */
        line-height: 1.6rem; /* Matches proportional line height */
    }

    h1 {
        font-size: 2rem; /* Responsive scaling for headers */
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }
    a.nav, a.nav:active, a.nav:visited, a.nav:link {
        font-size: 1.4rem;
    }
    
    .image-align img,
    .image-align iframe {
        width: 48%; /* Maintain proportional size on larger screens */
    }

    .responsive-image {
        max-width: 800px;
    }
}
