
body
{
    background-image: url('images/Bernat_waves.jpg');
    background-size: cover;
    height: 100%;
    padding: 0;
    margin: 0;
}






.portrait-box
{
    width: min(max(40%, 420px), 95%);
    margin: 0 auto;
    margin-bottom: min(40px, 4vw);
    background-color: rgba(161, 183, 188, 0.616);
    color: rgb(4, 31, 92);
    font-family: arial;
    border-radius: 15px;
    box-shadow: 0 2px 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}
.portrait-box a
{
    color: rgb(4, 31, 92);
    text-decoration: none;

}

.portrait-box a:hover
{
    color: rgb(173, 240, 223);
}

.portrait 
{
    width: min(30vw, 165px); 
    height: min(40vw, 220px); 
    border-radius: 15px; 
    margin-left: 0.9vw; 
    vertical-align:middle; 
    box-shadow: 0px 0px min(5px, 1vw);
}

.name
{
    font-size: min(6vw, 30px); 
    margin-top: min(10px, 1vw);
    margin-bottom: 0;
}

.position
{
    font-size: min(5vw, 20px); 
    margin-top: min(1vw, 10px); 
    margin-bottom: min(30px, 2vw);
}

.details
{
    font-size: min(3.5vw, 16px);
    margin-bottom: max(3px, 1vw);
    margin-top: 0px;
}

@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }









.info
{
    position:relative;
    align-self: center;
    max-width: 90%;
    color: rgba(161, 183, 188, 1);

}
.info a
{
    color: rgba(161, 183, 188, 1);
}

.info a:hover
{
    color: rgb(255, 255, 255);

}



.page-container
{
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 20px;
}

h3.info
{
    margin-bottom: min(15px, 1vw);
    margin-left: 0;
}















.contacts
{
    width: 90%;
    max-height: 20px;
    text-align:center;
    color: rgba(161, 183, 188, 1);
    border-top: 1px solid rgba(161, 183, 188, 1);
    background-color: rgba(0, 0, 0, 0.2);
    font-size: min(16px, 5vw);
}


.contacts-pos
{
    position:absolute;
    bottom: 2%;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}



















/* Basic styles for the button container */
.button-container {
    display: inline-flex;
    justify-content: center;
    background-color: rgba(6, 95, 155, 0.2);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
   /*max-width: fit-content;*/ 
}


.button-centerer {
    display: flex; /* Use flexbox to center the contents of the button-container*/
    justify-content: center; /* Center the button container horizontally */
    width: 100%; /* Full width to allow centering */
}



button
{
    border-radius: 5px;
    background-color: rgba(173, 240, 223, 0.204);
    color: rgb(4, 31, 92);
    font-size: 16px;
    padding: 5px ;
    margin: 0 2px;
    transition: background-color 0.3s;
}


a.button
{
    background-color: rgba(1, 222, 167, 0.4);
    color: rgb(4, 31, 92);
    font-size: 16px;
    margin: 0 2px;
    padding: 5px ;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 2px solid black;
    border-left-color: rgb(90, 90, 90);
    border-top-color: rgb(90, 90, 90);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for 3D effect */
    font-family: sans-serif;

}



a.button:hover
{
    color: rgb(4, 31, 92);
    background-color: rgba(173, 240, 223, 0.499);

}

a.button:active
{
    border: 2px solid black;
    border-right-color: rgb(90, 90, 90);
    border-bottom-color: rgb(90, 90, 90);
}

/* Dropdown container styles */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Styles for the button that triggers the dropdown */
.dropbtn {
    background-color: rgba(1, 222, 167, 0.4);
    color: rgb(4, 31, 92);
    padding: 0px, 0px;
    font-size: 16px;
    border-radius: 5px;
    margin: 0 2px;
    height: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

/* Change button color on hover */
.dropbtn:hover {
    background-color: rgb(173, 240, 223);
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(6, 95, 155, 0.2);
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;

}

/* Dropdown links styles */
.dropdown-content a {
    background-color: rgba(173, 240, 223, 0.499);
    color: rgb(4, 31, 92);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: sans-serif;
    border-radius: 5px;
    transition: background-color 0.3s;

}

/* Change background color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: rgba(1, 222, 167, 0.4);
    color: rgb(4, 31, 92);
}

/* Show the dropdown menu when hovering over the dropdown container */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: rgba(173, 240, 223, 0.499);
}
















a.lang-button-active 
{
    margin: 0 2px;
    border-radius: 5px;
    border: 2px solid black;
    border-right-color: rgb(90, 90, 90);
    border-bottom-color: rgb(90, 90, 90);
    max-height: 29px;

}


a.lang-button-inactive 
{
    margin: 0 2px;
    border-radius: 5px;
    border: 2px solid black;
    border-left-color: rgb(90, 90, 90);
    border-top-color: rgb(90, 90, 90);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for 3D effect */
    max-height: 29px;

}

.flag
{
    width: 30px; height: 29px;border-radius: 3px;
}