* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-color: #f1f1f1;
  display: flex;
  flex-direction: column;
}

section.content{
  flex: 1;
}

form {
  display: inline-grid;
  gap: 1em;

}

#regForm, #loginForm {
  background-color: #ffffff;
  margin: 100px auto;
  font-family: Raleway;
  padding: 40px;
  width: 70%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}
#regForm input{
  justify-self: left;
  
}

.text-container, #errorContainer{
  background-color: #ffffff;
  margin: 15px auto;
  padding: 20px;
  width: fit-content;
  min-width: 300px;
  font-family: Raleway;
}

.adminPanel{
  background-color: #ffffff;
  margin: 30px auto;
  padding: 40px;
  width: 70%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;  
  font-size: 40px;
}
input {
  padding: 10px;
  font-size: 17px;
  border: 1px solid #aaaaaa;
}

input.reg {
  width: 100%;
  font-size: 17px;
  font-family: Raleway;
  border: 1px solid #aaaaaa;
}

br.spacing{
  clear: both;
  padding: 20px;
}

/* Mark input boxes that gets an error on validation: */
input.invalid {
  background-color: #ffdddd;
}

/* Hide all steps by default: */
.tab {
  display: none;
}

button {
  background-color: #aa0404;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 17px;
  font-family: Raleway;
  cursor: pointer;
  width: min-content;
}

button:hover {
  opacity: 0.8;
}

#prevBtn {
  background-color: #bbbbbb;
}

/* Make circles that indicate the steps of the form: */
.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border: none;  
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
  background-color: #04AA6D;
}

#drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  max-width: 100%;
  height: 200px;
  padding: 1em;
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: slategray;
  cursor: pointer;
}

#file-input {
  display: none;
}

#preview {
  width: 500px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  list-style: none;
  padding: 0;
}

#preview li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  width: 100%;
  height: 100px;
}

#preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

#navbar {
  background-color: #333;
  color: white;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#footer {
  background-color: #333;
  color: white;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#footer a {
  color: #000dff;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}
nav ul li a, nav ul li span, header .action { display: block; padding: 0.5rem; }

nav ul li a:hover, header .action:hover { background-color: #555; }
nav ul li a { color: #ff0404; }

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  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 */
.modal-content {

  position: relative;
  display: block;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  top: 40%;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 40%; opacity: 1}
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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


.cd-container {
    max-width: 900px;
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    text-align: center;
    padding: 40px;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    justify-self: center;
}
.cd-title {
    font-size: 2.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #f74d4d, #f92b2e);
    background-clip: text;
    color: transparent;
}
.cd-end-time {
    font-size: 1.2rem;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 50px;
}
.cd-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.time-value {
    width: 120px;
    height: 120px;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 600;
    background: rgba(30, 41, 59, .5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .05);
    margin-bottom: 15px;
    color: #f8fafc;
}
.time-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    font-weight: 500;
}

.info:after
{
    content: '?';
    display: inline-block;
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
    width: 1.8ex;
    height: 1.8ex;
    font-size: 1.4ex;
    line-height: 1.8ex;
    border-radius: 1.2ex;
    margin-right: 4px;
    padding: 1px;
    color: rgb(0, 0, 0);
    background: white;
    border: 1px solid rgb(0, 0, 0);
    text-decoration: none;
}

.info:hover:after
{
    color: white;
    background: rgb(0, 0, 0);
    border-color: white;
    text-decoration: none;
}

.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
  display: inline;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

.foresight {
  opacity: .85;
}
.warn {
  color: red;
  font-weight: bold;
}