/* Reset some default spacing */
body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

/* Base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
  padding: 10px;
}

/* Headings */
h1, h2, h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Buttons */
.logButton {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 50%;
  margin: 10px 0;
}

.logButton:hover {
  background-color: #2980b9;
}

.logButton:disabled {
  background-color: #9e9e9e;
}

.logout {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px;
    width: 88px;
    margin: 5px auto;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: block;
}

.logout:hover {
  background-color: #2980b9;
}

.logout:disabled {
  background-color: #9e9e9e;
}

/* Lists */
ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 50%;
  padding: 12px 16px;
  margin: 7px 0;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
  outline: none;
}

select {
  width: 50%;
  display: block;
  border: 2px solid #ddd;
  background: #eee;
  padding: 10px;
  transition: 0.4s;
  border-radius: 10px;
}


/*  */
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; 
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: none;
  /* width: 80%; */
  position: relative;
  border-radius: 10px;
}

/* The Close Button */
.close {
  position: absolute;
  top: 0;
  right: 0;
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin: 0 10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#loginResult {
  display: inline-block;
  /* margin-left: 10px; */
}

form {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items:center;
  flex-direction: column;
}

.hero {
  display: flex;
  justify-content: center;
}

table {
  border-collapse: collapse;
  margin-top: 15px;
  width: 100%;
  
}

th, td {
  padding: 8px;
  text-align: center;
  /* vertical-align: middle; */
}

tr:nth-child(even){background-color: #d9d9d9}

th {
  background-color: #04AA6D;
  color: white;
}

.progressContainer {
  width: 100%;
  height: 30px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progressBar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.5s linear;
  position: relative;
}

.progressBar-disabled {
  height: 100%;
  width: 0%;
  background-color: #9e9e9e;
  transition: width 0.5s linear;
  position: relative;
}

.progressText {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 30px;
  color: rgb(92, 92, 92);
  font-weight: bold;
  pointer-events: none;
  z-index: 1;
  left: 0;
}

.failed {
    color:#aa0404;
    font-size: large;
    margin: 10px;
}

.success {
    color:#04AA6D;
}

#fixedButton {
  position: absolute;
  top: 0px;
  right: 10px;
  z-index: 1;
  background:none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  aspect-ratio: 1 / 1;
}

#fixedButton:hover {
  text-shadow: 0 0 20px rgb(184, 184, 184);
}




  input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
}

select {
  margin-top: 30px;
  margin-bottom: 7px;
  width: 100%;
}

#login {
  width: 100%;
  margin : 7px 0;
}


@media (max-width: 500px) {
  .modal-content {
    width : 80%
  }
}
@media (min-width: 500px) {
  .modal-content {
    width : 400px
  }
}

