body {
  margin: 0;
  padding: 0;
  position: relative;
  background-color: #000;
  color: #fff;
  font-family: castaway;
  font-weight: 500;
  font-style: normal;
  text-align: center;
  font-size: 16px;
  min-height: 100vh;
}

/* @font-face { */
/*   font-family: castaway; */
/*   src: url(/fonts/LasVegas-Castaway.otf); */
/* } */

.top-bar {
  padding: 2rem 5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.logo-stretcher {
  width: 33.3%;
}


.logo {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.logout-space {
  width: 33.3%;
  align-self: flex-start;
}

label {
  align-self: flex-start;
  font-family: Arial, Helvetica, sans-serif;
}

p {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

h2 {
  font-style: italic;
}

span {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.form-span {
  font-size: 2.3rem;
  font-family: castaway;
}

input {
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  border: none;
  font-weight: 500;
  font-style: normal;
  font-size: 1.375rem;
}

input:focus {
  outline: none;
}


button {
  width: 250px;
  height: 80px;
  align-self: center;
  border: 2px solid #fff;
  border-radius: 1.25rem;
  background-image: url(/images/button.avif);
  background-repeat: no-repeat;
  background-position-x: -180px;
  color: #fff;
  font-family: castaway;
  font-weight: 800;
  font-style: normal;
  font-size: 2rem;
}

button:hover {
  filter: drop-shadow(0 0 0.15rem #a4a5b5f2);
}

button:active {
  background-image: url(/images/button_pressed.avif);
}

.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
}

.card {
  width: 348px;
  text-align: center;
}

.card img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.balance {
  width: 33.3%;
  align-self: flex-start;
  font-size: 2.3rem;
}

.logout-button {
  width: 190px;
  height: 60px;
  float: right;
  font-size: 1.8rem;
}

.login-form {
  position: relative;
  max-width: 400px;
  display: flex;
  flex-flow: column;
  row-gap: 0.75rem;
  padding: 1rem 2rem 3rem;
  margin: 0px auto 15px;
  border-radius: 0.5rem;
  border: 0.1rem solid #a1a1a1;
  background: #33373a;
  filter: drop-shadow(0 1rem 2rem #2b329996);
  z-index: 10;
}

.form-style {
  position: relative;
  max-width: 400px;
  display: flex;
  flex-flow: column;
  row-gap: 0.75rem;
  margin: 0px auto 15px;
  z-index: 10;
}

.error {
  position: relative;
  max-width: 400px;
  padding: 1rem 2rem;
  margin: auto;
  border-radius: 0.5rem;
  border: 0.1rem solid #ec5959;
  background: #b91414;
  font-size: 22px;
  z-index: 10;
  font-family: Arial, Helvetica, sans-serif;
}

.custom-alert {
  display: block;
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  background-color: #323232;
  color: white;
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.0;
  z-index: 10000;
  transition: top 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
}

.success-message {
  position: relative;
  max-width: 400px;
  display: flex;
  flex-flow: column;
  row-gap: 0.75rem;
  padding: 1rem 2rem 3rem;
  margin: 0px auto 15px;
  border-radius: 0.5rem;
  border: 0.1rem solid #a1a1a1;
  background: #33373a;
  filter: drop-shadow(0 1rem 2rem #2b329996);
  z-index: 10;
}

.custom-alert.show {
  top: 20px;
  opacity: 1.0;
}

.custom-alert.success {
  background-color: #4caf50;
}

.custom-alert.error {
  background-color: #f44336;
}


@media (max-width: 800px) {
  .card {
    width: 348px;
  }
  .top-bar {
    flex-direction: column-reverse;
  }
  .balance {
    align-self: center;
    font-size: 1.5rem;
  }
  .logout-space {
    align-self: flex-end;
  }
}

