body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.sidebar {
    width: 220px;
    background-color: #ffffff;
    padding: 25px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    border-right: 1px solid #eee;
}

.sidebar a {
    padding: 10px 15px;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
    padding-left: 40px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.menu {
    display: block;
    margin-bottom: 20px;
    padding: 20px;
    font-weight: 600;
    color: #000;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.menu-register,
.menu-guide,
.menu-about,
.menu-pubs,
.menu-workshop {
    background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('register.png');
}

.sidebar a:hover {
    color: #007bff;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    background: url('sfondo.jpg') no-repeat center center;
    background-size: contain;
    background-color: white; /* optional fallback */

    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}

.main1::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('sfondo.jpeg') no-repeat center center;
    background-size: contain;
    opacity: 0.08; /* adjust this for stronger or weaker fade */
    z-index: 0;
}


.main1 {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    overflow: hidden; /* important for the overlay */
}

.project-name {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.login-button {
    padding: 12px 30px;
    font-size: 1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;

    margin-top: auto;          /* push it to the bottom */
    margin-bottom: 30px;       /* spacing from bottom edge */
    align-self: center;        /* center horizontally in .main */
}

.login-button:hover {
    background-color: #0056b3;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    border-top: 1px solid #ccc;
    z-index: 1000;
}


.form-container {
    width: 100%;
}

.form-container form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-container label {
    display: block;
}

.form-container input,
.form-container textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1em;
}






.feedback-form {
    display: flex;
    align-items: center;
}

.feedback-form input[type="text"] {
    padding: 6px;
    width: 220px;
    margin-right: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.feedback-form button {
    padding: 6px 12px;
}

.feedback-response {
    color: green;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
}

.register-main {
    max-width: 700px;
    max-height: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 7%;
    margin-left: 22%;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.about-container {
    position: relative;
    z-index: 1;
    background: transparent; /* fully transparent */
    padding: 20px;
    border-radius: 8px;
}