body {
    background: rgba(245, 245, 245, 1);
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    background: rgba(245, 245, 245, 1);
}

.viewpage {
    background-color: rgba(245, 245, 245, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Allow cards to wrap to the next line */
    align-items: center;
    justify-content: center;
    gap: 50px; /* Add space between cards */
    margin-top: 40px;
}



/*
HEADER ELEMENTS
 */



.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8vh;
    margin-top: 25px;
}

/*
left header
 */


.header-left {
    display: flex;
    align-items: center;
    margin-left: 100px;
    margin-top: 20px;
}



/*
center header
 */

.header-nav {
    padding: 5px;
    padding-left: 20px;
    width: 70vh;
    height: 5vh;
    display: inline-grid;
    border-radius: 35px;
    margin: 0 auto;
    border: 2px solid #7a7a7a1f;
}

span.header-nav-title {
    color: #4E4E4E;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 500;
}

span.header-nav-desc {
    color: #7A7A7A;
    font-family: 'Roboto';
    font-size: 14px;
}




/*
right header
 */
.header-buttons {
    position: absolute;
    display: flex;
    top: 10px;
    right: 20px;
    align-items: center;
}


span.switch-text {
    color: #000;
}

.switch-mode {
    margin-right: 30px;
    padding: 12px;
    border: black 2px solid;
    border-radius: 20px;
    cursor: pointer;
}

.switch-mode:hover{
    background: #000;
}

.switch-mode:hover span.switch-text{
    color: #fff;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.profile-pic {
    cursor: pointer;
    border-radius: 50%;
}


.dropdown-content {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: Arial, sans-serif;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    margin-top: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.text {
    flex: 1;
    font-size: 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* Ajouter un délai sur la fermeture */
.dropdown-content {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}



/**/
.title {
    color: #01B273;
    font-family: Montserrat;
    font-size: 32px;
    font-weight: 900;
    position: absolute;
    left: 20px;
    margin: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 900px;
    margin-top: 15px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    width: 900px;
    background: #01b2733d;
    border-radius: 40px;
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-pic-card {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.profile-name {
    font-family: 'Montserrat';
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.profile-bio {
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 400;
    color: #555;
    text-align: center;
    padding: 0 20px;
}



