* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    background: #1d2026;
    color: white;
    box-sizing: border-box;
}

.menu {
    width: 100%;
    position: relative;
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 8%;
    font-weight: bold;
    background: #1d2026;
}

.logo {
    width: 50px;
}

nav ul {
    flex: 1;
    text-align: right;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 5px 20px;
}

nav ul li a {
    color: #fff;
}

nav span {
    padding-left: 20px;
    font-size: x-large;
    color: #fff;
}

a {
    color: #3498db;
    /* A pleasant blue color */
    text-decoration: none;
    /* Removes the underline */
    font-weight: bold;
    /* Makes the link text bold */
    transition: color 0.3s ease;
    /* Adds smooth transition on hover */
}

a:hover {
    color: #2ecc71;
    /* Changes to a green color when hovered */
    text-decoration: underline;
    /* Adds underline back on hover */
}

a:active {
    color: #e74c3c;
    /* Changes to red when clicked */
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    flex: 1;
    font-family: Arial, sans-serif;
    padding: 20px;
}

.subtext {
    text-align: center;
    line-height: 1.2;
}

.subtext p {
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    padding: 25px;
    align-items: center;
    text-align: center;
    font-size: 60px;
}

h2 {
    padding-bottom: 20px;
    align-items: center;
    text-align: center;
    font-size: 40px;
}

.pagebody {
    flex: 1;
    margin: auto;
    width: 100%;
}

html {
    height: 100%;
}

.footer {
    padding: 20px 8%;
    align-items: center;
    text-align: center;
    color: #808080;
}

.info {
    color: #808080;
    align-items: center;
    text-align: center;
    padding: 20px 8%;
}

.visitor-count {
    display: none;
    /* Initially hidden */
    text-align: center;
    font-size: 1.3rem;
    margin-top: 40px;
    color: #fff;
    padding: 10px;
}

.petition-form {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.petition-form div {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 300px;
}

.petition-form label {
    margin-right: 5px;
}

.petition-form input {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.petition-form button {
    padding: 8px 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.petition-form button:hover {
    background-color: #218838;
}

.petition-form input:focus {
    outline: 2px solid #3498db;
    border-color: #3498db;
}

/* Adjustments for smaller screens */
@media (max-width: 900px) {
    nav {
        padding-bottom: 15px;
    }

    h1 {
        padding-top: 0px;
    }

    .subtext p {
        padding-bottom: 30px;
    }

    .text-section {
        order: 1;
        padding-right: 10px;
        padding-left: 10px;
    }

    .petition-form {
        flex-direction: column;
    }

    .visitor-count {
        margin-top: 10px;
    }
}