 * {
  box-sizing: border-box;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: #000;
    background-image: url(../images/Background.png);
    background-repeat: repeat-x;
    background-size: cover;
    color: #fff;
    font-family: castaway;
    font-weight: 500;
    font-style: normal;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
}

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

.logo {
    width: 600px;
    max-width: 100vw;
}

.form-logo{
    width: 400px;
}

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: -80px;
    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 {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    z-index: 10;
}

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

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

.logout-button {
    position: absolute;
    top: 30px;
    right: 30px;
    margin: auto;
    width: 190px;
    height: 60px;
    font-size: 1.8rem;
}

.login-form {
    position: relative;
    max-width: 450px;
    width: 100%;            /* ensures it shrinks on small screens */
    display: flex;
    flex-flow: column;
    row-gap: 0.75rem;
    padding: 1rem 2rem 3rem;
    border-radius: 0.5rem;
    border: 0.1rem solid #a1a1a1;
    background: #33373a;
    filter: drop-shadow(0 1rem 2rem #2b329996);
    z-index: 10;
    margin: auto;
}


.error {
    position: relative;
    max-width: 450px;
    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;
}

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

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

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

.footer {
    margin-top: 100px;
    background: #010101;
    background: linear-gradient(90deg, rgba(1, 1, 1, 1) 0%, rgba(38, 38, 38, 1) 50%, rgba(1, 1, 1, 1) 100%);
    color: #fff;
    font-family: 'Alegreya Sans', sans-serif;
}

.footer a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #ccc;
}

/* Responsive for small screens */
@media (max-width: 500px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 800px) {
    .card {
        width: 348px;
    }
}