@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}

header {
    background-color: #1a202c;
    padding: 20px 0;
    color: #fff;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: center;
    background-color: #2d3748;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    color: #cbd5e0;
    padding: 10px 20px;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
}

nav a:hover, nav a:focus {
    color: #fff;
    background-color: #4a5568;
}

section {
    padding: 40px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background-color: #1a202c;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Form styles */
form {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

input, textarea, button {
    width: calc(100% - 24px); /* Adjust width for padding */
    padding: 12px;
    margin: 8px 0;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box; /* Include padding and border in width and height */
}

textarea {
    height: 120px; /* Adjust height for text area */
    resize: vertical; /* Allow vertical resizing only */
}

input:focus, button:focus {
    border-color: #cbd5e0;
    outline: none;
}

button {
    background-color: #2d3748;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4a5568;
}

.thanks-message {
    color: #48bb78;
    font-weight: bold;
    margin-top: 10px;
    display: none;
}

.show-thanks-message {
    display: block;
}

/* Article styles */
#article-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.article-container {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(100% - 40px);
    max-width: 350px;
}

.article-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 600px) {
    .article-container {
        width: calc(50% - 40px);
    }
}

/* Typography */
h1, h2, h3 {
    color: #2d3748;
}

p {
    color: #4a5568;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    nav a {
        margin-bottom: 5px;
    }
}
