body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.3;
}

header {
    background: linear-gradient(to right, rgb(196, 18, 48) 40%, white 75%);
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
}

#cmu-logo {
    height: 3vh;
    width: auto;
    margin-right: 1rem;
}

#math-dept-title {
    margin: 0;
    font-weight: normal;
    color: white; 
    margin-left: 2.5vw;
    text-decoration: none;
    font-size: 1.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    margin-right: 10vw;
}

#si-logo {
    height: 50px;
    width: auto;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

article {
    text-align: center;
}

figure {
    margin: 2rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #555;
}

a.cmu-link {
    color: rgb(148, 17, 32);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: rgb(255, 0, 0);
}

.definition {
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.tooltip {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    max-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: normal;
    text-align: left;
}

.definitions-container {
    display: none;
}

.spacer {
    height: 2rem;
}

@media (max-width: 800px) {
    .header-right {
        margin-right: 0;
    }

    #math-dept-title {
        margin-left: 0rem;
    }

    #cmu-logo {
        height: 10vh;
        margin-left: 0rem;
    }

    header {
        padding : 0.5rem 0.25rem;
    }
}