/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */


/*
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.3;
}

p,
ul,
li {
    max-height: 999999px;
}


/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

::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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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


/*
 * Remove default fieldset styles.
 */

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


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

textarea {
    resize: vertical;
}


/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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


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

a:link,
a:visited {
    color: #2a5386;
    text-decoration: underline;
}

a:hover,
a:active {
    color: #3367a8;
    text-decoration: underline;
}

body {
    font-family: 'PT Sans';
    text-align: center;
    color: #333;
}


/*header {height: 180px;}*/


/* header {height: 150px;border-bottom: 1px solid #6090cd;box-shadow: 0 1px 0 #406dad;background: #406dad;} */


/* header {
  background-color: #3367a8;
  background-image: -moz-linear-gradient(top, #2a5386, #3367a8);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2a5386), to(#3367a8));
  background-image: -webkit-linear-gradient(top, #2a5386, #3367a8);
  background-image: -o-linear-gradient(top, #2a5386, #3367a8);
  background-image: linear-gradient(to bottom, #2a5386, #3367a8);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2a5386', endColorstr='#ff3367a8', GradientType=0);
} */


/* .contact_info {position: absolute;right: 15px;top: 20px;color: #f0f0f0;text-shadow:0 1px 2px #1d2a3a;}
#header_wrap a {color: #f0f0f0;outline: none;text-decoration: none;text-shadow:0 1px 2px #1d2a3a;}
#header_wrap a:hover,
#header_wrap a:active {color: #fff;text-shadow:0 1px 2px #53749e;}
#header_wrap nav {position: absolute;bottom: -2px;right: 0;}
#header_wrap nav ul {list-style: none; margin: 0;padding: 0;}
#header_wrap nav ul li {display: inline-block;padding: 15px;}
#header_wrap nav ul a {display: inline-block;}
#header_wrap nav ul li.active {background: url(../img/nav_marker.png) center bottom no-repeat;} */

#header_top {
    min-height: 50px;
    height: auto;
    background: #eee;
    box-shadow: inset 0 -3px 3px #ddd;
}

#header_wrap {
    max-width: 1040px;
    height: auto;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 9;
    margin-top: 0px;
}

.logo {
    position: absolute;
    left: 0;
    top: 10px;
    width: 20%;
    display: none;
    min-height: 120px;
}

#header_wrap a {
    outline: none;
    text-decoration: underline;
    color: #333;
}


/*#header_wrap nav {position: absolute;top:25px;left: 0px;}*/

#header_wrap nav {
    margin-top: 25px;
}

#header_wrap nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 0px;
}

#header_wrap nav ul li {
    display: inline-block;
    margin-left: 0px;
}

#header_wrap nav ul a {
    display: inline-block;
    padding: 5px 5px;
}

#header_wrap nav ul li.active {
    background: #406dad;
}

#header_wrap nav ul li.active a {
    color: #fff;
    position: relative;
    text-decoration: none;
}

#header_wrap nav ul li.active a:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #406dad;
    border-bottom: none;
}

#header_top .contact_info {
    display: block;
    max-width: 1010px;
    padding: 0 15px;
    margin: 0 auto;
    text-align: right;
    line-height: 50px;
    z-index: 10;
}

#header_top .contact_info a {
    text-decoration: none;
}

#header_top span {
    margin-left: 10px;
    margin-right: 10px;
}

.content {
    padding: 20px 15px;
    max-width: 1010px;
    margin: 0 auto;
    text-align: left;
    margin-top: 0px;
}

.content h2:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    /*border-top: 1px solid #eee;margin-top: -15px;*/
}

.content h2 {
    padding-top: 15px;
}

.content h1.page_title {
    /*margin-left: 30%;margin-top: -105px;margin-bottom: 40px;padding-top: 0;*/
    color: #555555;
    font-size: 2em;
    font-family: Verdana;
}

.content h1.page_title:after {
    border: none;
}

.development_page h2 {
    padding-top: 0;
}

.development_page h2:after {
    border: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: normal;
    color: #406dad;
}

img {
    width: 100%;
}

video {
    width: 100% !important;
    height: auto !important;
}

.row {
    overflow: hidden;
    margin: 0 -15px;
    padding: 30px 0;
}

.col {
    float: left;
    padding: 0 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.col.half {
    width: 50%;
}

.phone_preview {
    width: 241px;
    height: 361px;
    float: left;
    background: url(../img/phone.png) left top no-repeat;
    margin-left: -25px;
    position: relative;
}

.phone_preview a {
    display: block;
    width: 153px;
    height: 271px;
    position: absolute;
    left: 45px;
    top: 44px;
}

.phone_preview a img {
    background: #000;
    display: block;
    width: 153px;
    height: 271px;
}

.browser_preview {
    width: 436px;
    height: 336px;
    background: url(../img/safari_thumb.png) left top no-repeat;
    display: block;
    margin: 0 auto;
    position: relative;
}

.browser_preview img {
    background: #fff;
    width: 410px;
    height: 283px;
    position: absolute;
    left: 10px;
    top: 41px;
}

.description h2 {
    margin: 0;
}

.description p {
    margin: 15px 0;
}

img.full_width {
    width: 100%;
}

.contact_data .fa-li {
    top: 0.4em;
}

.presentation_block {}

.presentation_block .row {
    padding: 15px 0;
}

.presentation_block .col {
    padding-left: 110px;
}

.presentation_block h3 {
    margin: 0;
}

.about_icon {
    float: left;
    margin-left: -95px;
}

.recomendations {
    text-align: center;
}

.recomendations img {
    margin: 0 0 20px 0;
    box-shadow: 0 2px 10px #ccc;
}

.projects_page .col ul:first-child,
.projects_page .col p:first-child {
    margin-top: 8px;
}

.presentation_block img {
    max-width: 80px;
}


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


/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}


/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}


/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}


/*
 * Hide visually and from screenreaders, 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;
}


/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}


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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    thead {
        display: table-header-group;
        /* h5bp.com/t */
    }
    tr,
    img {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    @page {
        margin: 0.5cm;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
}

#language-panel {
    text-align: right;
    margin-top: 10px;
}

.language-panel-icon {
    width: 16px;
    height: 15px;
}

.note {
    color: red;
}

form,
fieldset {
    width: 100%;
}

fieldset {
    border: 0 none;
    display: flex;
    padding: 5px 0;
    margin: 0;
}

label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input {
    flex: 1 1 0;
}

.MJXc-display {
    display: inline-block !important;
}

li+li {
    margin-top: 0.3em;
}


.header-logo {
    /* border: 1px solid black; */
    width: 147px;
    height: 209px;
}

.header-links-img {
    /* border: 1px solid black; */
    display: block;
    position: relative;
}

#header_wrap {
    width: 100%;
    /* height: 100px; */
    /* border: 1px solid black; */
    padding: 30px;
}

.header-title {
    width: 100%;
    height: 180px;
    /* border: 1px solid black; */
    text-align: center;
}

.header-logo-wrp {
    padding: 0 30px;
}

.header-links-wrp {
    height: 209px;
    width: 130px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

