body {
    font-family: Arial, Helvetica, sans-serif;
    animation: fadeIn 1s ease-in-out;
}

/* BACK TO TOP BUTTON */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

#backToTop.show {
    opacity: 1;
}

#backToTop:hover {
    transform: scale(1.1);
}

#backToTop i {
    font-size: 20px;
    color: #4a73e8;
}

nav {
    font-weight: 900;
}

/* BRAND-HEADER */
.brand-header {
    text-align: center;
    padding: 10px;
    color: #4a73e8;
    font-size: 65px;
    cursor: default;
    user-select: none;
}

.brand-header img {
    width: 50px;
}

/* WEATHER WIDGET */
.weather-widget {
    padding: 50px;
    pointer-events: none;
}

.content-container,
.top-stories {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.content-container {
    padding: 20px 0;
}

/* TOP SECTION */
.top-stories {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding: 80px 0;
}

.top-story,
.category-item,
.latest-news-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #4a73e8;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.top-story:hover,
.category-item:hover,
.latest-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.top-story img,
.category-item img,
.latest-news-item img,
.article-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.top-story img {
    height: 250px;
    object-fit: cover;
}

.top-story-content {
    padding: 15px;
}

.top-story h3,
.category-item h4,
.latest-news-item h4,
.article-content h1 {
    color: #4a73e8;
    font-weight: 900;
}

.top-story h3,
.categories h2,
.latest-news h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.top-story p,
.article-content p,
.latest-news-item p {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.categories {
    margin-top: 40px;
    padding-bottom: 80px;
}

.categories h2,
.latest-news h2 {
    border-bottom: 3px solid #4a73e8;
    padding-bottom: 5px;
    font-weight: 700;
}

.category {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-item {
    flex: 1 1 calc(33.33% - 20px);
    background: #f8f9fa;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-item h4 {
    margin-top: 10px;
    font-size: 1.3em;
}

.category-item p {
    font-weight: 600;
}

.latest-news {
    margin-top: 40px;
}

.latest-news-item {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
    padding: 10px;
}

.latest-news-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.latest-news-item p {
    margin: 5px 0 0;
    font-weight: 400;
}

@media (max-width: 768px) {

    .top-story,
    .category-item {
        flex: 1 1 100%;
    }

    .latest-news-item {
        flex-direction: column;
    }

    .latest-news-item img {
        width: 100%;
    }
}

/* ARTICLE CONTENT */
.article-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-content a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.article-content a:hover {
    background-color: #3a5ec4;
}

/* FOOTER */
footer {
    color: #4a73e8;
    text-align: center;
    user-select: none;
}

footer a {
    color: #4a73e8;
}

.footer-divider {
    border-top: 5px solid;
    margin: 200px 50px 0;
    border-radius: 5px;
}

.footer-logo {
    font-size: 25px;
    font-weight: 900;
    cursor: default;
}

.footer-logo img {
    width: 50px;
    padding-top: 50px;
}

.footer-links {
    font-size: 20px;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3a5ec4;
    text-decoration: underline;
}

.footer-social i {
    font-size: 30px;
    padding: 10px;
    margin-bottom: 50px;
    transition: transform 0.3s ease;
}

.footer-social a:hover i {
    transform: scale(1.2);
    color: #3a5ec4;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}