/* styles.css */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaeaea;
    color: #333;
}

header {
    background-color: #2e3e4e;
    padding: 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: center;
    background-color: #1f2b37;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin: 0 15px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff7f50;
}

section {
    padding: 40px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

footer {
    background-color: #2e3e4e;
    color: #fff;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

form {
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #2e3e4e;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #ff7f50;
}

button {
    background-color: #ff7f50;
    color: #fff;
    padding: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e74c3c;
}

.thanks-message {
    display: none;
    color: #ff7f50;
    font-weight: bold;
    margin-top: 10px;
    transition: opacity 0.5s ease;
}

.show-thanks-message {
    display: block;
}

article {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

h2 {
    color: #2e3e4e;
}

p {
    color: #555;
}

#article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.article-container:hover {
    transform: translateY(-5px);
}

.article-container h3 {
    color: #ff7f50;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.article-container p {
    color: #666;
    font-size: 1.1em;
}
