/* Colors */
:root {
    --black: #575757;
    --grey: #909090;
    --lightGrey: #D0D0D0;
}

/* Use font */
body {
    font-family: "Roboto";
    margin: 0;
    padding: 0;
}

/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
}

/* General presets */
html {
    margin: 0;
    padding: 0;
}

h2 {
    text-align: center;
    color: var(--black);
    font-size: 48px;
    font-weight: bold;
}

.light {
    font-weight: 300;
}

.bold {
    font-weight: bold;
}

/* Nav */
nav {
    width: 100%;
    height: 100px;
    background-color: white;
    position: fixed;
    z-index: 2;
    transition: box-shadow 1s ease;
}

.navShadow {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.07);
}

.navWrapper {
    width: 85%;
    margin: auto;
    padding-top: 35px;
}

#logo {
    height: 30px;
}

nav .right {
    float: right;
    padding-top: 6px;
}

nav .right a {
    font-size: 16px;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
}

#home {
    color: var(--black);
}

#home, #gallery {
    margin-right: 50px;
}

#gallery, #contact {
    color: var(--lightGrey);
}

/* Header */
.background {
    background-image: url(../images/background.jpg);
    background-position: center;
    background-size: cover;
    height: 100vh;
    width: 100vw;
}

header {
    width: 100vh;
}

.headerWrapper {
    width: 508px;
    margin: auto;
}

#slider {
    height: 450px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-animation-name: fadeIn;
    animation: 1s ease-in fadeIn;
}

@-webkit-keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
  }

/* Work Space & Business Rooms */
.section1 {
    width: 100vw;
    background-color: white;
    padding-top: 120px;
    padding-bottom: 120px;
}

.section1 h2 {
    margin-bottom: 100px;
}

.grid {
    display: grid;
    grid-template-columns: 392px 392px;
    grid-gap: 120px;
    justify-content: center;
}

.card {
    background-color: white;
    box-shadow: 0px 0px 40px rgba(179, 193, 196, 0.2);
    border-collapse: separate;
    text-align: center;
    transition: box-shadow 0.5s;
}

@media (min-width: 600px) {
    .card {
        width: 392px;
        height: 641px;
    }
}

@media (min-width: 600px) {
    .grid:after {
        content: "";
        display: table;
        clear: both;
    }

    .card {
        float: left;
    }

    .card:first-child {
        margin-right: 120px;
    }
}

.card:hover {
    box-shadow: 0px 3px 40px rgba(179, 193, 196, 0.25);
}

.card img {
    width: 100%;
}

.card h4 {
    color: var(--black);
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.card ul {
    margin-left: 50px;
    margin-right: 50px;
    text-align: left;
}

.card ul li {
    color: var(--grey);
    font-size: 18px;
    font-weight: normal;
    line-height: 21px;
    margin-bottom: 15px;
}

.card #userGuidance {
    color: var(--grey);
    font-size: 18px;
    font-weight: normal;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
    margin-top: 108px;
}

.card #userGuidance:focus {
    outline:0;
}

/* User guidance */
.modal {
    /* This way it could be display flex or grid or whatever also. */
    display: block;
    /* Probably need media queries here */
    width: 400px;
    max-width: 100%;
    min-height: 575px;
    max-height: 100%;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    /* Use this for centering if unknown width/height */
    transform: translate(-50%, -50%);
    /* If known, negative margins are probably better (less chance of blurry text). */
    /* margin: -200px 0 0 -200px; */
    background-color: white;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s;
}

.closed {
    opacity: 0;
    pointer-events: none;
}
  
.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.5s;
}

.modalContent {
    overflow: auto;
    padding: 50px;
}

.modal .closeButton img {
    position: absolute;
    z-index: 1;
    top: 25px;
    right: 25px;
    height: 25px;
    cursor: pointer;
}

.modalContent h1 {
    color: var(--black);
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 20px;
}

.modalContent p {
    color: var(--black);
    font-size: 18px;
    margin-bottom: 10px;
}

.modalContent ul {
    margin-left: 15px;
    text-align: left;
    margin-bottom: 20px;
}

.modalContent ul li {
    color: var(--grey);
    font-size: 18px;
    font-weight: normal;
    line-height: 21px;
    margin-bottom: 15px;
}

/* Parallax image */
.parallax {
    background-image: url("../images/parallaxImage.jpg");
    min-height: 250px; 
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 600px) {
    .parallax {
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-size: cover;
    }
}

/* Visit us */
.section2 {
    width: 100vw;
    background-color: white;
    padding-top: 120px;
    padding-bottom: 120px;
}

.section2 .sectionWrapper {
    width: 85%;
    margin: auto;
}

.section2 h2 {
    margin-bottom: 100px;
}

.gallery {
    text-align: center;
}

.gallery img {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Contact us */
.contact {
    width: 100vw;
    background-color: white;
    padding-top: 120px;
    padding-bottom: 120px;
}

.contact .contactWrapper {
    text-align: center;
}

.contact .contactWrapper h2 {
    margin-bottom: 30px;
}

.contact .contactWrapper p.description {
    color: var(--grey);
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 10px;
}

.contact .contactWrapper p.description:last-of-type {
    margin-bottom: 50px;
}

.contactCard {
    background-color: white;
    box-shadow: 0px 0px 40px rgba(179, 193, 196, 0.2);
    border-collapse: separate;
}

@media (min-width: 600px) {
    .contactCard {
        width: 450px;
        margin: auto;
        padding: 50px;
    }
}

.contactCard h5 {
    color: var(--grey);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 30px;
}

.contactCard h6 {
    color: var(--grey);
    font-size: 20px;
    font-weight: 500;
    margin-right: 10px;
}

.addressInfo {
    text-align: left;
    display: flex;
    margin-bottom: 15px;
}

.address p {
    color: var(--grey);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 5px;
}

.phoneInfo {
    text-align: left;
    display: flex;
}

.phone p {
    color: var(--grey);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 5px;
}

/* Footer */
footer {
    width: 100vw;
    height: 100px;
    background-color: white;
}

.footerWrapper {
    text-align: center;
    padding-top: 40px;
}

.footerWrapper p {
    color: var(--black);
    font-size: 18px;
    font-weight: 300;
}

/* Responsive */

/* Menu */
.overlay {
    width: 0%;
    height: 100%;
    background: var(--black);
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  
  .overlay.open {
    width: 100%;
  }
  
  .overlayContent {
    position: relative;
    top: 25%;
    text-align: center;
    width: 100%;  
    margin-top: 30px;
  }
  
  .overlay a {
    font-size: 22px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    color: var(--black);
    opacity: 0;
    display: block;
    -webkit-transition: color 0.3s ease 0.3s;
    transition: color 0.3s ease 0.3s;
  }
  
  .overlay a.open {
    color: white;
    opacity: 1;
  }
  
  #nav-icon {
    width: 60px;
    height: 45px;
    position: absolute;
    z-index: 1;
    top: 17px;
    right: 17px;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg) scale(0.4);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    display: none;
  }
  
  #nav-icon span {
    display: block;
    position: absolute;
    height: 9px;
    width: 100%;
    background: var(--black);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }
  #nav-icon span:nth-child(1) {
    top: 0px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
  }
  
  #nav-icon span:nth-child(2) {
    top: 18px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
  }
  
  #nav-icon span:nth-child(3) {
    top: 36px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
  }
  
  #nav-icon.open span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    top: -3px;
    left: 8px;
    background: white;
  }
  
  #nav-icon.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
    background: white;
  }
  
  #nav-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 39px;
    left: 8px;
    background: white;
  }


@media (max-width: 1100px) {
    .grid {
        grid-template-columns: 392px;
        grid-gap: initial;
    }

    .section1 .sectionWrapper {
        width: 392px;
        margin: auto;
    }

    .card:first-child {
        margin-bottom: 120px;
    }
}

@media (min-width: 1100px) {
    .section1 .sectionWrapper {
        width: 905px;
        margin: auto;
    }
}

@media (max-width: 800px) {
    nav {
        width: 100%;
        height: 75px;
        background-color: white;
        position: fixed;
        z-index: 2;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.07);
    }

    .navWrapper {
        width: 85%;
        margin: auto;
        padding-top: 22.5px;
    }

    #nav-icon {
        display: block;
    }

    .right {
        display: none;
    }
}

@media (max-width: 600px) {

    h2 {
        font-size: 38px;
    }

    #slider {
        height: 350px;
    }

    .card {
        padding-bottom: 30px;
    }

    .card ul {
        margin-right: 70px;
        margin-left: 70px;
    }

    .contactCard {
        padding: 40px;
    }
}