/***********************************************************************
 *  Basic setup
 **********************************************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #000217;
    color: #FFFFFF;
    font-family: "Montserrat";
    font-size: 17px;
    font-weight: bold;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html.menu-open {
    overflow: hidden;
}

:root {
    --red: #f9302b;
}

/***********************************************************************
 *  Heading
 **********************************************************************/
h1,
h2,
h3,
h4 {
    font-weight: bold;
    font-family: "Montserrat";
}

h1 {
    margin-top: 44px;
    font-size: 94px;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 26px;
    margin-top: 44px;
}

h4 {
    font-size: 26px;
    margin-top: 35px;
    margin-bottom: 6px;
}

h4 sup {
    font-size: 15px;
}

.h4footer {
    margin-bottom: 72px;
    font-size: 60px;
}

/***********************************************************************
 *  Buttons
 **********************************************************************/
.btn-primary:link,
.btn-primary:visited{
    display: inline-block;
    padding: 18px 55px;
    text-decoration: none;
    color: white; 
    background-color: var(--red);
    border: 3px solid var(--red);
    border-radius: 0px 32px;
    margin-top: 78px;
    font-weight: 600;
    transition: box-shadow 0.5s;
}

.btn-primary:hover, 
.btn-primary:active {
    box-shadow: 0px 0px 20px var(--red);
}

.btn-primary2:link,
.btn-primary2:visited{
    display: inline-block;
    padding: 18px 55px;
    font-weight: 600;
    text-decoration: none;
    color: white; 
    background-color: var(--red);
    border: 3px solid var(--red);
    border-radius: 0px 32px;
    background: linear-gradient(to right, transparent 50%, var(--red) 50%);
    background-size: 201% 100%;
    background-position: right bottom;
    transition: all .5s ease-out;
}

.btn-primary2:hover, 
.btn-primary2:active {
    background-position: left bottom;
    box-shadow: 0 0px 0px var(--red);
}

.view:link,
.view:visited {
    color: #85879F;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding-top: 6px;
    position: relative;
}

.view::after {
    content: "";
    position: absolute;
    left: 0;
    top: 110%;
    width: 0%;
    height: 2px;
    background: var(--red);
    transition: .4s;
}

.view:hover::after {
    width: 100%;
}

/***********************************************************************
 *  Paragraphs
 **********************************************************************/
.info {
     color: var(--red);
     text-transform: uppercase;
}

.info2 {
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 30px;
    font-weight: 600;
}

.line2 {
    width: -webkit-fill-available;
    height: 1px;
    background-color: rgba(128, 128, 128, 0.35);
    align-self: center;
}

.line4 {
    width: 84%;
    height: 1px;
    background-color: rgba(128, 128, 128, 0.35);
    align-self: center;
}

.binary {
    font-family: "Roboto Mono";
    font-size: 164px;
    font-weight: bold;
    margin-top: 150px;
    margin-left: 90px;
    line-height: 160px;
    color: rgba(39, 41, 59, 0.5);
    position: absolute;
    z-index: -1;
}

.p-about {
    color: #85879F;
    line-height: 40px;
    width: 40%;
    font-size: 20px;
    font-weight: 600;
    margin-right: 120px;
}

.copyright {
    color: #85879F;
    font-size: 14px;
    font-weight: 500;
    margin-left: 32px;
    margin-right: 20px;
}

.copyright2,
.footer_col2 a {
    color: #85879F;
    font-size: 14px; 
    font-weight: 500;
}

/***********************************************************************
 *  Nav Bar
 **********************************************************************/
header {
    background-image: url(../img/bg.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
}

.main-nav {
    display: flex;
    align-items: center;
    list-style: none;
    padding-top: 98px;
}

.logo {
    margin-left: 140px;
    width: 49.99px;
    height: 56px;
}

.menu {
    display: none;
    margin-left: auto;
    margin-right: 110px;
}

.menu-icon {
    width: 40px;
    height: 30.5px;
}

.nav_first {
    margin-left: auto;
}

.nav_second {
    margin-left: 60px;
    margin-right: 60px;
}

.nav-a:link, 
.nav-a:visited {
    color: white;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-bottom 0.5s;
    padding-bottom: 12px;
    font-weight: 600;
    position: relative;
}

.nav-a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 32px;
    width: 0%;
    height: 3px;
    background: var(--red);
    transition: .4s;
}

.nav-a:hover::after {
    width: 100%;
}

.border-contact:link,
.border-contact:visited {
    color: white;
    text-decoration: none;
    border: var(--red) solid 3px;
    margin-right: 140px;
    border-radius: 28px;
    padding: 12px 36px;
    font-weight: 600;
    background: linear-gradient(to left, var(--red) 50%, transparent 50%);
    background-size: 201% 100%;
    background-position: left bottom;
    transition: all .4s ease-out;
}

.border-contact:hover,
.border-contact:active {
    background-position: right bottom;
}

.container {
    margin-top: 209px;
    margin-left: 140px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

/***********************************************************************
 *  Menu nav bar
 **********************************************************************/
.overlay {
    width: 100%;
    height: 0vh;
    background-color: rgb(0, 2, 23);
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.5s;
    z-index: 5;
}

.overlay_content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mobile-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 80px 110px 0;
}

.mobile-logo {
    width: 49.99px;
    height: 56px;
}

.cancel-icon {
    width: 27px;
    height: 27px;
}

.menu-a {
    display: block;
    width: fit-content;
    text-decoration: none;
    padding: 14px; 
    font-size: 24px;
}

.menu-b {
    color: #FFFFFF;
}

.contact {
    color: var(--red);
}

/***********************************************************************
 *  About
 **********************************************************************/
.row-about {
    margin: -60px 140px 200px;
    padding-top: 60px;
}

.row-about h2 {
    width: 40%;
}

/***********************************************************************
 *  Projects
 **********************************************************************/
.projects {
    margin: 0px 120px;
    padding-top: 90px;
}

.flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 128px;
    margin-top: 60px;
}

.projects > .flex:nth-of-type(2) {
    flex-wrap: wrap;
}

.flex > div {
    width: 44%;
    margin-bottom: 200px;
}

.project_photo_hidden {
    display: none;
}

.prekladatel {
    background: url(../img/projects/prekladatel.jpg);
}

.prekladatel:hover {
    background: url(../img/projects/prekladatel_hover.jpg);
}

.o3 {
    background: url(../img/projects/o3.jpg);
}

.o3:hover {
    background: url(../img/projects/o3_hover.jpg);
}

.barman {
    background: url(../img/projects/barman.jpg);
}

.barman:hover {
    background: url(../img/projects/barman_hover.jpg);
}

.pb-centrum {
    background: url(../img/projects/PB-centrum.jpg);
}

.pb-centrum:hover {
    background: url(../img/projects/PB-centrum_hover.jpg);
}

.shredded-fox {
    background: url(../img/projects/shredded.jpg);
}

.shredded-fox:hover {
    background: url(../img/projects/shredded_hover.jpg);
}

.project_photo {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
    transition: all 0.8s;
}

.project_photo:hover {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.btn2 {
    text-align: center;
    margin-top: -100px;
    margin-bottom: 88px;
}

.min {
    display: none;
}

/***********************************************************************
 *  Footer
 **********************************************************************/
footer {
    margin: 0px 120px;
}

.flexbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 160px;
    margin-bottom: 100px;
}

.flex2 {
    display: flex;
    color: #85879F;
    font-size: 20px;
}

.flex2 a {
    color: #85879F;
    font-size: 20px;
    text-decoration: none;
    margin: 0 56px;
}

.footer_col1 {
    display: flex;
    align-items: center;
}

.footer_col2 a {
    text-decoration: none;
}

.logo_footer {
    width: 43px;
    height: 49px;
}

.zr {
    padding-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #85879F;
}

/***********************************************************************
 *  Animation
 **********************************************************************/
.fadeInDown,
.fadeInUp,
.fadeIn {
    -webkit-animation-delay: 0s;
            animation-delay: 0s;
    -webkit-animation-duration: 1s;
            animation-duration: 1s;
    transition-timing-function: ease-out;
}

@-webkit-keyframes fadeInDown{
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    } to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown{
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    } to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInDown {
    -webkit-animation-name:fadeInDown;
    animation-name:fadeInDown;
}

@-webkit-keyframes fadeInUp{
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    } to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp{
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    } to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    -webkit-animation-name:fadeInUp;
    animation-name:fadeInUp;
}

@-webkit-keyframes fadeIn{
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

@keyframes fadeIn{
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

.fadeIn {
    -webkit-animation-name:fadeIn;
    animation-name:fadeIn;
}

/***********************************************************************
 *  Media Query
 **********************************************************************/
@media only screen and (max-width: 1500px) {
    .container {
        margin-top: 110px;
    }

    .border-contact:link, 
    .border-contact:visited {
        margin-right: 110px;
    }

    .p-about {
        margin-right: 60px;
    }

    .project_photo {
        height: 300px;
    }

    .flex > div {
        margin-bottom: 150px;
    }
}

@media only screen and (max-width: 1300px) {
    .flex > div {
        width: 45%;
        margin-bottom: 120px;
    }

    .flex {
        margin-bottom: 110px;
    }

    .project_photo {
        height: 250px;
    }

    .container {
        margin-top: 140px;
        margin-left: 110px;
    }

    .main-nav {
        padding-top: 80px;
    }

    .main-nav li {
        display: none;
    }

    .logo {
        margin-left: 110px;
    }

    .menu {
        display: flex;
        margin-left: auto;
    }

    .row-about {
        margin: -60px 110px 130px;
    }

    .projects {
        padding-top: 60px;
    }

    .p-about {
        margin-right: 0px;
    }

    .binary {
        font-size: 130px;
        line-height: 1;
    }

    .h4footer {
        font-size: 50px;
    }
}

@media only screen and (max-width: 1100px) {
    header {
        background-size: cover;
    }

    .logo,
    .container {
        margin-left: 60px;
    }

    .menu {
        margin-right: 60px;
    }

    .mobile-flex {
        margin: 80px 60px 0;
    }

    .row-about {
        margin: -60px 60px 110px;
    }

    .projects {
        overflow: hidden;
        padding-left: 60px;
        padding-right: 60px;
        margin: 0;
    }

    footer {
        margin: 0px 60px;
    }

    h1 {
        font-size: 75px;
    }
}

@media only screen and (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }

    .row-about .flex {
        margin-top: 0;
    }

    .row-about h2 {
        width: unset;
        max-width: 420px;
    }

    .binary {
        display: none;
    }

    .p-about {
        width: 100%;
        margin-top: 60px;
        line-height: 36px;
    }

    .min {
        display: block;
    }

    .max {
        display: none;
    }

    .flex > div {
        width: 100%;
    }

    .projects {
        padding-top: 0;
    }

    .project_photo {
        height: 400px;
    }

    h1 {
        font-size: 70px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        margin-top: 25px;
    }

    .h4footer {
        font-size: 40px;
    }

    .info,
    .info2,
    .view,
    .btn-primary,
    .btn-primary2 {
        font-size: 16px;
    }

    .flex2,
    .flex2 a {
        font-size: 18px;
    }

    .mobile-flex {
        margin: 80px 70px 0 60px;
    }

    .cancel-icon {
        width: 22px;
        height: 22px;
    }

    .zr {
        font-size: 12px;
    }
}

@media only screen and (max-width: 700px) {
    h1 {
        font-size: 60px;
    }

    .flex > div {
        margin-bottom: 100px;
    }

    .project_photo {
        height: 280px;
    }

    .h4footer {
        font-size: 35px;
    }
    
    .copyright2 {
        display: none;
    }

    .flex2 a {
        margin: 0 40px;
    }

    .flexbox {
        margin-top: 100px;
        margin-bottom: 60px;
    }
}

@media only screen and (max-width: 600px) {
    .main-nav {
        padding-top: 43px;
    }

    .logo, .container {
        margin-left: 24px;
    }

    .menu, .container {
        margin-right: 24px;
    }

    .mobile-flex {
        margin: 43px 30px 0 24px;
    }

    .logo,
    .logo_footer,
    .mobile-logo {
        width: 36.37px;
        height: 41.12px;
    }

    .menu-icon {
        width: 38px;
        height: 16.48px;
    }

    .row-about {
        margin: 0 24px 80px;
    }

    .projects {
        padding: 0 24px;
    }

    footer {
        margin: 0 24px;
    }

    .flex {
        margin-bottom: 80px;
    }

    .flex > div {
        margin-bottom: 70px;
    }

    .btn2 {
        margin-top: -50px;
        margin-bottom: 60px;
    }
}

@media only screen and (max-width: 530px) {
    header {
        background-image: url(../img/bg_mob.jpg);
        background-size: auto;
        background-position: right;
        height: 100vh;
    }
    
    .btn-primary:link, .btn-primary:visited {
        padding: 22px 53px;
        margin-top: 40px;
    }

    h1{
        font-size: 44px;
        margin-top: 32px;
    }

    .info, 
    .info2, 
    .btn-primary, 
    .btn-primary2 {
        font-size: 15px;
    }

    h2 {
        font-size: 22px;
    }

    .p-about {
        font-size: 16px;
        line-height: 27px;
        margin-top: 50px;
    }

    h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    h4 {
        font-size: 22px;
        margin-top: 20px;
    }

    h4 sup,
    .view:link, .view:visited {
        font-size: 14px;
    }

    .h4footer {
        font-size: 30px;
    }

    .flex {
        margin-bottom: 60px;
    }

    .row-about {
        margin: 0 24px 60px;
    }

    .project_photo {
        height: 250px;
    }

    .btn-primary2:link, .btn-primary2:visited {
        padding: 22px 50px;
    }

    .flex2, .flex2 a {
        font-size: 16px;
    }

    .flexbox {
        margin-top: 60px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer_col1 {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 450px) {
    h3 br {
        display: none;
    }

    .menu-a {
        font-size: 20px;
    }

    .flex2 {
        justify-content: space-between;
    }

    .flex2 a {
        margin: 0;
    }

    .h4footer {
        font-size: 22px;
        margin-bottom: 44px;
    }

    .project_photo {
        height: 215px;
    }
}

@media only screen and (max-width: 400px) {
    .flex2, .flex2 a {
        font-size: 15px;
    }

    .footer_col1 {
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 360px) {
    header {
        background-size: contain;
    }

    h1 {
        font-size: 39px;
    }

    .project_photo {
        height: 190px;
    }

    .flex2 {
        flex-direction: column;
    }

    .flex2 a {
        margin: 10px 0;
    }
}

@media only screen and (max-height: 699px) and (min-height: 600px) and (max-width: 530px) {
    .container {
        margin-top: 220px;
    }
}


@media only screen and (max-height: 799px) and (min-height: 700px) and (max-width: 530px) {
    .container {
        margin-top: 300px;
    }
}

@media only screen and (max-height: 899px) and (min-height: 800px) and (max-width: 530px) {
    .container {
        margin-top: 340px;
    }
}

@media only screen and (max-height: 1100px) and (min-height: 900px) and (max-width: 800px) and (min-width: 700px){
    .container {
        margin-top: 380px;
    }
}

@media only screen and (max-height: 1400px) and (min-height: 1100px) and (max-width: 1100px) and (min-width: 800px){
    .container {
        margin-top: 500px;
    }
}