@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap"');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"');

* {
    margin: 0;
    padding: 0;
}

:root {
    --dark-mode-header-color: #E8E0E0;
    --main-background: #151122;;
}

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

.page-wrapper {
    margin: 1rem;
}

nav {
    padding-left: 2rem;
    padding-bottom: 2.5rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
}

nav h2 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 900;
    font-size: 4rem;
}

nav h2:nth-of-type(2) {
    position: relative;
    left: 0.3rem;
    line-height: 0.3rem;
}

nav ul {
    list-style-type: none;
    padding-left: 0;
}

nav a {
    text-decoration: none;
    color: var(--dark-mode-header-color);
}

nav li {
    position: relative;
}

nav li::before, nav li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0.3rem;
    background-color: var(--dark-mode-header-color);
    border-radius: 3px;
    transition: width 0.7s ease;
}

nav li::before {
    top: -0.5rem;
    left: 0;
}

nav li::after {
    bottom: -0.5rem;
    right: 0;
}

nav li:hover::before, nav li:hover::after {
    width: 100%;
}

nav, .topic h2, footer p, .in-progress-warning {
    color: var(--dark-mode-header-color);
}

header, .sub-topic {
    background-color: rgb(191, 191, 197);
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -1rem;
    padding: 2rem 0;
}

header h1 {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
}

main {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    justify-content: center;
    align-items: start;
    padding: 1rem;
}

.topic, .sub-topic {
    flex-basis: calc((100%/3) - 3rem);
    text-align: center;
    border-radius: 63px;
    padding: 2rem 1rem;
}

.topic h2, .sub-topic h2, .sub-topic h3 {
    font-family: Montserrat, sans-serif;
}

.topic h2, .sub-topic h2 {
    font-weight: bold;
}

.sub-topic h3 {
    font-weight: normal;
    margin-bottom: 1rem;
}

.topic {
    background-color: #37314B;
    border: 1px solid #52436F;
    border-radius: 63px;
    box-shadow: 0 -4px 4px 0 #EBE7F2, 0 8px 4px 0 rgba(240, 231, 231, 0.25);;
    cursor: pointer;
    overflow: hidden;
    height: 75vh;
}

.topic h2 {
    font-size: 2.5rem;
    padding-bottom: 0.8em;
}

.topic img {
    width: 100%;
}

.sub-topic {
    align-self: stretch;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    padding: 2rem 1rem;
}

p, li {
    font-family: Hind, sans-serif;
}

footer {
    text-align: center;
    padding: 2rem 0;
}

.in-progress-warning {
    text-align: center;
}


@media screen and (max-width: 992px){
    .topic, .sub-topic {
        flex-basis: calc((100%/2) - 3rem);
    }
}

@media screen and (max-width: 768px){
    header h1 {
        text-align: center;
    }
}

@media screen and (max-width: 600px){
    header h1 {
        font-size: 2.5rem;
    }

    .topic, .sub-topic {
        flex-basis: calc(100% - 2rem);
    }
}



