/* Reset padding */
body,
html {
    padding: 0px;
    margin: 0px
}

/* Menu style */
nav {
    padding-top: 10px;
    overflow: hidden;
    text-align: center;
    width: 100%;

    display: inline-block;
    background: black;
}

nav a {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    font-family: Arial, Helvetica, sans-serif;

    color: #f2f2f2;

    float: left;
    display: block;

    text-align: center;
    padding: 14px 30px;
    text-decoration: none;
}

nav a:hover,
nav a:focus,
nav a:focus-visible {
    background: #d0d0d0;
    color: black;
}

#current_tab {
    background: #ddd;
    color: black
}

/* Main text style*/
main {
    background: #ddd;
}

.main_text {
    background-color: rgb(199, 207, 207);
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
    overflow: auto;
}

.main_text>iframe {
    margin-left: 20px;
}

section {
    margin-top: 30px
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: medium;

    text-indent: 20px;
    margin-bottom: 15px;
    line-height: 25px;
}

h1,
h2,
h3 {
    font-family: "Times New Roman", serif;
    text-align: center;
}

footer {
    background-color: rgb(167, 219, 172);
    text-align: center;
}

/* List Decoration */
ul {
    list-style-type: disc
}

ul li p {
    text-indent: 10px;
}

/* Media */
table {
    margin-left: auto;
    margin-right: auto;
}

.image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 5px;
    border: 2px solid #ccc;
    object-fit: cover;
    height: auto;
    max-height: 300px;
}

.wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    aspect-ratio: 16 / 9;
}

.wrap iframe {
    position: absolute;
    width: 100%;
    height: 100%
}

.wrap iframe:focus {
    outline: 3px solid #1a73e8;
}

.yt_video {
    display: block;
    border-radius: 5px;
    border: 0px
}

.video_text {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.figcaption {
    text-align: center;
    margin-top: 10px;
}

/* Positioning */
#container {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 100vh;
}

header {
    background: #225667;
    color: rgb(234, 234, 234);
    text-align: center;

    padding: 10px;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

nav {
    position: static;
    display: flex;
    justify-content: center;
}

main {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

article {
    width: 100%;
}

.image_row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Normal size (Computer probably) */
@media (min-width: 1200px) {
    article {
        /* Some space for ads (trust) */
        max-width: 80%;
    }
}

/* Accessibility */
a:focus-visible {
    outline: 3px solid rgb(63, 133, 255);
}


#skip-link {
    position: absolute;
    /* Hide it by placing outside of the human sight */
    top: -40px;
    left: 10px;
    background: black;
    border-radius: 3px;
    color: white;
    padding: 8px;
    z-index: 69;
}

/* Only show when focused */
#skip-link:focus {
    top: 10px;
}

/* Tablet size */
@media (max-width: 900px) {

    header {
        font-size: 22px;
    }

    nav {
        padding-top: 0px;
    }

    nav a {
        padding: 20px 15px;
        font-size: 20px;
        border-radius: 0px;
    }

    p {
        font-size: large;
    }

    .video_text {
        grid-template-columns: 1fr
    }
}

/* Phone size */
@media (max-width: 600px) {

    header {
        font-size: 20px;
        padding: 15px;
    }

    nav {
        flex-direction: column;
        align-items: stretch
    }

    nav a {
        float: none;
        width: 100%
    }

    main {
        padding: 10px;
    }

    .main_text {
        margin: 5px;
        padding: 10px;
    }

    p {
        font-size: large;
        line-height: 1.5;
        text-indent: 10px;
    }
}

/* Print */
@media print {

    body {
        background: white;
        color: black;
    }

    h1,
    h2,
    h3 {
        font-family: Arial, sans-serif;
    }

    p {
        font-family: "Times New Roman", serif;
    }

    nav,
    iframe,
    figure,
    footer {
        display: none;
    }
}