:root {
    /* Theme colors */
    --header-bg-color: #000000;
    --logo-text-color: #fdd052;
    --menu-bg-color: #1c2022;
    --menu-text-color: #ffffff;
    --menu-hover-text-color: #fdd052;
    --menu-hover-bg-color: hsla(0, 0%, 100%, 0.05);
    --submenu-bg-color: #1c2022;
    --submenu-border-color: #fdd052;
    --hamburger-color: #ffffff;
    --footer-bg-color: #000000;
    --footbar-text-color: #ffffff;
    --footbar-hover-text-color: #fdd052;
    --copyright-text-color: #8beeff;
    --image-border-color: #fdd052;
    --image-border-hover-color: #01b34b;
    --imortant-text-underline-color: #ff3636;
    --aslosee-underline-color: #fdd052;
    --references-underline-color: #01b34b;
    --link-text-color: #000000;
    --link-underline-color: #3258ff;
    --link-underline-hover-color: #fdd052;
    --list-text-color: #000000;
    --list-circle-bg-color: #fdd052;
    --list-circle-border-color: #000000;
    --quote-separator-text-color: #01b34b;
    --h1-text-color: #000000;
    --h2-text-color: #000000;
    --table-border-color: #999999;
    --video-border-color: #ff3737;
    --video-border-hover-color: #01b34b;

    /* Boxing */
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 24px;
}

/* Page content */
main {
    padding: 32px;
}

main p {
    margin-bottom: 24px;
}

main ul {
    list-style-type: none;
    margin-bottom: 24px;
}

main ul li {
    font-size: 16px;
    color: var(--list-text-color);
    padding: 6px;
}

main ul li:before {
    background-color: var(--list-circle-bg-color);
    border-radius: 50%;
    border: 3px solid var(--list-circle-border-color);
    content: "";
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 2px;
    height: 12px;
    width: 12px;
}

main ol {
    counter-reset: item;
    margin-bottom: 0;
}

main ol li {
    font-size: 16px;
    color: var(--list-text-color);
    display: block;
}

main ol ol li {
    padding-left: 30px;
}

main ol li:before {
    content: counters(item, ".") ") ";
    counter-increment: item;
}

/* Links */
main a,
main a:link,
main a:visited,
main a:active {
    color: var(--link-text-color);
    text-decoration: none;
    border-bottom: var(--link-underline-color) 2px solid;
    word-break: break-word;
}

main a:hover {
    border-bottom: var(--link-underline-hover-color) 2px solid;
}

h1 {
    font-size: 20px;
    margin-bottom: 34px;
    color: var(--h1-text-color);
}

h1 a:link {
    border: 0;
}

h2 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--h2-text-color);
}

/* Header */
header {
    background: var(--header-bg-color);
    padding: 0 0 0 22px;
    top: 0;
}

.logo {
    color: var(--logo-text-color);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* Main navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    flex-direction: row;
}

.menu li {
    list-style: none;
}

.menu li a {
    display: block;
    text-decoration: none;
    color: var(--menu-text-color);
    padding: 16px 24px;
    font-size: 16px;
}

/* Styling submenu */
.has-dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 56px;
    left: 0;
    background-color: var(--submenu-bg-color);
    white-space: nowrap;
    padding: 16px 0;
    width: 260px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top center;
}

.submenu>li>a {
    padding: 12px 24px;
    word-break: break-all;
}

.submenu .submenu {
    left: -100%;
    top: 0;
}

.submenu .submenu .submenu {
    left: -100%;
    top: 0;
}

.menu>li:hover>a,
.submenu>li:hover>a {
    background-color: var(--menu-hover-bg-color);
    color: var(--menu-hover-text-color);
}

.menu>li:hover>a {
    background-color: var(--menu-hover-bg-color);
}

/* Arrows */
.arrow {
    width: 8px;
    height: 8px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    border-left: 2.4px solid currentColor;
    border-bottom: 2.4px solid currentColor;
    transform: rotate(-45deg);
    margin-top: -4px;
    transition: transform 100ms ease-in-out;
}

/* Reveal */
.menu>li:hover>a+.submenu,
.submenu>li:hover>a+.submenu {
    opacity: 1;
    transform: scaleY(1);
}

/* Animate arrows */
.menu>li:hover>a>.arrow,
.submenu>li:hover>a>.arrow {
    transform: rotate(225deg);
}

/* Important text */
.important {
    font-size: 16px;
    text-decoration: underline;
    text-decoration-color: var(--imortant-text-underline-color);
    text-decoration-style: dashed;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

/* Also see section */
.also-see {
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: var(--aslosee-underline-color);
    text-decoration-thickness: 4px;
}

.also-see+ul {
    margin-bottom: 0;
}

/* References section */
.references {
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: var(--references-underline-color);
    text-decoration-thickness: 4px;
}

/* Image with text section */
.image-with-text {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.image-with-text p {
    margin-bottom: 0;
}

/* Photos section */
.image-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

figure img {
    border: 3px solid var(--image-border-color);
}

figure img:hover {
    border: 3px solid var(--image-border-hover-color);
}

figure a:link {
    border: 0;
}

figcaption {
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    table-layout: fixed;
}

td {
    border: 2px solid var(--table-border-color);
    padding: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.td-center {
    text-align: center;
}

.quote {
    font-style: italic;
}

.quote-separator {
    font-size: 24px;
    color: var(--quote-separator-text-color);
}

.video {
    width: 420px;
    height: 315px;
    border: 2px solid var(--video-border-color);
}

.video:hover {
    border: 2px solid var(--video-border-hover-color);
}

footer {
    width: 100%;
    height: 120px;
    background: var(--footer-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footbar {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footbar a {
    padding: 0 14px 14px 14px;
    text-decoration: none;
    color: var(--footbar-text-color);
    font-size: 16px;
}

.footbar a:hover {
    color: var(--footbar-hover-text-color);
}

.copyright {
    color: var(--copyright-text-color);
    font-size: 16px;
    text-align: center;
    padding: 0 14px;
}

.copyright a {
    text-decoration: none;
    color: var(--copyright-text-color);
    font-size: 16px;
}

.bold {
    font-weight: bold;
}

/* Shadows */
.red-shadow {
    text-shadow: 1px -2px 2px red;
}

.orange-shadow {
    text-shadow: 1px -2px 2px orange;
}

.yellow-shadow {
    text-shadow: 1px -2px 2px yellow;
}

.green-shadow {
    text-shadow: 1px -2px 2px green;
}

.indigo-shadow {
    text-shadow: 1px -2px 2px indigo;
}

.blue-shadow {
    text-shadow: 1px -2px 2px blue;
}

.purple-shadow {
    text-shadow: 1px -2px 2px purple;
}

@media only screen and (max-width: 1260px) {
    .submenu .submenu .submenu {
        left: -100%;
        top: 8px;
    }

    .submenu {
        min-width: 256px;
    }
}

@media only screen and (max-width: 940px) {
    .menu li a {
        font-size: 16px;
    }

    figure img {
        margin: 0 auto;
        max-height: 100%;
        max-width: 100%;
    }

    .image-with-text {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 700px) {
    footer {
        height: 220px;
    }

    .footbar {
        flex-direction: column;
    }

    .footbar a {
        font-size: 16px;
    }

    .copyright {
        font-size: 16px;
    }

    .copyright a {
        font-size: 16px;
    }

    .video {
        width: 100%;
    }
}

@media only screen and (max-width: 1280px) {
    header {
        padding: 19px 22px;
    }

    .menu {
        flex-flow: column;
        position: absolute;
        background: var(--menu-bg-color);
        top: 64px;
        left: 0;
        right: 0;
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top center;
        transition: 200ms transform cubic-bezier(0.36, 0.4, 0.42, 1.48) 100ms, 100ms opacity ease-in-out;
    }

    .menu>li>a {
        font-size: 16px;
        color: var(--menu-text-color);
    }

    .submenu>li>a {
        font-size: 16px;
    }

    .submenu {
        top: 0;
        padding-left: 24px;
        border-left: 2px solid var(--submenu-border-color);
    }

    .submenu .submenu {
        left: 0;
        top: 0;
    }

    .submenu .submenu .submenu {
        left: 0;
        top: 0;
    }

    .menu>li:hover>a+.submenu,
    .submenu>li:hover>a+.submenu {
        position: relative;
    }

    .hamburger {
        width: 25px;
        height: 4px;
        display: block;
        background: var(--hamburger-color);
        position: relative;
        cursor: pointer;
        transition: 0.2s transform ease-in-out;
    }

    .hamburger::after,
    .hamburger::before {
        content: "";
        position: absolute;
        left: 0;
        background: inherit;
        width: inherit;
        height: inherit;
        transition: 0.2s transform ease-in-out;
    }

    .hamburger::after {
        top: 10.5px;
    }

    .hamburger::before {
        bottom: 10.5px;
    }

    .close::after,
    .close::before {
        top: 0;
        transition: 0.2s transform ease-in-out;
    }

    .close::before {
        display: none;
    }

    .close {
        transform: rotate(45deg);
        transition: 0.2s transform ease-in-out;
    }

    .close::after {
        transform: rotate(-90deg);
    }

    /* Reveal menu */
    input[type="checkbox"]:checked+.menu {
        position: absolute;
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Full HD support */
@media only screen and (min-width: 1920px) {
    body {
        font-size: 26px;
        line-height: 34px;
    }

    main {
        padding: 42px;
    }

    main p {
        margin-bottom: 34px;
    }

    main ul {
        list-style-type: none;
        padding-bottom: 34px;
    }

    main ul li {
        font-size: 26px;
        padding: 9px;
    }

    main ul li:before {
        border: 5px solid var(--list-circle-border-color);
        margin-right: 15px;
        margin-bottom: 2px;
        height: 18px;
        width: 18px;
    }

    main ol li {
        font-size: 26px;
    }

    main ol ol li {
        padding-left: 40px;
    }

    main a,
    main a:link,
    main a:visited,
    main a:active {
        border-bottom: var(--link-underline-color) 4px solid;
    }

    main a:hover {
        border-bottom: var(--link-underline-hover-color) 4px solid;
    }

    h1 {
        font-size: 30px;
        margin-bottom: 44px;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 34px;
    }

    h1 a:link {
        border: 0;
    }

    header {
        padding: 0 0 0 32px;
    }

    .logo {
        font-size: 34px;
        font-weight: 700;
        text-decoration: none;
    }

    .menu li a {
        padding: 26px;
        font-size: 26px;
    }

    .submenu {
        top: 85px;
        padding: 26px 0;
        width: 400px;
    }

    .submenu>li>a {
        padding: 32px 44px;
    }

    /* Arrows */
    .arrow {
        width: 10px;
        height: 10px;
    }

    /* Important text */
    .important {
        font-size: 26px;
        text-underline-offset: 12px;
        text-decoration-thickness: 4px;
    }

    /* Also see section */
    .also-see {
        font-size: 30px;
        text-underline-offset: 12px;
        text-decoration-thickness: 8px;
    }

    /* References section */
    .references {
        font-size: 30px;
        text-underline-offset: 12px;
        text-decoration-thickness: 8px;
    }

    /* Image with text section */
    .image-with-text {
        gap: 34px;
        margin-bottom: 34px;
    }

    /* Photos section */
    .image-gallery {
        gap: 34px;
        margin-bottom: 34px;
    }

    figure img {
        border: 5px solid var(--image-border-color);
    }

    figure img:hover {
        border: 5px solid var(--image-border-hover-color);
    }

    figcaption {
        font-size: 24px;
    }

    figure a:link {
        border: 0;
    }

    table {
        margin-bottom: 34px;
    }

    .video {
        width: 620px;
        height: 515px;
        border: 5px solid var(--video-border-color);
    }

    .video:hover {
        border: 5px solid var(--video-border-hover-color);
    }

    .quote-separator {
        font-size: 34px;
    }

    footer {
        height: 180px;
    }

    .footbar a {
        padding: 0 24px 24px 24px;
        font-size: 26px;
    }

    .copyright {
        font-size: 26px;
        padding: 0 24px;
    }

    .copyright a {
        font-size: 26px;
    }
}