/* Maximum space for text block */
.md-grid {
    max-width: 80% !important; /* Changed from 75% to 100% for full width */
    /* margin: 0 !important; /* Remove default margins */
  }

.md-header {
    background-color: black !important;
    color: white !important;
}
.md-search__input {
    background-color: white !important;
    color: black;
}
.md-search__icon[for=__search]{
    color: initial;
}
[data-md-color-scheme="slate"] .md-typeset a {
    color: rgb(120, 120, 250);
    text-decoration: underline;
}
.md-content__inner > p {
    padding-left: 20px
  }
.md-typeset a {
    color: rgb(65, 65, 170);
    text-decoration: underline;
}
[data-md-color-scheme="slate"] .md-typeset h1 {
    /*border-width: 1px;
    border-radius: 5px;
    border-color: gray;
    width: 100%;
    border-style: solid;
    padding: 5px;*/
    border-top-right-radius: 10px;
    border-top:5px solid rgb(217, 217, 217);
    background-color: rgba(227, 250, 223, 0.1);
    margin-top: 15px;
}
.md-typeset h1 {
    /*border-width: 1px;
    border-radius: 5px;
    border-color: gray;
    width: 100%;
    border-style: solid;
    padding: 5px;*/
    border-top:5px solid rgb(217, 217, 217);
    margin-top: 15px;
}
[data-md-color-scheme="slate"] .md-typeset h2 {
    /*border-width: 1px;
    border-radius: 10px;
    border-color: gray;
    width: 90%;
    border-style: solid;
    padding: 5px;*/
    border-top-right-radius: 10px;
    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    background-color: rgba(227, 250, 223, 0.13);
    width: 95%;
    margin-top: 15px;
}
.md-typeset h2 {
    /*border-width: 1px;
    border-radius: 10px;
    border-color: gray;
    width: 90%;
    border-style: solid;
    padding: 5px;*/
    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    width: 95%;
    margin-top: 15px;
}
[data-md-color-scheme="slate"] .md-typeset h3 {
    border-top-right-radius: 10px;
    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    background-color: rgba(227, 250, 223, 0.16);
    width: 90%;
    margin-top: 15px;
}
.md-typeset h3 {
    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    width: 90%;
    margin-top: 15px;
}
[data-md-color-scheme="slate"] .md-typeset h4 {
    border-top-right-radius: 10px;
    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    background-color: rgba(227, 250, 223, 0.19);
    width: 85%;
    margin-top: 15px;
}
.md-typeset h4 {

    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    width: 85%;
    margin-top: 15px;
}
[data-md-color-scheme="slate"] .md-typeset h5 {
    border-top-right-radius: 10px;
    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    background-color: rgba(227, 250, 223, 0.22);
    width: 80%;
    margin-top: 15px;
}
.md-typeset h5 {

    border-right: 10px;
    text-indent: 5px;
    border-top:5px solid rgb(217, 217, 217);
    width: 80%;
    margin-top: 15px;
}

.md-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 40px;
    text-align: center;
    font-size: 14px;
}

/* Image zoom modal styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    width: 90%;
    max-width: 100vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.image-modal-close:hover,
.image-modal-close:focus {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.image-modal-caption {
    margin: 15px 0;
    text-align: center;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
}

/* Add cursor pointer to images to indicate they're clickable */
.md-content img {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .md-grid {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 0 !important;
    }
    
    .md-content__inner > p {
        padding-left: 10px;
    }
    
    .md-typeset h1,
    .md-typeset h2,
    .md-typeset h3,
    .md-typeset h4,
    .md-typeset h5 {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 5px !important;
    }
    
    .image-modal-content {
        width: 95%;
        max-height: 85%;
    }
    
    .image-modal-close {
        top: -35px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
    
    .image-modal-caption {
        font-size: 14px;
        margin: 10px 0;
        padding: 8px;
    }
}