html {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  display: inline-block;
  text-align: center;
}

p {
  font-size: 1.2rem;
}

body {
  margin: 0;
}

.topnav {
  overflow: hidden;
  background-color: #049faa;
  color: white;
  font-size: 1em;
  padding: 10px;
}

#authentication-bar{
  background-color:mintcream;
  padding-top: 10px;
  padding-bottom: 10px;
  align-items: center;
}

#authentication-status{
  padding: 10px 10px 10px 10px;
}

#authentication-bar:hover{
  cursor: pointer;
}

#user-details{
  color: cadetblue;
  padding: 10px 0px 10px 0px;
}

.content {
  padding: 20px;
}

.card {
  background-color: white;
  box-shadow: 2px 2px 12px 1px rgba(140,140,140,.5);
  padding: 5%;
}

.card:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.cards {
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.reading {
  font-size: 1.4rem;
}

button {
  background-color: #049faa;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
button:hover {
  opacity: 0.8;
}

.form-elements-container{
  padding: 16px;
  width: 250px;
  margin: 0 auto;
}

input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#logs-table-content {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.log-card {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 600px;
  height: auto;
}

.log-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-card-column {
  flex: 1;
}

.log-card-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.log-card:hover {
  cursor: pointer;
  transform: scale(1.05);
}

#back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 24px;
  border: none;
  outline: none;
  background-color: #049faa;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#back-to-top-btn:hover {
  background-color: #047a87;
}

#logout-link {
  background-color: #049faa;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  padding: 0px 10px 0px 10px;
}

#logout-link:hover {
  background-color: #047a87;
}

#loading-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgb(255, 255, 255);
  z-index: 9999;
}

.ball {
  position: absolute;
  justify-content: center;
  bottom: 30vh;
  left: 50vw;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #049faa;
  animation: loading-bounce 0.5s ease-in-out infinite alternate;
  z-index: 9999;
}

.shadow {
  position: absolute;
  justify-content: center;
  bottom: 30vh;
  left: 50vw;
  height: 6px;
  width: 29px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  animation: shadow 1.5s ease-in-out infinite alternate;
}

@media (max-width: 100vw) {
  .ball {
    left: 50vw; 
  }

  .shadow {
    left: 50vw; 
  }
}

@keyframes loading-bounce {
  0% {
    transform: scale(1, 0.7);
  }

  40% {
    transform: scale(0.8, 1.2);
  }

  60% {
    transform: scale(1, 1);
  }

  100% {
    bottom: 500px;
  }
}

@keyframes shadow {
  0%{
    opacity: 1;
  }
  
  40% {
    opacity: 0;
  }

  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
