/* Reset default styles for box-model */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set default font for the whole document */
body {
    font-family: 'Nunito', sans-serif;
}

/* Customize the main container and set the dimensions for full screen */
.container {
    /* temp property */
    /* background-color: lightgray; */

    width: 100dvw;
    height: 100dvh;

    display: flex;
    flex-direction: column;
}

/* Common padding to major sections of the page */
.header, .main, .footer {
    padding: 20px;
}

/* Style header */
.header {
    position: fixed;
    z-index: 1000;
    background-color: #2c3f50;
    width: 100%;
    flex-basis: 5%;

    display: flex;
    justify-content: space-between;
}

/* Brand styling  */
.header .brand {
    color: #fff;
    font-size: 20px;
    font-weight: bolder;
}

/* navbar styling */
.header .navbar {
    display: flex;
    gap: 20px;
}

/* Style the links in navbar */
.navbar a {
    text-decoration: none;
    color: #ffffff;
}

/* Modify the state of the links when they are hovered over */
.navbar a:hover {
     color: rgb(135, 133, 252);
}

/* Style footer section */
.footer {
    background-color: #2c3f50;
    flex-basis: 7%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

/* change color and position of footer elements */
.footer div {
    color: #fff;
    font-size: 12px;
}

/* style main section */
.main {
    flex: 1;
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

/* style section */
.section {
    flex: 2;
    padding: 20px 0 20px 20px;
}

/* style the article card */
.article {
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-bottom: 50px;
}

/* article header */
.article h2 {
    margin-bottom: 10px;
    font-weight: bolder;
}

/* article paragraphs */
.article p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #555;
    line-height: 1.9rem;
    font-size: 20px;
}

/* article image */
.article .image {
    margin-bottom: 10px;
    aspect-ratio: 16/9;
    flex: 1;
}

/* style image so it takes the whole width of the container */
.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

/* style the sidebar */
.sidebar {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 20px 20px 0;
}

.sidebar .card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}