* {
    box-sizing: border-box;
}

html, body {
    background: #111322;
    color: #DD0273;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.container {
    max-width: 100%;
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h2, h3 {
    color: #DD0273;
    margin-bottom: 15px;
}

.form-container {
    background-color: #1d1f33;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
}

label, input {
    display: block;
    margin: 10px 0;
    width: 100%;
}

input[type="text"], input[type="password"], input[type="date"], input[type="submit"] {
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    width: 100%;
    border: 2px solid #DD0273;
    border-radius: 5px;
    background-color: #f9f9f9;
}

input[type="submit"] {
    background-color: #DD0273;
    color: white;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #c60063;
}

ul.order-history {
    list-style-type: none;
    padding: 0;
}

ul.order-history li {
    background-color: #2a2d45;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    color: white;
}

a {
    display: block;
    margin-top: 20px;
    color: #DD0273;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Styl dla modalnego okna (Pop-upu) */
.modal {
    display: none; /* Ukryte domyślnie */
    position: fixed;
    z-index: 1000; /* Ustawienie wysokiego z-index, aby okno było nad innymi elementami */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* W razie potrzeby przewijanie */
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczyste tło */
}

.modal-content {
    background-color: #1d1f33;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #DD0273;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    color: white;
    position: relative;
}

.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

button {
    background-color: #DD0273;
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #c60063;
}

/* Media Queries for Mobile Devices */
@media only screen and (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    input[type="text"], input[type="password"], input[type="date"], input[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }

    .modal-content {
        width: 90%;
        margin-top: 40%;
    }
}
