*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
.header{
    min-height: 100vh;
    width: 100%;
    /* background: linear-gradient(rgba(0, 0, 100, 0.2), rgba(0, 0, 100, 0.3)), url('/static/images/ImmaginePippo1.jpeg'); */
    background: linear-gradient(
  to bottom,
  rgba(173, 216, 230, 0.2),    /* Darker color at the top */
  rgba(0, 0, 0, 0.2) 50%, /* Slightly lighter color in the middle */
  rgba(0, 0, 0, 0.4) 100% /* Darker color at the bottom */
),
url('/static/images/ImmaginePippo1.jpeg'); /* Replace with the actual image path */

    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    position: absolute; /* Position absolutely for precise control */
    top: 0;
    left: 0;
    width: 200px; /* Adjust the width as needed */
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a {
    color: #361908;
    text-decoration: none;
    font-size: 20px;
    font-weight: bolder;
    /* -webkit-text-stroke-width: 1px; Adjust the border width as needed */
    /* -webkit-text-stroke-color: #ece7e1; Adjust the border color as needed */
    /* text-shadow: 2px 2px 2px rgba(190, 153, 153, 0.5); White text shadow */

}

.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.3s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.text-box h1{
    font-size: 100px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #3698f4;
    background: #3698f4;
    transition: 1s;

}
nav .fa{
    display: none;
}

/* --------- Course class ----------- */

.course {
    width: 100%;
    margin:auto;
    text-align: center;
    padding-top: 0 20px;
    background: #e5f3f2;
}
.row{
    margin-top: 5% ;
    display: flex;
    justify-content: space-between;
}
.course-col{
    margin: 0 10px;
    flex: 1;
    flex-basis: 31%;
    background: #cfc0c0;
    border-radius:  10px;
    margin-bottom: 5%;
    padding: 20px;
    box-sizing: border-box;
    transition: 0.5s;
}

.course-col:hover{
    box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.2) inset ;
}

h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color:#777;
    font-size:14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;

}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
/* ---------Messaggi dal backend-------- */
/* Flash Messages Container */
.alert-messages {
    position: fixed;
    top: 50%;
    left: 50%;
    right: 0;
    font-size: 20px;
    padding: 10px;
    background-color: #667a9a;
    color: #fff;
    text-align: center;
    z-index: 9999;
    transform: translate(-50%, 80%);
    transition: opacity 1s;
}

/* Initially set opacity to 1 (fully visible) */
.alert-messages.show {
    opacity: 1;
}

/* Set opacity to 0 (fully transparent) when hiding */
.alert-messages.hide {
    opacity: 0;
}

/* Flash Message Styles */
.alert {
    margin-bottom: 10px;
    padding: 10px 10px;
    font-size: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d9edd9; /* Green background for success messages */
    color: #010101;
}

.alert-info {
    background-color: #2196F3; /* Blue background for info messages */
    color: #010101;
}

.alert-warning {
    background-color: #FFC107; /* Yellow background for warning messages */
    color: #010101;
}

.alert-danger {
    background-color: #F44336; /* Red background for error messages */
    color: #010101;
}


/* -----------------------PER IL LOGOUT------------------ */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #f2ece1;
    text-align: center;
    border-radius: 5px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

button {
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
}

button#confirmLogout {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 2px;
}

button#cancelLogout {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 2px;
}

/* -------------------------------WELCOME MESSAGE--------------------------- */
/* CSS for the welcome message container */
.welcome-message {
    text-align: center; /* Center the text horizontally */
    font-size: 50px; /* Adjust the font size */
    font-weight: bold;
    margin-top: 20px; /* Add some top margin for spacing */
    color: #fff; /* Text color */
    transform-origin: center; /* Set the transform origin to center */
    animation: scaleAnimation 1s ease-in-out; /* Animation applied when the page loads */
}

/* Keyframes for the scaling animation */
@keyframes scaleAnimation {
    from {
        transform: scale(0.3); /* Start at 80% size */
        opacity: 0; /* Start with 0 opacity */
    }
    to {
        transform: scale(1.2); /* End at 100% size */
        opacity: 1; /* Start with 0 opacity */
    }
}


@media(max-width: 800px){
    .text-box h1{
        font-size: 40px;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        display: none;
        position: absolute;
        background: linear-gradient(
            to bottom,
            rgba(155, 199, 213, 0.95),    /* Darker color at the top */
            rgba(99, 146, 140, 0.95) 50%, /* Slightly lighter color in the middle */
            rgba(132, 163, 112, 0.7) 100% /* Darker color at the bottom */
          );
        height: 100vh;
        width: 200px;
        top: 0;
        /* right: 0px; problema con navigazione */
        text-align: left;
        z-index: 2;
        transition: 1s ease;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 12px;
        font-size: 22px;
        cursor: pointer;
    }
    nav .fa-bars {
        display: block;
        color: #fff;
        margin: 12px;
        font-size: 22px;
        cursor: pointer;
        position: absolute;
        top: 12px;
        right: 12px; /* Adjust the right position as needed */
    }
    .nav-links ul{
        padding: 20px;
    }
    .row{
        flex-direction: column;
    }
    .alert {
        font-size: 20px;
    }
    .welcome-message {
        font-size: 30px;
        margin-top: 50px;
    }
}