﻿/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1A1A1A;

}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*Layout */

.wrapper {
    width: 100vw;
    height: 100vh;
    position: absolute;
    background: url("./img/background.png") no-repeat;
    background-size: cover;
}

.logo {
    width: 152px;
    height: 50px;
    background: url("./img/logo.png") no-repeat;
    margin: 25.703vh 5vw 0 27.031vw;
}

.welcome {
    font-family: "Ubisoft Sans Bold", "Ubisoft Sans Regular", "Arial Black",sans-serif ;
    font-size: 32px;
    line-height: 40px;
    color: #ffffff;
    margin: 9.629vh 5vw 0 27.031vw;
}

.line {
    display: inline-block;
}

.option {
    font-family: "Roboto", "Arial Narrow", "HelveticaNeue", sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin: 2.777vh 5vw 0 27.031vw;
}

.button {
    width: 150px;
    height: 50px;
    display: inline-block;
    float: left;
    font-family: "Ubisoft Sans Bold", "Ubisoft Sans Regular", "Arial Black",sans-serif ;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 2px;
    margin: 20px 70px 20px 0;
    cursor: pointer;
}

.button:hover {
    background: #F2F2F2;
    color: #424242;
    border: 2px solid #ffffff;
    border-radius: 2px;
    cursor: pointer;
}

.button:active {
    background: #ffffff;
}

.button:visited {
    background: #00E676;
    color: #424242;
    border: 2px solid #ffffff;
    border-radius: 2px;
    cursor: pointer;
}

.buttons {
    margin: 6.296vh 5vh 5vh 27.031vw;
}

/*Flags*/

.bel {
    width: 65px;
    height: 56px;
    background: url("./img/bel.png") no-repeat;
    background-size: contain !important;
    display: inline-block;
}

.swi {
    width: 65px;
    height: 33px;
    background: url("./img/swi.png") no-repeat;
    background-size: contain !important;
    display: inline-block;
}

.can {
    width: 65px;
    height: 43px;
    background: url("./img/can.png") no-repeat;
    background-size: contain !important;
    vertical-align: middle;
    display: inline-block;
}

/*Checkbox*/

input[type=checkbox].css-checkbox {
    position:absolute; z-index:-1000; left:-1000px; overflow: hidden; clip: rect(0 0 0 0); height:1px; width:1px; margin:-1px; padding:0; border:0;
}

input[type=checkbox].css-checkbox + label.css-label {
    padding-left:27px;
    height:22px;
    display:inline-block;
    line-height:22px;
    background-repeat:no-repeat;
    background-position: 0 0;
    vertical-align:middle;
    cursor:pointer;
}

input[type=checkbox].css-checkbox:checked + label.css-label {
    background-position: 0 -22px;
}

label.css-label {
    background-image:url("./img/checkbox.png");
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*Animation*/

.fade-in{
    animation: animationFrames ease 1s;  animation-iteration-count: 1;  transform-origin: 50% 50%;  animation-fill-mode:forwards;
    -webkit-animation: animationFrames ease 1s;  -webkit-animation-iteration-count: 1;  -webkit-transform-origin: 50% 50%;  -webkit-animation-fill-mode:forwards;
    -moz-animation: animationFrames ease 1s;  -moz-animation-iteration-count: 1;  -moz-transform-origin: 50% 50%;  -moz-animation-fill-mode:forwards;
    -o-animation: animationFrames ease 1s;  -o-animation-iteration-count: 1;  -o-transform-origin: 50% 50%;  -o-animation-fill-mode:forwards;
    -ms-animation: animationFrames ease 1s;  -ms-animation-iteration-count: 1;  -ms-transform-origin: 50% 50%;  -ms-animation-fill-mode:forwards;
}

@-ms-keyframes animationFrames{
    0% {  opacity:0;  -ms-transform:  translate(0px,-25px)  ;  }
    100% {  opacity:1;  -ms-transform:  translate(0px,0px)  ;  }
}

@keyframes animationFrames{
    0% {  opacity:0;  transform:  translate(0px,-25px)  ;  }
    100% {  opacity:1;  transform:  translate(0px,0px)  ;  }
}

@keyframes animationFrames{
    0% {  opacity:0;  transform:  translate(0px,-25px)  ;  }
    100% {  opacity:1;  transform:  translate(0px,0px)  ;  }
}

@-moz-keyframes animationFrames{
    0% {  opacity:0;  -moz-transform:  translate(0px,-25px)  ;  }
    100% {  opacity:1;  -moz-transform:  translate(0px,0px)  ;  }
}

@-webkit-keyframes animationFrames {
    0% {  opacity:0;  -webkit-transform:  translate(0px,-25px)  ;  }
    100% { opacity:1;  -webkit-transform:  translate(0px,0px)  ;  }
}

@-o-keyframes animationFrames {
    0% {  opacity:0;  -o-transform:  translate(0px,-25px)  ;  }
    100% {  opacity:1;  -o-transform:  translate(0px,0px)  ;  }
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1366px) {
    .welcome {
        font-size: 26px;
    }

    .button {
        font-size: 20px;
    }

    .bel {
        background: url("./img/bel.png") no-repeat;
        height:28px;
        width:33px;
    }

    .swi {
        background: url("./img/swi.png") no-repeat;
        background-size: contain;
        height:17px;
        width:33px;
    }

    .can {
        background: url("./img/can.png") no-repeat;
        background-size: contain;
        height:23px;
        width:33px;
    }

    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (max-width: 1024px) {
    .welcome {
        font-size: 22px;
        line-height: 26px;
    }

    .option {
        font-size: 14px;
    }

    .button {
        font-size: 18px;
        width: 130px;
    }

    .logo {
        margin: 15.703vh 5vw 0 27.031vw;
    }

    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (max-width: 640px) {

    .option {
        font-size: 12px;
    }

    .button {
        font-size: 16px;
    }

    .logo {
        margin: 10.703vh 5vw 0 24.031vw;
    }


    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
