
.dropdown {
    position: relative; 
    display: inline-block; 
}


.dropdown-button {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: inline-flex; 
    align-items: center;
}

.dropdown-button img {
    width: 60px;
    height: auto;
    display: block;
}


.dropdown-content {
    display: none;
    position: absolute; 
    top: 0; 
    left: 100%; 
    background-color: #f9f9f9;
    min-width: 390px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #ccc;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-content > a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.dropdown-content > a:hover {
    background-color: #ddd;
}


.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    padding-right: 40px;
    position: relative;
    display: block; 
}

.dropdown-submenu > a::after {
    content: "\25B8"; 
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.submenu-content {
    display: none;
    position: absolute; 
    top: 0; 
    left: 100%; 
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
    border: 1px solid #ccc;
}

.dropdown-submenu.open-submenu .submenu-content {
    display: block;
}

.submenu-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.8em;
}

.submenu-content a:hover {
    background-color: #ddd;
}


.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
    border: 1px solid #ccc;
}

.submenu-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.submenu-content a:hover {
    background-color: #ddd;
}


@media screen and (max-width: 768px) {
    .submenu-content {
        display: none;
        position: static; 
        width: 100%;
        margin-left: 0; 
        margin-right: 0;
        border-left: none; 
        box-sizing: border-box;
        margin-top: 0; 
        min-width: auto;
        border: 1px solid #ccc; 
    }

    .submenu-content a {
        display: block;
        padding: 15px 20px;
        font-size: 0.9em;
        text-align: left; 
    }

   
    .dropdown {
        display: block; 
        text-align: center;
    }

    .dropdown-button {
        display: inline-flex; 
    }


    .transparency-info {
        padding-left: 20px;
        padding-right: 20px; 
        box-sizing: border-box; 
    }
}


.person-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f9f9f9;
    min-width: fit-content;
    max-width: 90vw;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
    border: 1px solid #ccc;
    padding: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; 
    gap: 15px; 
}


.person-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: calc(50% - 7.5px); 
    box-sizing: border-box;
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 10px;
    text-align: left;
}


.person-image-container {
    flex-shrink: 0; 
}

.person-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}


.person-info {
    flex-grow: 1; 
}

.person-name {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.person-detail {
    font-size: 0.9em;
    margin-bottom: 3px;
    color: #666;
}

.person-detail strong {
    font-weight: bold;
    color: #444;
}





@media screen and (max-width: 768px) {
    .person-submenu-content {
        flex-direction: column; 
    }

    .person-card {
        width: 100%; 
    }
}



.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.agreement-button {
    
    background-color: transparent; 
    border: 2px solid #55585a; 
    color: #55585a; 
    
   
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1.0em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 380px;
    text-align: center;
}

.agreement-button:hover {
    transform: translateY(-9px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.05); 
    border-color: #007bff; 
    color: #007bff;
}

.agreement-button img {
    width:300px;
    height:300px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 5px;
}


.agreement-button.create:hover {
    border-color: #dc3545;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05); 
}

.agreement-button.modify:hover {
    border-color: #ffc107; 
    color: #e0a800; 
    background-color: rgba(255, 193, 7, 0.05); 
}

.agreement-button.delete:hover {
    border-color: #dc3545; 
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05); 
}


@media (max-width: 768px) {
    .agreement-button {
        font-size: 1em;
        padding: 15px 20px;
        flex: 1 1 250px;
        gap: 10px;
    }
    .agreement-button img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .agreement-button {
        width: 90%;
        max-width: 320px;
        font-size: 1em;
        padding: 20px;
        gap: 15px;
    }
    .agreement-button img {
        width: 75px;
        height: 75px;
    }
}