@import url('https://fonts.googleapis.com/css?family=Cabin|Herr+Von+Muellerhoff|Source+Sans+Pro:400,900&display=swap');
/*Global styles*/
*,
*::before, /*Pseudo Elements*/
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;  
}
/*Declaring CSS variables or Custom Properties*/
:root {
  --hlavne-pismo: 'Source Sans Pro', sans-serif; 
  --druhotne-pismo: 'Herr Von Muellerhoff', cursive;
  --body-font: 'Cabin', sans-serif;
  --hlavne-pismo-farba-dark: #252525;
  --druhotne-pismo-farba: #c59d5f;
  --body-font-color: #515151;
}
html{
    font-family: var(--body-font);
    font-size: 10px;
    color: var(--body-font-color);
    scroll-behavior: smooth;   
}

body {
    overflow-x: hidden;
}

section{
    padding: 3.9rem 0;  
}
img{
    width: 100%;
    max-width: 100%;    /*this will make sure that even if the picture is bigger, it is not going
    to overflow its parent */
}
a{
    text-decoration: none;
}
p{
    font-size: 1.6rem;
}
.container{
    width: 100%;
    max-width: 122.5rem;
    margin: 0 auto;
    padding:0 2.4rem;
}

/*header*/
header{
    width: 100%;
    position: absolute; /* because the navigation will be trasparent flowing */
    top: 0;
    left: 0;
    z-index: 1;  /*To make sure it stays on top of everything - specifies stack order of an element*/ 
    background-image: linear-gradient(to bottom,rgba(0,0,0,.5),transparent);
}
.nav {
    height:7.2rem;
    display: flex; /* Is going to help with allignment*/
    align-items: center;
    justify-content: center;
}
.menu-toggle {     /*To je ten hamburgerik*/
    color:#fff;
    font-size:2.2rem;
    position:absolute;
    top: 50%;
    transform: translateY(-50%); /* Transforms allow you to move and rotate elements*/
    right: 2.5rem;
    cursor: pointer;
    z-index: 1500;
}
.fa-times {  
    display: none;
}
.nav-list {    
    list-style: none;
    position: fixed;   
    top: 0;
    left: 0;   
    width: 80%;
    height: 100vh;   
    background-color: var(--hlavne-pismo-farba-dark);
    padding: 4.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    z-index: 1250;
    transform: translateX(-100%);
    transition: transform .5s;
 }
.nav::before{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100ww;
    height: 100vh;
    background-color: rgba(0,0,0,.8);
    z-index:1000;
    opacity: 0;
    transform: scale(0);
    transition: opacity .5s;
}
.open .fa-times{
    display: block;
}

.open .fa-bars {
    display: none;
}

.open .nav-list {
    transform: translateX(0);
}

.open .nav::before {
    opacity: 1;
    transform: scale(1); 
} 

.logo {
    margin-top: 2rem;
    width: 50px;
}

.nav-item, .nav-item-contact {
  border-bottom: 2px solid rgba(255, 255, 255, .3);
}
.nav-link {
  display: block;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-right: -2px;
  transition: color .5s;
}
.nav-link:hover{
  color: var(--druhotne-pismo-farba);
}
.hero {
    width: 100%;
    height: 100vh;
    background: url("../images/laska.jpg") center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
}
.sub-headline {
    font-size: 8.5rem;
    font-family: var(--druhotne-pismo);
    color: var(--druhotne-pismo-farba);
    font-weight: 100;
    line-height: .4;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeUp 1s forwards;
    animation-delay: 2s;

}
.single-animation {
    opacity: 0;
    animation: fadeDown 1s forwards;
    animation-delay: 4s;
}
.first-letter {
    text-transform: uppercase;
    font-size: 10.3rem;
}
.headline {
    color: #fff;
    font-size: 3.7rem;
    font-family: var(--hlavne-pismo-farba-dark);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .5rem;
    margin-right: -.5rem;
    animation: scale 1s forwards;
    animation-delay: 1.5s;
}
.separator {
    display:flex;
    align-items: center;
    justify-content: center;
}
.line {
    width: 100%;
    max-width: 8.4rem;
    height: .25rem;
    background-color: #fff;
    position: relative;
    opacity: 0;
    animation: grow 4s forwards;
    animation-delay: 2s;
}
.line-right::before,
.line-left::before{
    content: '';
    position: absolute;
    top: 300%;
    border: .6rem solid transparent;
    opacity: 0;
    animation: grow 1s forwards;
    animation-delay: 2s;
}
.line-right::before{
    border-right-color: #fff;
    right: 0;
    animation: infinityr 2s infinite;
    animation-delay: 8s;
}
.line-left::before{
    border-left-color: #fff;
    left:0;
    animation: infinityl 2s infinite;
    animation-delay: 8s;
}
.asterisk {
    font-size: 1.2rem;
    color: var(--druhotne-pismo-farba);
    margin: 0 1.6rem;
    opacity: 0;
    animation: spin 1s forwards;
    animation-delay: 3s;
}
.headline-description h5 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 100;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
    margin-right: -3px;
}

.btn {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: -2px;
}
.global-headline {
    text-align: center;
    margin-top: 3.9rem;
}

.portfolio .global-headline {
    margin-top: 6.9rem;
}
.global-headline .asterisk {
    color: var(--body-font-color);
    margin: 2.4rem 0; 
}
.headline-dark {
    color: var(--hlavne-pismo-farba-dark);
    letter-spacing: .7rem;
    margin-right: -.7rem;
}
.global-headline .sub-headline {
    letter-spacing: -1px;
    line-height: .42;
}
.gallinfo {
    text-align: center;
}
.galldesc {
    margin-bottom: 3rem;
    margin-top: 3rem;
}
.image-group {
    padding-bottom: 3rem;
}
.galldesc p{
    line-height: 1.6;
    margin-bottom: 2.4rem;
}
.body-btn{ 
    font-size: 1.5rem;
    color: var(--druhotne-pismo-farba);
    position: relative;
    transition: color .5s;
}
.body-btn::before{
    content:'';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    bottom: -3px;
    background-color: var(--druhotne-pismo-farba);
    transition: background-color .5s;
}
.body-btn:hover,
.body-btn:focus{
    color: var(--hlavne-pismo-farba-dark);
}
.body-btn:hover::before,
.body-btn:focus::before {
    background-color: var(--hlavne-pismo-farba-dark);
}
/*  Comic portraits */ 
.comic-portraits {
    background: url("../images/comic.jpg") center no-repeat;
    background-size: cover;
    text-align: center;
}
.comic-portraits p {
    color:#fff;
    padding-bottom: 1rem;
}
.between {
    min-height:65vh;
    display:flex;
    align-items: center;
}
/* Wine boxes*/
.image-group {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1.5rem;
}
.wine-box .galldesc {
    padding-top: 3rem;
    margin-bottom: 0;
}
/* footer */ 
footer {
    padding: 4.1rem 0;
    background-color: #121212;
    color:#fff;
    text-align: center;
    position: relative;
}
.back-to-top {
    width: 7rem;
    height: 7rem;
    background-color: #121212;
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}
.back-to-top i {
    display: black;
    color: #fff;
    font-size: 2rem;
    padding: 2rem;
    animation: up 2s infinite;
}
.footer-content {
    overflow:hidden; 
}
.footer-content h4 {
    font-size:1.9rem;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 3px;
    margin-bottom: 3rem;
}
.footer-content .asterisk {
    margin: 2.4rem 0;
}
.footer-content-about {
    margin-bottom: 5.4rem;
}
.footer-content p {
    line-height: 2;
}
.social-icons {
    list-style: none;
    margin-bottom: 5.4rem;
    display: flex;
    justify-content: center;
}
.social-icons i{
    font-size: 2rem;
    color:#fff;
    padding: .8rem;
    opacity: .5;
    transition: color .5s;
}
.social-icons i:hover,
.social-icons i:focus{  
    color: var(--druhotne-pismo-farba);
}
.row {
    display: flex;
    align-items: stretch;
    /* align-items: center; vdaka tomuto to ide do stredu */
  }
  
  /* Create three equal columns that sits next to each other */
  .column {
    flex: 33.33%;
    padding: 5px;
    margin:5px;
    background-color: black;
  }
.column img:hover {
    opacity: 0.8;
  }
  .containerimg {
    position: relative;
    display: none;
  }
  .closebtn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
  }
  #imgtext {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 20px;
  }

/* Media Queries */
@media screen and (min-width: 900px) {
    section {
        padding: 7.9rem;
    }
    .menu-toggle {
        display:none;
    }
    .nav {
        justify-content: space-between;
    }
    .nav-list {
        position: initial;
        width: initial;
        height: initial;
        background-color: transparent;
        padding: 0;
        justify-content: initial;
        flex-direction: row;
        transform: initial;
        transition: initial;
    }
    .nav-item,.nav-item-contact{
        margin:0 2.4rem;
        border:0;
    }
    .nav-link{
        font-size: 1.3rem;  
    }
    .active{
        position:relative;
    }
    .active::before{
        content:'';
        position:absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        left: 0;
        bottom: -3px;
    }
    .sub-headline{
        font-size: 10rem;
    }
    .first-letter{
        font-size: 12.2rem;
    }
    .headline{
        font-size: 4.7rem;
        letter-spacing: .8rem;
    }
    .logo {
    margin-top: 2rem;
    width: 130px;
}
    .line{
        max-width: 11.4rem;
    }
    .portfolio  {
        position: relative;
        margin-left: -2000px;
    }
    .comic-portraits {
        overflow: hidden;
    }
    .animate {
        margin-top: -450px;
        position:relative;
    }
    .wine-boxes {
        position: relative;
        margin-left: -2000px;
    }
    .gallinfo{
        display: flex;
        align-items: center;
    }
    .gallinfo > div {
        flex:1;
    }
    .padding-right {
        padding-right: 7rem;
    }
    .footer-content {
        max-width: 77.5rem;
        margin: auto;
    }
    .footer-content-about {
        max-width: 51.3rem;
        margin:0 auto 5.4rem;
    
    }
    .social-media {
        width:100%;
    } 
    .social-icons i {
        opacity: 1;
    }
}

@keyframes fadeUp {
    0% {
        transform: translateY(4rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes scale {
    0% {
        transform: scale(2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes grow {
    0% {
        width: 0;
    }
    100% {
        opacity: 1;
        width: 100%;
    }
}
@keyframes fadeDown {
    0% {
        transform: translateY(-1rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        opacity: 1;
        transform: rotate(-360deg);
    }
}
@keyframes up {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-1rem);
    }
}
@keyframes infinityr {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
       transform: translateX(-1rem);
    }
}
@keyframes infinityl {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(1rem);

    }
}
