:root {
    --primary-color: #4a7b4c;
    --secondary-color: #9cc99e;
    --background-color: #e1f3e2;
    --text-color: #265629;
    --light-text-color: #407243;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f0f8f0;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #4a7b4c;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

nav {
    width: 100%;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

main {
    flex: 1 0 auto;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #2E7D32;
}

.project-container {
    display: flex;
    gap: 2rem;
}

.group-list {
    flex: 1;
    background-color: #e1f3e2;
    padding: 1rem;
    border-radius: 5px;
}

.group-item {
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.group-item:hover, .group-item.active {
    background-color: #C8E6C9;
}

.group-content {
    flex: 3;
    background-color: #e1f3e2;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button {
    background-color: #4a7b4c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color:  #6f8c70;
}

textarea {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.upload-section {
    margin-top: 1rem;
    background-color: #e1f3e2;
    padding: 1rem;
    border-radius: 5px;
}

footer {
    flex-shrink: 0;
    background-color: #4a7b4c;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

.flashes {
    list-style-type: none;
    padding: 0;
}

.flashes li {
    background-color: #FFF3CD;
    border: 1px solid #FFEEBA;
    color: #856404;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input[type=file]::file-selector-button {
    background-color: #4a7b4c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  input[type=file]::file-selector-button:hover {
    background-color:  #6f8c70;
  }

input[type="submit"] {
    background-color: #4a7b4c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #6f8c70;
}

.plot-section {
    margin-top: 2rem;
}

.plot-section img {
    max-width: 100%;
    height: auto;
}

.upload-section {
    display: flex;
    align-items: center;
}

#upload-form {
    margin-right: 20px;
}

#flash-messages {
    flex-grow: 1;
}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 70%;
    max-height: 90vh;
    overflow: auto;
}
.popup-close {
    position: fixed;
    top: 1%;
    right: 1%;
    font-size: 20px;
    cursor: pointer;
    background-color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}
th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}