*{
    margin : 0;
    padding: 0;
    box-sizing : border-box;
}

.overview {
  font-family: Arial, sans-serif;
    background-color: f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.overview-list {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  align-items: center;
}

.overview-image {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  align-items: center;
  max-width: 600;
}

/* Style flash messages */

.flash-messages {
  position: fixed;
  top: 30px; /* Distance from the top of the window */
  left: 50%;
  transform: translateX(-50%); /* Center the messages horizontally */
  z-index: 1000; /* Ensure the messages appear above other content */
  width: 90%; /* Adjust width as needed */
  max-width: 400px; /* Set a max-width for better presentation */
}

.flash-message {
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #721c24;
  opacity: 1; 
  transition: opacity 0.5s ease; 
  animation: fadeOut 2s forwards; 
}

/*.flash-message {
padding: 10px;
margin-bottom: 10px;
}*/

.flash-message.error {
background-color: #f8d7da;
color: #721c24;
}

.flash-message.success {
background-color: #d4edda;
color: #155724;
}

/* Keyframes for fade-out animation */
@keyframes fadeOut {
  0% {
      opacity: 1; /* Fully visible */
      margin-top: 0; /* Keep the message in place */
  }
  80% {
      opacity: 1; /* Remain visible until near the end */
      margin-top: 0; /* Keep the message in place */
  }
  100% {
      opacity: 0; /* Fully transparent */
      margin-top: -7%; /* Move the message up so it doesn't block UI*/
  }
}

.header {
  text-align: left;
}

#current-link {
    font-weight: bold;
    color: #d3d3d3;
    border-bottom:rgb(143, 167, 192) 3px solid;
}

/* Container for the form elements */
.login-form {
padding: 10px;
display: flex;
flex-direction: column;
align-items: flex-start;
width: 200px;
}

/* Container for buttons */
.button-container {
display: flex;
width: 100%;
justify-content: space-between;
gap: 10px;
}

/* General style for buttons */
.login-form {
    position: fixed;
    top: 0;
    right: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
}

.login-form button {
flex: 1;
padding: 8px 16px;
border-radius: 20px;
color: white;
border: none;
cursor: pointer;
margin-bottom: 0;
}

/* Specific style for the login button */
.login-btn {
background-color: #007bff;
}

.login-btn:hover {
background-color: #0056b3;
}

/* Specific style for the signup button */
.signup-btn {
background-color: #4CAF50;
}

.signup-btn:hover {
background-color: #45a049;
}

/* Welcome Container */
.welcome-container {
    position: fixed;
    width: fit-content;
    top: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 12px;
    border-bottom-left-radius: 8px;
}

.signout-btn {
    flex: 1;
    padding: 8px 16px;
    margin-left: 5px;
    border-radius: 5px;
    color: white;
    background-color: #bd2130; 
    border: none;
    cursor: pointer;
    margin-bottom: 0;
    margin-left: 17 px;
}

.signout-btn:hover {
    background-color: #bd2130; 
    color: #fff;
}

/* Initially hide all input sections */
.input-section {
display: none;
}

/* Display the input section corresponding to the selected radio button */
input[type="radio"]:checked + label + .input-section {
display: block;
}

/* Add some spacing between radio groups */
.radio-group {
margin-bottom: 20px;
}

.non-bs-modal {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    height: 70vh;
    max-height: 70vh; 
    overflow-y: auto; 
    border-radius: 8px; 
}


.overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.image-container {
    display: flex;
    gap: 20px;
}

.large-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    height: 300px;
}

.thumbnail img {
    cursor: pointer;
    width: 200px;
    height: auto;
    transition: transform 0.2s ease;
}


.thumbnail img:hover {
    transform: scale(1.1);
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px; 
}

.analyze-button {
    margin-top: 20vh; 
}

.cancel-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20vh;
}

.cancel-button:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.page-container {
    padding: 20px;
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid rgb(143, 167, 192);
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
}

.box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    transition: transform 0.2s ease;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

.back-btn:hover {
    background-color: #0056b3;
}

.embedded-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-container {
    background-color: #fff;
    padding: 2%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form .form-control {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ccc;
}

/* Style for each request container */
.request-container {
    margin-left: 25%; 
    margin-top: 2%; 
    margin-bottom: 2%; 
    width: 55%;
    height: 90vh;
    transition: transform 0.2s;
    align-items: center;
}

.request-container:hover {
    transform: scale(1.02);
}

.image-container {
    float: left;
    height: 28vh;
    width: auto;
    margin: 2%;
}

#image-description {
    margin-left: 25%;
    margin-top: -3.4%;
}