body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 500px;
    width: 500px;
    background: url('../img/windowss.png');
    background-size: cover;
}

.Formulari {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out;
}

.Formulari h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: slideIn 2s ease-in-out;
}

.Formulari label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
    color: #555;
}

.Formulari input,
.Formulari textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.Formulari button {
    width: 100%;
    padding: 15px;
    background-color: #e0c67b;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.3s;
}

.Formulari button:hover {
    background-color: #3359ff;
    color: #ffffff;
    transform: translateY(-2px);
}

input:valid,
textarea:valid,
select:valid {
    border-color: #4CAF50; 
    background-color: #e8f5e9; 
}

input:invalid,
textarea:invalid,
select:invalid {
    border-color: #f44336; 
    background-color: #ffebee; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}