body {
    background: mediumpurple;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/*HEADER STUFF DOWN HERE*/
.header {
    overflow: hidden;
    background-color: white;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
}

.header a {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    margin-right: 15px;
    font-size: 18px;
    color: rgba(141, 69, 214, 0.89);
}

.header a.logo {
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}

.header a:hover {
    background-color: rgba(147, 112, 219, 0.63);
    border-radius: 4px;
    color: white;
}

.header a.active {
    background-color: rgba(141, 68, 216, 0.71);
    border-radius: 4px;
    color: white;
}

@media screen and (max-width: 500px) {
    .header a {
        float: none;
        display: block;
        text-align: left;
    }
    .header-right {
        float: none;
    }
}

.title {
    align-self: center;
    text-decoration-line: underline;
    font-size: 30px;
    margin: 40px;
}

/*index*/
.indexContainer {
    width: 100%;
}

.indexImage {
    width: 100%;
    float: left;
}

.projectRow {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 10px;
    opacity: 0.7;
}

.projectRow:hover {
    opacity: 1;
    transition: 0.2s;
}

.textbox {
    background-color: rgba(0, 0, 0, 0.63);
    color: rgba(237, 211, 255, 0.78);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid white;
    width: 40%;
    margin: 20px;
}

img {
   width: 40%;
    float: right;
    display: flex;
    border-radius: 20px;
}

.scroll-container {
    width: 50%;               /* sit next to the textbox */
    display: flex;            /* horizontal layout */
    overflow-x: auto;         /* enables horizontal scrolling */
    overflow-y: hidden;
    gap: 20px;                /* space between images */
    padding: 20px;
    scroll-behavior: smooth;  /* optional */
    max-height: 80vh;

}

.scroll-container img {
    flex: 0 0 auto;           /* prevent images from shrinking */
    width: 60%;               /* adjust as needed */
}

a:link {
    color: #c6d8ff;
}

a:visited {
    color: #8860b3;
}

a:hover {
    color: hotpink;
}

a:active {
    color: #4c1f7c;
}


.projectButtons {

}

.backButton {
    float: left;
    color: white;
    background-color: rgba(0, 0, 0, 0.63);
    border: 2px solid white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin: 20px;
    width: 5%;
    opacity: 0.7;
}

.backButton:hover {
    opacity: 1;
    transition: 0.2s;
}

/*FOOTER STUFF DOWN HERE*/
.footer {
    position: static;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #6c58a8;
    color: white;
    text-align: center;

    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    margin: 0 8px;

    color: white;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.footer a i {
    font-size: 20px;
}

.footer a img {
    width: 20px;
    height: 20px;
}