:root {
    --background: #161E22;
    --primary-text-theme-color: #6a95ce;
    --dark-box-shadow:  0 20px 30px rgba(0,0,0,0.2), 0 -10px 20px rgba(0,0,0,0.4);
    --accent-color: #7196cf;
    --link-color: #75ee89;
}

@font-face {
    font-family: Montserrat;
    src: url("fonts/Montserrat/Montserrat-Light.ttf");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin:0;
    padding:0;
    font-family: Montserrat;
    color: #eee;
}

body {
    background-color: var(--background);
}

.container {
    margin: 20px;
    padding: 20px;
    background-color: var(--background);
    display: flex;
    flex-direction: column;   
}

.top-section p {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

h1 {
    color:rgb(105, 113, 133);
    margin-bottom: 10px;
}

h3 {
    color: var(--accent-color);
}

a, a:visited {
    color:var(--link-color);
    text-decoration: none;
}

.top-section a:hover {
    text-decoration: underline;
}

.article-container {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    gap: 30px;
    grid-auto-flow: row;
    border: 1px solid #1a2a42;
    border-radius: 7px;
    padding: 30px;
}

.article-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 350px;
    width: 350px;
    height: 400px;
    border: 2px solid transparent;
    border-radius: 5px 5px 0px 0px;
    overflow:hidden;
    background-color: var(--background);
    box-shadow: var(--dark-box-shadow);
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.5s;
}

.article-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent-color)
}

.article-image {
    width: 350px;
}

.details {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    padding: 10px;
} 

.article-card-footer {
    width: auto;
    padding-top: 7px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

