html * {
    box-sizing: border-box;
    padding: 0;
    background-color: white;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: lightgray;
}

.page {
    margin-top: 10px;
    padding: 20px 20px 20px 20px;
    width: 100%;
    height: 500px;
    max-width: 100%;
    max-height: 100%;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    align-content: center;
    justify-items: center;
}


header {
    background-color: #3C1460;
    text-align: center;
}

header a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #3C1460;
}

header a img {
    width: 95%;
    background-color: #3C1460;
}

header div {
    display: flex;
    justify-content: center;
}

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    border: 1px solid black;
    min-height: 600px;
    padding: 10px;
    box-shadow: 5px 5px 5px 5px rgba(0.5, 0.5, 0.5, 0.5);
    border-radius: 5px;
    background-color: white;
    margin: 70px 10px 10px 10px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
}

.generic-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    min-width: 100%;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.generic-form-createuser {
    display: flex;
    min-width: 60%;
    text-align: center;
    background-color: #f9f9f9;
}

.generic-form-createuser a {
    flex-grow: 1;
    background-color: #007bff;
    min-width: 60%;
    padding-top: 13px;
    padding-bottom: 13px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-family: Arial, sans-serif;
    color: white;
    text-decoration: none;
    text-align: center;
    border-color: #007bff;
    cursor: pointer;
    transition: background-color 0.4s;
}

.generic-form-createuser a:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.generic-form button {
    padding: 12px;
    margin-bottom: 15px;
    width: 60%;
    font-size: 1.2rem;
    font-family: Arial, sans-serif;
    border-radius: 5px;
    border: none;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    transition: background-color 0.4s;
}

.generic-form button:hover {
    background-color: #218838;
    border-color: #218838;
}

.generic-form input[type=text], .generic-form input[type=password] {
    width: 60%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    border-color: lightgrey;
}

.error {
    padding: 10px;
    color: red;
    max-width: 400px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
}

.modal-content {
    background-color: #f9f9f9;
    margin: 16% auto;
    padding: 20px;
    box-shadow: 5px 5px 5px 5px rgba(0.5, 0.5, 0.5, 0.5);
    border-radius: 8px;
    width: 25%;
    height: 14%;
}

#messageText {
    color: black;
    font-size: 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background-color: #f9f9f9;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .modal-content {
        margin: 35% auto;
        width: 40%;
        height: 14%;
    }
}



@media (max-width: 610px) {
    .form-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #f9f9f9;
    }

    .generic-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        min-width: 100%;
        border-radius: 5px;
        background-color: #f9f9f9;
    }

    .generic-form-createuser {
        display: flex;
        min-width: 80%;
        text-align: center;
        background-color: #f9f9f9;
    }

    .generic-form-createuser a {
        flex-grow: 1;
        background-color: #007bff;
        min-width: 80%;
        padding-top: 13px;
        padding-bottom: 13px;
        border-radius: 5px;
        font-size: 1.2rem;
        font-family: Arial, sans-serif;
        color: white;
        text-decoration: none;
        text-align: center;
        border-color: #007bff;
        cursor: pointer;
        transition: background-color 0.4s;
    }

    .generic-form-createuser a:hover {
        background-color: #0056b3;
        color: #0056b3;
        border-color: lightgreen;
    }

    .generic-form button {
        padding: 12px;
        margin-bottom: 15px;
        width: 80%;
        font-size: 1.2rem;
        font-family: Arial, sans-serif;
        border-radius: 5px;
        border: none;
        background-color: #28a745;
        color: white;
        cursor: pointer;
        transition: background-color 0.4s;
    }

    .generic-form button:hover {
        background-color: #218838;
        border-color: #218838;
    }

    .generic-form input[type=text], .generic-form input[type=password] {
        width: 80%;
        padding: 10px;
        margin-bottom: 15px;
        font-size: 1.2rem;
        border-radius: 5px;
        border-color: lightgrey;
    }

    .modal-content {
        margin: 55% auto;
        width: 50%;
        height: 13%;
    }

    #messageText {
        font-size: 18px;
    }
}

@media (max-width: 450px) {

    .form-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #f9f9f9;
    }

    .generic-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        min-width: 100%;
        border-radius: 5px;
        background-color: #f9f9f9;
    }

    .generic-form-createuser {
        display: flex;
        min-width: 85%;
        text-align: center;
        background-color: #f9f9f9;
    }

    .generic-form-createuser a {
        flex-grow: 1;
        background-color: #007bff;
        min-width: 85%;
        padding-top: 13px;
        padding-bottom: 13px;
        border-radius: 5px;
        font-size: 1rem;
        font-family: Arial, sans-serif;
        color: white;
        text-decoration: none;
        text-align: center;
        border-color: #007bff;
        cursor: pointer;
        transition: background-color 0.4s;
    }

    .generic-form-createuser a:hover {
        background-color: #0056b3;
        color: #0056b3;
        border-color: lightgreen;
    }


    .generic-form button {
        padding: 12px;
        margin-bottom: 15px;
        width: 85%;
        font-size: 1rem;
        font-family: Arial, sans-serif;
        border-radius: 5px;
        border: none;
        background-color: #28a745;
        color: white;
        cursor: pointer;
        transition: background-color 0.4s;
    }

    .generic-form button:hover {
        background-color: #218838;
        border-color: #218838;
    }

    .generic-form input[type=text], .generic-form input[type=password] {
        width: 85%;
        padding: 10px;
        margin-bottom: 15px;
        font-size: 1rem;
        border-radius: 5px;
        border-color: lightgrey;
    }

    .modal-content {
        margin: 65% auto;
        width: 50%;
        height: 12%;
    }

    #messageText {
        font-size: 16px;
    }

}