
:root {
    --text-main: #000000;
    --white: #ffffff;

    --font-default: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-heading: 'Roboto', cursive;

    --unreadable-blue: #6066bd;
    --unappealing-purple: #9544ad;
}

* {
    box-sizing: border-box;
}

html {
    font-family: var(--font-default);
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

body {
    margin: 0;
}


img {
    max-width: 100%;
}

.container {
    padding: 0 0.5rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--unappealing-purple);
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--unreadable-blue);
}

h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--unappealing-purple);
}

header {
    background: var(--unappealing-purple);
    color: var(--white);
    padding: 4rem 0;
}

header p.lead {
    font-size: 2rem;
    font-weight: bold;
    font-variant: small-caps;
}

header p.sub {
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.33;
}

footer {
    background-color: var(--unappealing-purple);
    color: var(--white);
    padding: 4rem 0;
    margin-top: 4rem;
}

header p, footer p {
    margin: 0;
    font-family: var(--font-heading);
}

/* navigation */
nav {
    background-color: var(--unreadable-blue);
    color: var(--unappealing-purple);
    padding: 1rem;
}

nav ul {
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style-type: none;
    display: inline-block;
}

nav ul li::after {
    content: "\1f911";
}

nav ul li:last-child::after {
    content: "";
}

nav ul li a {
    color: var(--white);
}

/* content */
.related-panel h3 {
    text-align: center;
}
.related-panel img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.klondaika img{
    width: 50%;
    height: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* title  image */
article figure {
    display: block;
    width: 100%;
    margin: 0;
    position: relative;
}

article figure img {
    display: block;
    width: 100%;
}

article figure figcaption {
    position: absolute;
    left: 0;
    bottom: 0;

    display: block;
    width: 100%;
    padding: 0.5rem 1rem;

    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-family: var(--font-heading);
}

/* tables */
table {
    border-collapse:  collapse;
    border: 1px solid var(--unreadable-blue);
    width: 100%;
}

table th, table td {
    border-width: 0;
}

table tr th, table tr td {
    border-bottom: 1px solid var(--unappealing-purple);
    border-right: 1px solid var(--unappealing-purple);
    padding: 0.25rem 0.5rem;
}

table tr th:last-child, table tr td:last-child {
    border-right: none;
}

table tr:last-child th, table tr:last-child td {
    border-bottom: none;
}

table tr th {
    text-align: left;
    background-color: var(--unappealing-purple);
    color: var(--white);
}

table tr:nth-of-type(odd) td {
    background-color: var(--unappealing-purple);
    color: var(--white);
}


@media screen and (min-width: 992px) {

    html {
        font-size: 16px;
    }

    main {
        padding: 0;
    }

    .container {
        display: block;
        width: 992px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    /* flexbox */
    .flexbox-columns {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
    }

    .flexbox-columns > article {
        flex: 2;
    }
    .flexbox-columns > aside {
        flex: 1;
    }

    /* grid container */
    .related-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 1rem;
        row-gap: 1rem;
    }

    /* table */
    table tr:hover td {
        background-color: var(--unappealing-purple);
        color: var(--white);
    }

    table tr:nth-of-type(odd):hover td {
        background-color: var(--unreadable-blue);
        color: var(--white);
      }
    

}