html, body {
    overflow: hidden;
}

#other-pages {
    position: absolute;
    top: 0px;
    left: 0px;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

header {
    background: #333;
    color: white;
    padding: 15px;
    text-align: center;
}

#main-view {
    position: absolute;
    top: 110px;
    left: 0px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    width: 100vw;
    height: calc(100vh - 110px);
    background-color: #303030;    
    align-items: stretch;
}

/*
#main-view, #buttons, #content {
    border: 2px solid red;
}
*/

.content {
    position: absolute;
    top: 0px;
    left: 170px;
    overflow: hidden;
    width: calc(100% - 170px);
    height: 100%;
}

/* Styling for buttons section */
.main-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    padding: 10px;
    width: 150px;
    max-width: 150px;
    flex-shrink: 0;
}

/* Button style */
.main-button {
    display: inline-block;
    padding: 10px;
    width: 100%;
    font-size: 15px;
    background-color: #225F08;
    border: #1A4806 1px solid;
    border-radius: 3px;
    white-space: nowrap;
    color: white;
    cursor: pointer;
}

.main-button.focus, .main-button.active {
    background-color: #2C790A;
}

.button-wrapper {
    position: relative;   /* make this the positioning context */
    display: block;
    width: 100%;
}

.close-button {
    position: absolute;
    min-width: 40px;
    right: -20px;
    top: -20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

.close-button:hover {
    color: #888;
}

.input-container {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    margin-left: 20px; /* Align with other inputs */
    margin-right: 20px; /* Maintain right margin */
    margin-bottom: 10px; /* Space below the container */
    padding: 5px;
}

.input-container label {
    min-width: 140px;
    margin-right: 10px; /* Space between label and input */
    color: black; /* Change the color of the label if needed */
}

.checkbox-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center vertically */
    width: 100%; /* Make checkbox-container fill the width of the popup */
    margin: 0 20px 10px 20px;
}

.checkbox-container input[type="checkbox"] {
    margin-left: 0; /* Space between checkbox and label text */
}

.checkbox-container label {
    flex: 1; /* Allow the label to take available space */
    text-align: left; /* Align text to the left */
}

.select-container {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    margin-left: 20px; /* Align with other inputs */
    margin-right: 20px; /* Maintain right margin */
    margin-bottom: 10px; /* Space below the container */
}

.select-container label {
    min-width: 140px;
    margin-right: 10px; /* Space between label and select */
    color: black; /* Change the color of the label if needed */
}

.pagination-container {
    width: 100%;
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 1rem 0;
    justify-content: center;
}

.pagination-number,
.pagination-button {
    font-size: 16px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    margin: 0.25rem 0.25rem;
    cursor: pointer;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: .2rem;
}
  
.pagination-number:hover,
.pagination-button:not(.disabled):hover {
    background: #2C790A;
}
  
.pagination-number.active {
    color: #fff;
    background: #225F08;
}

/* Drop down menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    max-height: 300px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    overflow-y: auto;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    z-index: 100;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-disabled .dropdown-content {
    display: none !important;
}

/* Chat */

.chat-controls {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: auto;
    padding: 10px;
    display: none;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 5000;
}

.chat-controls button {
    position: relative;
    background-color: #225F08;
    border: none;
    cursor: pointer;
}

.chat-controls img {
    width: 30px;
    height: 30px;
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    display: none; /* Hidden by default */
}

/* Chat Overlay*/
.chat-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px; /* position at bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    display: none;
    z-index: 2000;
    opacity: 0;
}

/* Background panel behind the text — mostly transparent */
.chat-overlay-panel {
    max-width: 90%;
    padding: 18px 28px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45); /* semi-transparent black */
    color: white;
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
    pointer-events: auto; /* allow interactions on the panel if desired */
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.chat-overlay-text {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.elementToFadeInAndOut {
  animation: fadeInOut 10s linear 1 forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
