* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    display: flex;
    min-height: 100vh;
    margin: 0;
}

.container {
    display: flex;
    flex: 1;
    width: 100%;
  
}

.side-menu {
    background-color: #1c1c1c;
    width: 20%;
    display: flex;
    flex-direction: column;
    padding: 1rem; padding-top: 6%;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
}

.side-menu .tab {
    margin-bottom: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.side-menu .tab:hover {
    background-color: #333;
}

.main-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.top-menu {
    display: flex;
    flex-wrap: wrap; /* allows tabs to wrap to a new line */
    justify-content: space-between; /* center all items in the container */
    align-items: center;
    gap: 1rem; /* adds spacing between tabs and title */
    background-color: rgba(28, 28, 28, 0.85); /* keep dark transparent background */
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title {
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.tabs {
    display: flex;
    gap: 0.5rem;
}


.tabs .tab {
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tabs .tab:hover {
    background-color: #333;
}

.content-area {
    position: relative;         /* required for absolutely positioned children */
    flex-grow: 1;
    padding: 2rem;
    overflow: hidden;           /* hide overflow outside the container */
    background-image: url('/Media/Images/Leo.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/*.content-area {
    display: flex;
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
  background-image: url('/Media/Images/BuildAdmin.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}*/

/*.content {
    display: none;
    width: 100%;
  
}*/
.content {
    position: absolute;  /* fill the content-area completely */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;       /* hidden by default */
    padding: 2rem;       /* inner spacing */
    overflow-y: auto;    /* scroll if content is taller than container */
}

.content.show {
    display: block;      /* visible tab content */
}


.LePre {
    /*color: black;*/ color: white;
    font-size: 4em;
    font-weight: 900;
/*background-color: rgba(0, 0, 0, 0.25);*/
  background-color: rgba(0, 0, 0, 0.75);
    max-width: 100%; /*70%;*/
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
padding-top: 5%; padding-left: 10%;
    margin: 0 auto;
    display: block;
  position: absolute; top: 0%; left: 0%; right: 0%; bottom: 0%;
}

.active {
    background-color: #444;
}

.show {
    display: block;
}

/* Mobile screens (existing) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .side-menu {
        width: 100%;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem 0;
    }

    .top-menu {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
    }

    .tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tabs .tab {
        margin: 0.25rem;
        padding: 0.5rem 0.75rem;
    }

    .title {
        flex-basis: 100%;
        margin-bottom: 0.5rem;
    }
  .LePre {
        font-size: 2em;     /* smaller font for narrow screens */
        max-width: 90%;     /* allow more width in small screens */
    }
}
/* Mid-size screens: force title to full-width and tabs to wrap */
@media (max-width: 1024px) and (min-width: 769px) {
    .top-menu {
        justify-content: center; /* center all items */
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .title {
        flex-basis: 100%; /* only now title moves to its own line */
        order: 0;
        margin-bottom: 0.5rem;
    }

    .tabs {
        flex-wrap: wrap; /* tabs wrap under title */
        justify-content: center;
    }

    .tabs .tab {
        padding: 0.5rem 0.75rem;
        margin: 0.25rem;
    }
}