/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global */
body {
    font-family: Arial, sans-serif;
    background-color: #c5e2ff;
    color: #13275a;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;

}

/* Navbar */
header {
    background-color: #13275a;
    padding: 15px 20px;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all;
}

.nav-links a:hover {
    transition: 1ms;
    color: black;
}

a img{
    display: flex;
    width: 80px;
    height: 80px;
    position: relative;
    padding: 5px;
}

/* LOGIN & REGISTRAZIONE */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    width: 350px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mostra il modal con animazione */
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Bottone chiudi */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Form */
.form-container {
    display: flex;
    width: 200%;
    transition: transform 0.4s ease-in-out;
}
.form-box {
    width: 50%;
    padding: 20px;
    text-align: center;
}
input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background: #555;
}

/* Effetto di transizione tra Login e Signup */
.modal.signup .form-container {
    transform: translateX(-50%);
}

