body {
    font-family: 'Times New Roman', serif;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#animation {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin-bottom: 20px;
}

#show-treaty {
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

#show-treaty:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

.container {
    max-width: 900px;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 3em;
    margin: 0;
    color: #333333;
    font-weight: bold;
}

.header h2 {
    font-size: 1.5em;
    margin: 0;
    color: #777777;
    font-style: italic;
}

.content {
    font-size: 1.2em;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 30px;
}

.content h3 {
    margin-top: 30px;
    color: #555555;
    font-size: 1.4em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.content p {
    margin: 15px 0;
    text-align: justify;
}

.signatures {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.signature-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.signature-img,
.signature-name {
    flex: 1;
    text-align: center;
}

.signature-img img {
    max-width: 150px;
    height: auto;
}

.signature-name {
    font-style: italic;
    color: #555555;
    margin-top: 5px;
    padding: 0 40px; /* Increased space between names */
}

@media (max-width: 768px) {
    .signature-row {
        justify-content: space-between;
    }

    .signature-img,
    .signature-name {
        text-align: left;
    }

    .signature-img:first-child {
        margin-left: 0;
    }

    .signature-img:last-child {
        margin-right: 0;
    }

    .signature-name:first-child {
        margin-left: 0;
    }

    .signature-name:last-child {
        margin-right: 0;
    }
}
