html {
    font-size: 62.5%;
}

/* Progressively Increasing Text Size */

/* @media (min-width: 1600px) { html { font-size: 90%; } }
@media (min-width: 2400px) { html { font-size: 125%; } } */

body {
    background-color: white;
    color: black;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

a img {
    border-style: none;
}

header, nav, section, footer {
    display: block;
}

header {
    position: relative;
}

/* Flag :-) */

header:before {
    background: url(../images/style/flag.png) center top no-repeat;
    background-size: 32px 16px;
    content: 'Tomax UK';
    color: white;
    font-size: 8px;
    margin-top: 8px;
    opacity: 0.75;
    padding-top: 20px;
    position: absolute;
    text-align: center;
    right: 0;
    top: 0;
    width: 64px;
    white-space: nowrap;
    z-index: 1;
}

/* Logo */

header .logo {
    background-color: hsl(225, 50%, 19%);
    margin-bottom: 40px;
    position: relative;
    height: 84px;
}

header .logo > * {
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 197px;
    height: 64px;
}

header .logo > a {
    overflow: hidden;
    text-indent: 197px;
    white-space: nowrap;
}

/* Navigation */

.main-nav a.main-nav-link {
    border-style: none;
}

.main-nav [data-suffix]:after {
    content: ' ' attr(data-suffix);
}

.main-nav [data-prefix]:before {
    content: attr(data-prefix) ' ';
}

.js .main-nav {
    background-color: hsla(190, 100%, 40%, 0.6);
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 20px;
    /* Remove from document flow only if JavaScript is enabled */
    position: absolute;
    transition-duration: 0.25s;
    transition-property: height, padding-top;
    transition-timing-function: ease-out;
    width: 100%;
    z-index: 3;
}

.js .main-nav-hidden {
    padding-top: 0;
    padding-bottom: 0;
    height: 0 !important;
}

.main-nav ul {
    background-color: white;
    border-radius: 10px;
    font-size: 1.4rem;
    list-style-type: none;
    margin: 0 5%;
    overflow: hidden;
    padding: 0;
}

.main-nav li {
    display: block;
    margin: 0;
    padding: 0;
}

.main-nav a {
    border-color: hsl(225, 13%, 75%);
    border-style: solid none none;
    border-width: 1px;
    color: hsl(225, 50%, 19%);
    display: block;
    padding: 10px 15px;
    text-decoration: none;
}

/* .main-nav a:hover {
    background-color: hsl(225, 50%, 25%);
    color: white;
} */

/* 
.main-nav > ul > li:last-child > a {
    border-style: solid none;
}
 */

.main-nav .selected-page > a {
    border-color: transparent;
    border-style: solid;
    border-width: 10px 15px;
    border-image: url(../images/style/selected-page-border.svg) 16 24 stretch;
    padding: 0;
}

.main-nav > ul > .selected-page:not(.submenu-container) + li > a {
    /* Remove border of selected link's next sibling */
    border-top-style: none;
}

.main-nav .home-link {
    display: none;
}

/* Extra Nav on Homepage */

.extra-nav ul {
    background-color: hsl(225, 30%, 15%);
    border-radius: 10px;
    list-style-type: none;
    margin: 2.7rem 0 0;
    padding: 0;
    text-align: center;
}

.extra-nav ul li {
    display: inline-block;
    margin: 0.5rem 0.25rem;
    padding: 0;
}

.extra-nav ul li a {
    border-color: transparent;
    border-style: solid;
    border-width: 10px 15px;
    border-image: url(../images/style/selected-page-border.svg) 16 24 stretch;
    color: white;
    display: inline-block;
    font-size: smaller;
    text-decoration: none;
}

.extra-nav ul li a:hover {
    color: hsl(188, 75%, 40%);
}

/* Submenu */

.main-nav .submenu {
    color: hsl(225, 25%, 50%);
    margin: 0 2em;
    padding: 0;
}

.main-nav .submenu a {
    color: hsl(225, 25%, 50%);
    padding-right: 0;
    padding-left: 0;
}

/*  .main-nav .submenu a:hover {
    color: white;
} */

.menu-toggle {
    background: url(../images/style/hamburger.svg) right center no-repeat;
    border-style: none;
    color: hsl(225, 100%, 13%);
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin: 0;
    padding: 0 30px 0 0;
    position: absolute;
    text-transform: uppercase;
    right: 5%;
    bottom: -38px;
    height: 36px;
    line-height: 36px;
}

.menu-toggle:focus {
    background-image: url(../images/style/hamburger-focussed.svg);
    color: gray;
    outline: none;
}

/* Splash Image */

.splash-image, .slide {
    padding-bottom: 37.5%;
    height: 0;
}

.splash-image {
    background-image: -webkit-linear-gradient(top, white, hsl(210, 50%, 88%) 75%);
    background-image: linear-gradient(to bottom, white, hsl(210, 50%, 88%) 75%);
    overflow: hidden;
}

.splash-image img {
    display: block;
    margin-left: -25%;
    width: 150%;
    height: auto;
}

/* Main Content */

.main {
    padding: 0 5% 3.6rem;
}

.main h1, .main h2 {
    font-family: 'Ubuntu Light', 'Ubuntu', sans-serif;
}

.main h1 {
    background-color: white;
    border-radius: 10px 10px 0 0;
    color: hsl(225, 50%, 31%);
    display: inline-block;
    font-size: 3rem;
    margin: -0.75em 0 0 -2.8%;
    padding: 0.2em 2.7%;
    position: relative;
    z-index: 1;
}

.main h2, .main a, body > footer a {
    color: hsl(195, 63%, 44%);
}

.main h2 {
    font-size: 1.8rem;
    margin-top: 3.6rem;
}

.main p, .main ul {
    font-size: 1.4rem;
    line-height: 1.5;
}

.main p, .main li {
    margin-bottom: 1rem;
}

.lone-link {
    display: block;
    font-size: 1.2rem;
}

.content-logo {
    background-color: hsl(210, 50%, 94%);
    border-radius: 2px;
    clear: both;
    margin: 2rem -5px;
    padding: 5px;
}

.content-logo img {
    display: block;
    width: 25%;
    min-width: 120px;
    max-width: 240px;
}

.content-image img {
    display: block;
    width: 100%;
}

.embedded-video-player {
    clear: both;
    margin: 4.8rem 0 1.2rem;
    padding-bottom: 56.25%;
    position: relative;
    width: 100%;
    height: 0;
}

.embedded-video-player iframe {
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Footer */

body > footer {
    font-size: 1.2rem;
    padding: 1.2rem 5%;
}

.footer-panel {
    background-color: hsla(190, 100%, 40%, 0.9);
    position: relative;
}

.js .footer-panel {
    padding: 1rem 5%;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity 0.5s;
    z-index: 2;
}

.js .footer-panel-hidden {
    opacity: 0;
}

.footer-panel a {
    color: white;
}

.footer-panel svg {
    display: inline-block;
}

.scroll-progress-shadow {
    stroke: hsl(195, 50%, 31%);
    stroke-width: 2;
}

.scroll-progress-bar {
    stroke: hsl(195, 50%, 88%);
    stroke-linecap: round;
    stroke-width: 4;
}

.scroll-to-top {
    display: inline-block;
    font-size: 1.2rem;
    vertical-align: top;
    height: 50px;
    line-height: 50px;
}

.footer-connect {
    margin-top: -1rem;
    position: absolute;
    top: 50%;
    right: 5%;
    text-align: right;
}

.footer-social-media a {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    margin: 0 0 0.5rem 1rem;
    overflow: hidden;
    text-indent: 2rem;
    white-space: nowrap;
    width: 2rem;
    height: 2rem;
}

.linkedin-icon {
    background-image: url(../images/social-media/linkedin.png);
}

.facebook-icon {
    background-image: url(../images/social-media/facebook.png);
}

.twitter-icon {
    background-image: url(../images/social-media/twitter.png);
}

.footer-contact {
    position: absolute;
    top: 0;
    right: 10rem;
    white-space: nowrap;
    min-height: 2rem;
    line-height: 2rem;
}

.copyright {
    clear: both;
    display: block;
}