@font-face {
    font-family: 'roboto';
    src: url(roboto/Roboto-Regular.ttf);
}

:root {
    --app-height: 100%;
}

html,
body {
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: roboto;
    text-align: center;
    width: 100vw;
    height: 100vh;
    font-size: 16px;

    @media not all and (hover:hover) {
        height: var(--app-height);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

div.top-bar {
    height: 52px;
    width: 100%;
    right: 10px;
    position: fixed;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
}

img.logo {
    width: 100px;
    height: 50px;
}

.top-bar img {
    margin-left: 20px;
    float: left;
}

div.special-offer {
    border-radius: 10px;
    position: absolute;
    right: 0;
    left: 0;
    font-family: roboto;
    margin: auto;
    max-width: 700px;    
    top: 23%;
    text-align: center;
    animation-duration: 2s;
    animation-name: slidein;
    animation-iteration-count: 1;
    animation-direction: alternate;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
}

div.special-offer > p > b {
    color: rgb(231,7,11);
}

div.special-offer div {
    display: grid;
    grid-template-columns: 70px auto;
    text-align: left;
    width: fit-content;
    margin: auto;
}

div.special-offer img {
    width: 50px;
    margin-right: 10px;
}

div.special-offer  h3,
div.special-offer img {
    display: inline-block;
    height: fit-content;
}

div.special-offer  b {
    display: inline-block;
}

.special-offer h1,
h2 {
    margin-bottom: 0px;
    color: rgb(231,7,11);
}

nav {
    display: inline;
    float: right;
}

nav > a {
    padding: 0;
    font-weight: 600;
    font-family: sans-serif;
    color: #3d383a;
    display: inline-block;
    padding: 16px 0px;
    margin-right: 10px; 
    text-align: center;
}



ul {
    text-align: left;
}

a {
    color: #3d383a;
    cursor: pointer;
    text-decoration: none;
}

nav a:hover {
    color: black;
}

nav a.selected {
    color: #c71a37;
}

div.section {
    position:relative;
    padding: 10px 20px;
    height: 100%;
    background: #c71a37;
    display: grid;    
    grid-template-rows: 52px 50% 50%;
    grid-template-columns: 50% 50%;
    justify-items: center;
    align-items: center;
}

div#home > img {
    /*display: none;*/
    margin: 50px  auto;
    height: 100%;
    width: auto;
}

div.section:nth-child(odd) {
    background: linear-gradient(40deg, rgba(128,11,45,1) 0%, rgba(199,26,55,1) 66%);
}
div.section#home {
    background: none;
    background-color: #d5d5d5;
}

div.section:nth-child(even) {
    background: #ebe1e1;
}

div#glasses {
    grid-template-rows: 52px;
    grid-template-columns: 50% 50%;
    background: none;
    background-image: url("../img/glasses-backgroud1.jpg");
}

div#glasses div:nth-child(1) {
    grid-row-start: 2;
    grid-column-end: 2;
}

div#glasses div:nth-child(2) {
    grid-row-start: 2;
    grid-column-start: 2;
}

div#accessories {
    grid-template-rows: 52px 1fr 4fr;
    grid-column-gap: 10px;
}

div#accessories img {
    max-width: 80%;
    max-height: 70%;
    grid-row-start: 3;
    margin: auto;   
}

div.section > img {
    display: flex;
    justify-content: center;
    align-items: center;
}

div#accessories img:first-child {
    grid-column-start: 1;  
}

div#contacts {
    grid-template-rows: 10% 60% 20% 10%;
}

div#contacts div.light-text {
    text-align: center;
    grid-row-start: 3;
    grid-column-start: 1;
    grid-row-end: 4;
}

.contact-img {    
    grid-column-start: 2;
    grid-row-start: 2;
    grid-row-end: 4;
    max-width: 100%;
    height: 100%;
    margin: auto;
}

div#check {
    grid-template-rows: 52px auto;
    background-image: url("../img/eyeexam.jpg");
}

div.section > div.text {
    grid-row-start: 2;
    grid-column-start: 1;
    grid-column-end: 3;
    text-align: justify;
    text-align-last: center;
}

div#check div {
    margin: auto;
    text-align: initial;
    grid-column-end: 3;
}

div#check img {
    margin: 10px auto;
    width: 200px;
    grid-column-start: 3;
    grid-row-start: 2;
}

div#us {
    grid-template-rows: 52px min-content auto;
}

div#us > div:nth-child(2) {
    grid-row-start: 4;
    grid-column-start: 1;
    grid-column-end: 3;
    
}

div#us > div:nth-child(2) > h2,
div#us > div:nth-child(2) p{
    grid-row-start: 2;
    grid-column-start: 1;
}

div#us > div:nth-child(1) img {
    width: 100px;
    height: 100px;
}


div#us > div:nth-child(1) {
    margin: auto;
    padding: 20px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-start: 3;
    grid-column-start: 1;
    grid-column-end: 3;
    font-weight: bold;
}

div#us > div:nth-child(1) > div {
    display: inline;
}

div#home {
    display: block;
    padding: 0;
}

iframe {
    height: 100%;
    width: 90%;
}

img.full-img {
    width: 100%;
    height: 100%;
    
}

img.full-img.small {
    /*transform: scale(1.1);*/
}

div.arrow-down {
    display: inline;
    position: absolute;
    bottom: 6px;
    margin-left: 4px;
    width: 4px;
    font-size: 25px;

}

/* Dropdown Button */
.dropbtn {
    border: none;
    background: none;
    padding: 0;
}
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    display: inline-block;
    margin-right: 18px;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(189, 154, 154, 0.2);
    border: 0.2px solid rgba(66, 60, 60, 0.2)
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #ddd;}
  
  /* Show the dropdown menu on hover */
  .dropdown:hover .dropdown-content {display: block; }

.mapouter {
    width: 100%;
    margin: auto;
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 1;
}
.gmap_canvas {
    width: 100%;
    overflow: hidden;
    background: none!important;
}

.parallaxed-section {
    display: grid;
    grid-auto-columns: 100%;
}

.parallaxed-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transform: translateZ(-.5px) scale(1.6);
    z-index: -1;
}

#working-time {
    text-align: center;
    grid-row-start: 3;
}

.light-text {
    color: #ebe1e1;
}

footer img {
    width: 100%;
}

@keyframes slidein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .small {
      transition: opacity 1.5s ease, transform 1.5s ease;
    }
  }

a.hamburger {
    display: none;
}

div.gallery {
    display: none;
    padding: 10px;
    flex-direction: column;
    margin: auto;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2;
}

div.fotorama__wrap {
    margin: auto;
}

div.gallery > button {
    width: 190px;
    position: absolute;
    left: 10px;
    top: 0px;
    z-index: 2;
}

div.fotorama__nav {
    width: initial !important;
}

div.gallery div.fotorama__stage__frame > img {
    max-width: 520px !important;
    max-height: 460px !important;
    margin: 0 auto !important;
}

div.fotorama__stage.fotorama__pointer {
    height: 80% !important;
}

div.fotorama {
    margin: auto;
}

div.fotorama img {
    width: 400px;
    height: 400px;
}

button {
    border: none;
    border-radius: 5px;
    background:  #c71a37;
    color: white;
    grid-row-start: 4;
    grid-column-start: 1;
    margin: 10px auto 10px auto;
    width: 124px;
    height: 44px;
    padding: 10px;
    cursor: pointer;    
    font-size: 16px;
}

button:hover {
    background: #e21d3e;
    color: #ffffff;
}

div#links {
    grid-row-start: 4;
    margin-top: 10px;
}

div#links img:first-child {
    margin-right: 10px;
}

@media (max-width: 617px) {
    nav > a {
        margin-right: 8px;
    }
}

@media (max-width: 640px) {
    nav {
        display: none;
    }

    a.hamburger {
        margin: 6px 0px;
        float: right;
        display: block;
        padding: 10px;
    }    

    div.open-hamburger {
        display: grid;
        grid-template-rows: 52px 200%;
        grid-template-columns: 1fr 1fr;
    }

    div.open-hamburger > img,
    div.open-hamburger > a {
        grid-row-start: 1;
    }

    div > a > i {
        position: absolute;
        right: 20px;
    }

    div.open-hamburger > nav {
        display: grid;
        grid-column-start: 1;
        grid-column-end: 3;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr;
        background: rgba(255, 255, 255, 0.96);
        height: max-content;
        border-bottom: 0.01em solid rgb(232, 67, 67);
    }
    
    div.open-hamburger > nav > a:first-child {
        border-top: 0.1em solid rgb(232, 67, 67);
    }
    div.open-hamburger > nav > a {
        padding: 15px 0px;
        border-bottom: 1px solid blue;
        width: 100%;
        border-bottom: 0.01em solid rgb(232, 67, 67);
    }
    div.open-hamburger > nav > a:hover {
        color: rgb(199, 26, 55);
    }
    div.open-hamburger > nav > a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    div.content {
        display: block !important;
        height: 100%;
    }

    div.section {
        height: max-content !important;
    }
    div#home {
        height: 100% !important;
    }

    div#accessories {
        grid-template-rows: 52px max-content max-content;
    }
}

@media (max-width: 660px) {
    div#glasses {
        min-height: 100%;
    }
}

@media (max-width: 660px) {
    div#contacts {
        grid-template-columns: 100%;
        grid-template-rows: 52px max-content;
        padding-bottom: 52px;
    }

    div.mapouter {
        width: 80%;
        height: 80%;    
    }
    
    img.contact-img {
        display: none;
    }
}

@media (max-width: 1100px) {
    
    div.content > div#home {
        /*background-image: url("../img/full-image-valentine-tablet.jpg");*/
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }

    div#home > img {
        /*display: none;*/
        margin: auto;
        height: 100%;
    }

}

@media (max-width: 415px) {
    /*
    img.full-img {
        display: none;
    }
    div.content > div#home {
        background-image: url("../img/full-image-valentine-phone.jpg");
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }

    div#home > img {
        display: none;
    }
    */
    div#home > img {
        margin: 30% auto;
        max-width: 415px;
        height: auto;
    }
}

@media (max-width: 470px) {
    div#accessories {
        grid-template-rows: 52px max-content min-content min-content;
        grid-template-columns: 1fr;
    }

    div#accessories img:first-child {        
        grid-column-start: 1;
        grid-column-end: 3;
    }

    div#accessories img:last-child {        
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 4;
    }
}

@media (max-width: 645px) {
    div#check {
        grid-template-columns: 100%;
        grid-template-rows: 52px min-content min-content;
    }

    div#check img {
        grid-row-start: 3;
        grid-column-start: 1;
        max-width: 90%;
    }
}

@media (max-width: 490px) {
    div.special-offer {
        background: rgba(255, 255, 255, 0.8);
    }
}

@media (max-width: 455px) {
    div.fotorama {
        position: relative;
        top: 25%;
    }  
}

@media (max-width: 730px) {
    div#glasses {
        grid-template-rows: 52px max-content;
    }

    div#glasses > div.text {
        grid-column-end: 3;
    }

    div#glasses > div.slideshow-container {
        grid-row-start: 3;
        grid-column-start: 1;
        grid-column-end: 3;
    }
}

@media (max-width: 360px) {
    div.special-offer {
        top: 15%;
    }    
}
@media (max-width: 340px) {
    div.special-offer {
        top: 9%;
    }    
}