* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background-image: url('/static/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;

    position: relative;
}

body::before {
    content: "";
    position: fixed;
    opacity: 0.25;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('/static/overlay.gif');
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;

    pointer-events: none;
    z-index: 0;
}

header,
main {
    position: relative;
    z-index: 1;
}


.header {
    width: 100%;
    height: 90px;
    background: rgba(255, 0, 0, 0.582);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

.main {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    text-align: center;
    margin: 30px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    padding: 20px;
    justify-items: center;
}

@media screen and (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgb(255, 255, 255);
    width: 100%;
    z-index: 0;
    max-width: 260px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    padding: 15px;
    text-align: center;
}

.card img {
    width: 100%;
    z-index: 1;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}


.btn {
    display: inline-block;
    background: #ff0000;
    z-index: 1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
}

.btn.small {
    margin-bottom: 15px;
}

.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.center-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
}

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

.form input,
.form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.total {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}

.danger {
    color: #ff0000;
    text-decoration: none;
}

.circle-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}