/** Fonts Root **/
@font-face {
    font-family: Spaced;
    src: url(../fonts/Spaced.otf);
}

@font-face {
    font-family: SpacePower;
    src: url(../fonts/SpacePower.otf);
}

@font-face {
    font-family: SquareSpace;
    src: url(../fonts/Square\ Space\ Free.ttf);
}

/** Variables **/
:root {
    --font1: "Spaced";
    --font2: "SpacePower";
    --font3: "SquareSpace";
}

/** Generals **/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    background-color: black;
    color: white;
    font: 1.4em/1.8 "var(--font1)";
    margin: 0;
    padding: 0;
    background-image: url("https://images.unsplash.com/photo-1514669362126-0d8bb38261a3?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80");
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1 {
    font-size: 8vw;
    line-height: 1;
    font-family: var(--font2);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5em;
    line-height: 1.2;
    font-family: var(--font1);
    margin-bottom: 0.5em;
}

p {
    margin-top: 0;
    font-family: var(--font3);
}

/** Header styles **/
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 3em;
    font-family: var(--font1);
}

.navigation {
    font-family: var(--font1);
}

.navigation ul {
    list-style: none;
    padding-left: 0;
    justify-content: center;
}

.navigation a {
    color: inherit;
    text-decoration: none;
    display: grid;
    grid-column: 2 / -2;
    justify-content: center;
    padding: 1rem 2rem;
}

.navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-title {
    max-width: auto;
    margin: 0 auto;
    text-align: center;
    padding-top: 0;
    margin-top: 4rem;
}

.intro {
    max-width: auto;
    margin: 0 auto;
    text-align: center;
}

.container {
    padding: 4em 2em;
    display: block;
    justify-content: center;
}

.civilization {
    max-width: 20em;
    margin: 1em;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    display: block;
    margin-bottom: 10rem;
}

.civilization-image {
    border-radius: 10px;
    overflow: hidden;
}

.civilization-image img {
    object-fit: cover;
    display: block;
}

.civilization-content {
    border-radius: 10px;
    padding: 1em 1em 0;
    flex-grow: 1;
    display: block;
}

.civilization-header {
    border-bottom: 1px solid rgba(0, 78, 146, 0.2);
    margin-bottom: 1em;
    display: block;
    justify-content: space-between;
    align-items: baseline;
}

.civilization-name {
    margin: 0;
    color: aliceblue;
    font-style: italic;
}

.civilization-info {
    border-radius: 10px;
    font-size: 0.8em;
    line-height: 1.5;
    flex-grow: 1;
}

.civilization-footer {
    background-color: black;
    color: white;
    text-align: center;
    margin-right: -1em;
    margin-left: -1em;
    margin-top: 1em;
    padding: 0.5em;
    border-radius: 0 0 10px 10px;
}

.conclusion {
    max-width: auto;
    margin: 0 auto;
    text-align: center;
}

.footer {
    display: grid;
    grid-template-rows: 3;
}

.footer-text {
    grid-auto-flow: dense;
    justify-content: center;
    text-align: center;
}

.ft-text {
    text-decoration: underline;
}

.footer-link {
    text-align: center;
}

.link-text {
    text-decoration: underline;
}

.footer-link ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    list-style: none;
}

.footer-link a {
    color: darkgoldenrod;
    text-decoration: none;
}

.footer-link a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

.social-icons-area {
    text-align: center;
    text-decoration: underline;
}

.social-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    padding-top: 1em;
}

.social-icons ul {
    padding-left: 0;
}

.social-icons a {
    filter: brightness(0) invert(1);
}

/** Media queries **/
@media (min-width: 37.5em) {
    body {
        background-size: 100% 100%;
        background-repeat: no-repeat;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        font-size: 1.4em;
    }
}

@media (min-width: 37.5em) {
    h1 {
        font-size: 6vw;
        line-height: 1;
        font-family: var(--font2);
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 3em;
        line-height: 1.2;
        font-family: var(--font1);
        margin-bottom: 0.5em;
    }

    p {
        margin-top: 0;
        font-family: var(--font3);
    }
}

@media (min-width: 37.5em) {
    .logo {
        position: absolute;
        display: flex;
        flex-direction: row;
        color: aliceblue;
        font-size: 3rem;
        margin-top: -0.5rem;
        padding: 0rem 5rem;
        z-index: 2;
    }

    .navigation {
        position: relative;
        color: aliceblue;
        background-color: rgba(0, 0, 0, 0.616);
        padding: 0 1.5rem;
        width: 100%;
        z-index: 1;
    }

    .navigation ul {
        list-style: none;
        padding-left: 0;
        display: flex;
        justify-content: end;
        margin-right: 3rem;
    }

    .navigation a {
        color: inherit;
        text-decoration: none;
        display: block;
        padding: 1rem 2rem;
    }

    .navigation a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .page-title {
        max-width: auto;
        margin: 0 auto;
        text-align: center;
        padding-top: 0;
        margin-top: 4rem;
    }

    .intro {
        max-width: auto;
        margin: 0 auto;
        text-align: center;
    }
    
    .container {
        padding: 4em 2em;
        display: flex;
        justify-content: center;
    }
    
    .civilization {
        max-width: 20em;
        margin: 1em;
        border-radius: 10px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
    }
    
    .civilization-image {
        border-radius: 10px;
        overflow: hidden;
    }
    
    .civilization-image img {
        object-fit: cover;
        display: block;
    }
    
    .civilization-content {
        border-radius: 10px;
        padding: 1em 1em 0;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .civilization-header {
        border-bottom: 1px solid rgba(0, 78, 146, 0.2);
        margin-bottom: 1em;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
    
    .civilization-name {
        margin: 0;
        color: aliceblue;
        font-style: italic;
    }
    
    .civilization-info {
        border-radius: 10px;
        font-size: 0.8em;
        line-height: 1.5;
        flex-grow: 1;
    }
    
    .civilization-footer {
        background-color: black;
        color: white;
        text-align: center;
        margin-right: -1em;
        margin-left: -1em;
        margin-top: 1em;
        padding: 0.5em;
        border-radius: 0 0 10px 10px;
    }
    
    .conclusion {
        max-width: 1000px;
        margin: 0 auto;
        text-align: center;
    }
    
}

@media (min-width: 40em) {
    .section-image img {
        height: auto;
        width: 100%;
    }
}

@media (min-heigth: 37.5em) {
    body {
        display: grid;
        grid-template-columns: var(--cols);
        grid-template-rows: 100vh 1fr auto;
    }
}

@media (min-width: 45em) {
    .footer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0px 20px;
        grid-auto-flow: row;
        padding: 2em;
        background-color: black;
    }

    .footer-text {
        color: aliceblue;
        line-height: 1.5;
    }

    .footer-link {
        text-align: center;
        color: aliceblue;
        padding: 0 1.5rem;
    }

    .footer-link ul {
        list-style: none;
        padding-left: 0;
    }

    .footer-link a {
        color: inherit;
        text-decoration: none;
        display: inline-block;
        padding: 1rem 2rem;
    }

    .footer-link a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 1rem 2rem;
    }

    .social-icons-area {
        filter: brightness(0) invert(1);
        line-height: 1.5;
        text-align: center;
        color: aliceblue;
        padding: 0 1.5rem;
    }

    .social-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        list-style: none;
    }

    .social-icons ul {
        padding-left: 0;
    }

    .social-icons a {
        color: inherit;
        text-decoration: none;
        display: inline-block;
        padding: 1rem 2rem;
    }

    .social-icons a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}