* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p {
    line-height: normal;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #F0F0F0;
    display: flex;
    
    min-height: 100vh;
    line-height: 1.8;
    border-top: 4px solid #000;
    border-right: 4px solid #000;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background-color: var(--primary-purple);
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 10;
    transition: transform 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 0 10px 10px 0;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--secondary-purple);
}

.sidebar h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    text-align: center;
    color: var(--accent-yellow);
    font-size: 1.8rem;
    margin-bottom: -5px;
}

.sidebar h3 {
    text-align: center;
    color: #FFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    width: 50%;
    height: 1.3rem;
    margin-left: 25%;
    margin-right: 25%;
    margin-bottom: 7px;
    font-size: 1rem;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.sidebar nav a {
    color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600; /* 600 corresponds to "Semibold" */
    text-decoration: none;
    padding: 6px 15px;
    margin-bottom: 10px;
    background-color: var(--secondary-purple);
    border: 1px solid #ccc;
    transition: background-color 0.3s ease;
}

.sidebar nav a:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-purple);
}

.main-content {
    margin-left: 250px;
    flex-grow: 1;
    background-color: var(--secondary-purple);
    border-left: 5px solid var(--border-color);
    max-height: 100vh;
    width: calc(100% - 250px);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.tab-container {
    display: flex;
    flex-wrap: wrap;
    background-color: rgb(241, 241, 241);
    width: 100%;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.tab {
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    
    border-right: 1px solid #ccc;
    cursor: pointer;
    color: lightslategray;
    background-color: rgb(241, 241, 241);
    white-space: nowrap;
    transition: background-color 0.3s ease;
    height: 30px;
}

.tab:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-purple);
}

.tab.active {
    background-color: var(--accent-yellow);
}

.tab-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: rgba(0,0,0,0);
    display: none;
}

.tab-content.active {
    display: block;
}

.content-entry {
    background-color: #f1f1f1;
    margin-bottom: 30px;
    margin-left: 239.5px;
    margin-right: 203.5px;
    padding: 30px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: 1000px;
}

.content-entry h2 {
    color: var(--secondary-purple);
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.entry-meta {
    color: var(--secondary-purple);
    font-style: italic;
    margin-bottom: 20px;
    display: block;
}

.main-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.main-content.sidebar-hidden {
    margin-left: 0;
    width: 100%;
}

img:not(.pointer) {
    max-height: 100%;
    max-width:100%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: 1px solid #ccc;
    }

iframe {
    max-height: 100%;
    max-width: 100%;
}

h5 {
    border: 1px solid #ccc;
    margin-bottom: 5px;
    margin-top: 5px;
    padding-left: 3px;
    padding-right: 3px;
    display: inline-block;
}

.pointer {
display:none;
}

ul {
padding-left: 20px;
}

blockquote {
    margin: 0;           /* Remove the default margin */
    padding-left: 20px;   /* Indent the blockquote */
    font-style: normal;   /* Ensure the font is not italic */
    color: inherit;       /* Inherit the text color from the parent element */
    background: none;     /* Remove any background */
}


@media (max-width: 768px) {
body {
flex-direction: column;
overflow-x: hidden;
}

.sidebar {
width: 100%;
position: static;
border-right: none;
border-bottom: 5px solid var(--border-color);
padding: 10px;
}

.sidebar nav {
flex-direction: column; 
align-items: stretch; 
}

.sidebar nav a {
margin: 5px 0;
text-align: center;
padding: 15px; 
}

.sidebar-toggle {
right: 10px;
top: 10px;
writing-mode: horizontal-tb; 
transform: none;
}

.main-content {
margin-left: 0;
width: 100%;
border-left: none;
}

.content-entry {
margin-left: 10px;
margin-right: 10px;
padding: 15px; 


}

.tab-container {
flex-direction: column; 
}

.tab {
height: auto;
padding: 10px;
border-bottom: 1px solid #ccc;
border-right: none;
}

img:not(.pointer) {
max-height: 200px;
max-width: 100%;
padding: 5px;
}



.sidebar h1 {
font-size: 1.5rem;
}

.sidebar h3 {
width: 70%; 
margin-left: 15%;
margin-right: 15%;
}
}