/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f7f7f7;
    color: #333;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: center; /* Center all items horizontally */
    align-items: center;
    max-width: 1200px;
    margin: 10px auto;
    position: relative; /* Make sure the navbar is positioned relative to this container */
}

.logo {
    position: absolute;
    left: 20px; /* Adjust based on your preference */
}

.logo img {
    height: 30px;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    position: absolute;
    right: 20px; /* Adjust based on your preference */
}

.navbar {
    display: flex;
    justify-content: center; /* Center navbar items */
    flex: 1;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.navbar a:hover {
    color: #d63031;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        display: none;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 10px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navbar.active {
        display: flex;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .menu-button {
        display: block;
    }

    .menu-button i {
        font-size: 24px;
    }
}

main {
    max-width: 800px;
    margin: 50px auto 80px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

main h2 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #111111;
    font-size: 20px;
}

.petition-image {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: bold;
}

.petition-details {
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    height: 20px;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background-color: #d63031;
    width: 0;
    transition: width 0.5s;
}

.petition-starter {
    font-size: 14px;
    color: #555;
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.petition-starter i {
    margin-right: 8px;
    color: #d63031;
}

.petition-starter a:hover {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the parent element's color */
}

.description {
    font-size: 16px;
    line-height: 1.5;
    margin: 20px 0;
}

.start-your-own {
    margin-top: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.start-your-own i {
    font-size: 24px;
    color: #d63031;
}

.start-your-own p {
    font-size: 16px;
    margin: 0 10px;
    flex: 1;
}

.start-petition-button {
    background-color: #d63031;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.start-petition-button:hover {
    background-color: #b82727;
}

.long-button {
    background-color: #d63031;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 15px; /* Slightly rounded corners */
    cursor: pointer;
    display: block;
    width: calc(100% - 40px); /* Adjust width to fit well within the content area */
    max-width: 700px;
    margin: 20px auto; /* Center horizontally and add vertical margin */
}

.long-button i {
    margin-right: 10px;
}

.long-button:hover {
    background-color: #b82727;
}

/* Footer Styles */
footer {
    background-color: #f7f7f7;
    color: #333;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-section ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-info a {
    color: #d63031;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.language-selector {
    margin-top: 10px;
}

.language-selector select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
    .navbar {
        display: none;
        width: 100%;
    }
    .navbar.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background-color: #f7f7f7;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        padding: 10px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    main {
        margin: 50px 10px 80px;
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    .start-your-own {
        flex-direction: column;
    }
}
