body, html {
    margin: 0;
    padding: 0;
    background: #f0f0f0;
    overflow-x: hidden;
    height: 100%;
    font-family: 'Arial', sans-serif;
    width: 100%;  /* TEST */
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin: 20px 0;
    color: #333;
    margin-bottom:10px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.header .header-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.header .header-link h1 {
    text-align: center;
    font-size: 2.5em;
    margin: 20px 0;
    color: #333;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 0px;
    margin-bottom: 20px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 1.5em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #007BFF;
}

.menu {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Add this line */
}

.menu a {
    display: inline-block;
    margin: 5px 15px;
    font-size: 1.2em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.menu a:hover {
    color: #007BFF;
}

.gallery-selector {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
    box-sizing: border-box;
}

.thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items horizontally */
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    max-width: 150px;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    transition: filter 0.3s, border 0.3s;
    box-sizing: border-box;
}

.thumbnail:hover img {
    filter: brightness(1.2);
}

.thumbnail.selected img {
    border: 3px solid #007BFF;
}

.thumbnail-title {
    margin-top: 10px;
    font-size: 0.9em;
    color: #333;
    white-space: normal;
    text-align: center;
}

.img-container {
    position: relative;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 10px;
    padding: 10px;
}

.info {
    padding: 5px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

.title, .desc {
    display: block;
    color: black;
}

.title {
    font-weight: bold;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    margin-bottom: 2px;
    min-height: 20px;
    line-height: 20px;
}

.desc {
    font-size: 12px;
    font-style: italic;
    color: black;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    position: relative;
    padding: 0px;
    text-align: center;
    background: rgba(0, 0, 0, 0.0);
    border-radius: 0px;
    color: white;
    width: auto;
    max-width: 70%;
    margin: 0 auto;
}

.modal-title, .modal-desc {
    display: block;
    margin-bottom: 10px;
}

.modal-title {
    font-weight: bold;
    font-size: 18px;
    font-family: 'Arial', sans-serif;
}

.modal-desc {
    font-size: 16px;
    font-style: italic;
}

.modal img {
    max-width: 50%;
    max-height: 50%;
    box-shadow: 0 0 20px #000;
    margin: 10px auto;
}

#mathematics-content {
    text-align: center;
    padding: 5px;
}

#mathematics-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#mathematics-content iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    margin-bottom: 20px;
}

#mathematics-content .centered-description {
    text-align: justify;
    width: 90%;
 /*max-width: 800px; */
    margin: 0 auto 20px auto;
}

#mathematics-content .quote {
    font-style: italic;
    text-align: justify;
    margin: 0 auto;
    margin-top: 20px;
    width: 70%;
    max-width: 500px;
}

#mathematics-content .author {
    text-align: right;
    margin: 0px auto 0 auto;
    width: 70%;
    max-width: 500px;
    font-weight: bold;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    text-align: left;
    margin: 10px auto 0 auto;
    width: 90%;
 /*max-width: 800px; */
    font-weight: bold;
}

@media (max-width: 800px) {
    .gallery-selector {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-gap: 5px;
        padding: 5px;
    }

    .img-container {
        padding: 3px;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal img {
        max-width: 100%;
        max-height: 60%;
    }

    .modal-title, .modal-desc {
        font-size: 14px;
    }


}

footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
    font-size: 2em;
    z-index: 1050;
}

.modal-arrow.left {
    left: 10px;
}

.modal-arrow.right {
    right: 10px;
}

.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

a h1 {
    text-decoration: none;
    color: inherit;
}

.header-link {
    text-decoration: none;
    color: inherit;
}

.header-link:hover {
    text-decoration: none;
    color: inherit;
}

.date {
    font-style: normal;
    font-weight: normal;
    font-size: 10px;
}

#about-content {
    text-align: justify;
    padding: 20px;
    width: 80%;
    margin: 0 auto;
}

.centered-italic {
    font-style: italic;
    text-align: center;
}

.about-text {
    text-align: justify;
    padding: 20px;
    width: 60%;
    margin: 0 auto;
}



.horizontal-separator {
    border: none; 
    border-top: 1px solid #ccc; 
    width: 100%;
    margin: 10px auto; /* Use auto for left and right margins to center the element */
    display: block; /* Ensure the hr is treated as a block element */
}

    .button-container {
        text-align: center;
    }
    .centered-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #007BFF;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-size: 16px;
    }
    .centered-button:hover {
        background-color: #0056b3;
    }
#follow-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: green;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

#follow-button:hover {
    background-color: darkgreen;
}


.timeline {
    position: relative;
    max-width: 70%;
    margin: 0 auto;
    padding: 20px 0;
    text-align: left;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007BFF;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 45%;
    margin-bottom: 20px;
    border: 1px solid #007BFF;
    background-color: white;
    border-radius: 5px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 15px;
    border-style: solid;
}

.timeline-item.left {
    left: -5%;
    transform: translateX(-5%);
}

.timeline-item.left p {
    text-align: justify;
}

.timeline-item.right p {
    text-align: justify;
}

.timeline-item.left::after {
    left: 100%;
    border-width: 15px 15px 15px 0;
    border-color: transparent white transparent transparent;
}

.timeline-item.right {
    left: 55%;
    transform: translateX(-5%);
}

.timeline-item.right::after {
    right: 100%;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent white;
}

.content-block {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 70%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.block-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.block-text {
    text-align: justify;
    margin-bottom: 20px;
}

.axiom-title {
    font-weight: bold;
    font-size: 0.9em;
}

.canonical-interpretation {
    font-size: 0.9em;
}

.canonical-interpretation ul {
    list-style: disc inside;
    padding-left: 0;
}

.canonical-interpretation ul li {
    margin-bottom: 5px;
}

.small-text {
    font-size: 0.7em;
}

.large-text {
    font-size: 1em;
}

.equation-label {
    font-weight: bold;
    /*font-style: italic; */
    margin-left: 5px;
    float: right;
    margin-left: 10px;
}

.notation-label {
    /*font-weight: bold; 
    font-style: italic;*/
    margin-left: 5px;
    float: right;
    color: #555;
    margin-left: 10px;
}


@media (max-width: 800px) {
    #about-content,
    .about-text {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .timeline {
        max-width: 100%;
        padding: 0;
    }

    .timeline::after {
        display: none;
    }

    .timeline-item {
        width: 100%;
        padding: 10px 20px;
        margin-left: 0;
        box-sizing: border-box;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        transform: none;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        display: none;
    }

    #mathematics-content .centered-description,
    #mathematics-content .quote,
    #mathematics-content .author, 
    #mathematics-content .signature {
        width: 100%;
        max-width: none;
        margin: 0 auto 10px auto;
        padding: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 800px) {
    .content-block {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    @media (max-width: 600px) {
    .menu a {
        font-size: 1em;
        margin: 5px 8px;
    }
}
}

@media (max-width: 400px) {
    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu a {
        margin: 5px 0;
    }
}


.notation-wrapper {
    overflow: hidden; /* Clears the float */
    margin-bottom: 1em; /* Adds the desired space */
}

.right-align {
    text-align: right;
}

.minor-label {
    /* font-style: italic;  */
    font-size: 0.85em;
    display: inline-block;
    margin-bottom: 0.2em;
    color: #555;
}

.minor-text {
    font-size: 0.7em;
    display: inline-block;
    color: #333;
}

