/******************************************
/* SETUP
/*******************************************/

/* Box Model Hack */
* {
    box-sizing: border-box;
  }

  :root {
    --mid-blue: #013440;
    --dark-blue: #01043F;
    --red: #C00000;
    --light-grey: #EEEEEE;
    --mid-grey: #BDBDBD;
    --dark-grey: #B4B1B1;
    --light-blue: #2229A8;
  }
  
  /******************************************
  /* BASE STYLES
  /*******************************************/
  
  body {
      color: var(--mid-blue);
      line-height: 1.5;
      font-family: 'Montserrat', sans-serif;
      background-color: white;
      font-size: 20px;
  }
  
  img {
      max-width: 100%;
  }

  /******************************************
/* LAYOUT
/*******************************************/

/* Center the container */
.container {
    max-width: 90%;
    margin: 0 auto;
    width: 2000px;
}

.wrapper {
    width: 60%
}

@media (max-width: 800px) {
    .wrapper {
        width: 100%
    }
}

  /******************************************
/* HEADER
/*******************************************/

header {
    border-bottom: solid 2px var(--mid-blue);
}

header img {
    width: 83px;
    height: 31px;
}

.main-header {
    position: fixed;
    right: 0;
    left: 0;
    background-color: white;
    z-index: 10;
}

.header-box {
    padding: 25px 31px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header li {
    display: inline-block;
    padding-left: 30px;
}

.burger div {
    width: 32px;
    height: 3px;
    display: block;
    background-color: var(--mid-blue);
    margin: 5px;
    transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

.burger {
    display: none;
}

.is-active .line2 {
    display: block;
    opacity: 0;
}

.is-active .line1 {
    transform: translateY(7.6px) rotate(45deg);
}

.is-active .line3 {
    transform: translateY(-7.6px) rotate(-45deg);
}

header h1 {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .img {
    display: block;
}

.my-name {
    padding-left: 30px;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--mid-blue);
    font-weight: 500;
}


@media (max-width: 670px){
    .menu {
        position: absolute;
        right: 0px;
        top: 83px;
        height: 110vh;
        display: none;
        width: 100%;
        background-color: white;
        font-size: 25px;
    }
    header li {
        padding-left: 0px;
        padding-top: 40px;

    }
    .burger {
        display: block;
    }
    .active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 485px){
    .my-name {
        display: none;
    }
}

  /******************************************
/* HOME
/*******************************************/

.welcome {
    font-size: 2.350em;
    font-weight: 600;
    width: 670px;
    margin: 0;
}

.welcome strong {
    color: var(--dark-blue);
}

.welcome b{
    color: var(--mid-blue);
}

@media (max-width: 695px) {
    .welcome {
        font-size: 1.6em;
        font-weight: 600;
        width: 100%;
    }
}

.h4-no-padding {
    padding-top: 0px;
}

.welcome-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.preview-images {
    background-color: var(--light-grey);
}

.preview-images .images {
    display: flex;
    padding: 57px 0;
}

.images a:not(:last-child) {
    margin-right: 25px;
}

.preview-images img {
    display: block;
    width: 100%;
}

.more-info {
    position: relative;
    flex: 1;
}

.more-info:hover:before {
    background-color: rgba(0,0,0,0.4);
    opacity: 1;
}

.more-info:before {
    align-items: center;
    background-color: rgba(0,0,0,0);
    opacity: 0;
    color: white;
    content: attr(data-title);
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    transition: all 0.3s;
    width: 100%;
}

.footer-links {
    font-size: 0.800em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 70px 0px 20px 0px;
}

.footer-links li {
    padding-right: 60px;
}

.footer-links li:last-child {
    padding-right: 0px;
}

@media (max-width: 800px) {
    .preview-images .images {
        display: flex;
        flex-direction: column;
    }
    .images a {
        margin:  20px;
    }
}

@media (max-width: 400px) {
    .footer-links li {
        padding-right: 35px;
    }
}

  /******************************************
/* WORK
/*******************************************/

.title {
    padding-top: 100px;
    padding-bottom: 15px;
    font-size: 1.500em;
    font-weight: 500;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-column-gap: 40px;
    grid-row-gap: 40px;
}

h2 {
    color: var(--dark-blue);
    font-size: 1.150em;
    margin-bottom: -3px;
}

@media (max-width: 360px) {
    .gallery {
        display: flex;
        flex-direction: column;
    }
    .gallery div {
        padding-bottom: 40px;
    }
}

  /******************************************
/* WORK AIRPURIFIER
/*******************************************/

.purifier-hero {
    padding-top: 80px;
    width: 100%;
}

.image-detail {
    width: 100%;
}

.button-lay {
    padding-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

  /******************************************
/* ABOUT
/*******************************************/

p {
    font-size: 0.900em;
}

.p-about {
    padding-bottom: 30px;
}

h4 {
    padding-top: 60px;
}

h5 {
    display: inline-block;
    font-size: 0.900em;
    font-weight: 500;
    padding-right: 15px;
}

.no-padding {
    padding-top: 30px;
}

.sty-button a {
    font-size: 0.900em;
    color: var(--red);
    border: #C00000 1px solid;
    padding: 5px 40px;
    display: inline-block;
}

@media (max-width: 480px) {
    .sty-button .button-lay a {
        font-size: 0.800em;
        color: var(--red);
        border: #C00000 1px solid;
        padding: 10px 10px;
        display: inline-block;
    }
}

.book-shelf {
    background-color: var(--light-grey);
}

.book-shelf ul {
    display: flex;
    justify-content: space-between;
    padding: 30px 0px;
}

.image-wrapper {
    height: 131px;
    width: 100%;
}

.tab {
    position: relative;
}

.tab::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 16.5px 20px 16.5px;
    border-color: transparent transparent white transparent;
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    display: none;
}

.tab.active::before {
    display: block;
}

.tab:hover {
    box-shadow: 6px 6px var(--mid-grey);
}

.tab.active {
    box-shadow: 4px 4px var(--mid-grey);
}

.image-wrapper img {
    height: 100%;
}

.content {
    padding-bottom: 30px;
}

.content > div {
    background-color: white;
    padding: 20px;
    display: none;
}

#content-1 {
    display: block;
}

.book-button {
    padding: 10px 20px 20px 0px;
    display: flex;
    justify-content: flex-end;
}

  /******************************************
/* CONTACT
/*******************************************/

.h4-exception {
    padding-top: 0px;
}

.contact-links {
    color: var(--light-blue);
    font-weight: 300;
}

.links-style {
    padding-bottom: 30px;
}

.form-background {
    background-color: var(--light-grey);
}

.form-style button {
    font-size: 0.900em;
    color: var(--red);
    border: #C00000 1px solid;
    padding: 5px 40px;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
}

textarea {
    resize: none;
  }

.form-style {
    padding: 25px;
}

input {
    display: block;
    width: 100%;
    height: 40px;
    border: none;
    font-size: 0.900em;
    padding: 5px;
    font-weight: 200;
    font-family: 'Montserrat', sans-serif;
    color: var(--mid-blue);
}

textarea {
    display: block;
    width: 100%;
    border: none;
    font-size: 0.900em;
    padding: 5px;
    font-weight: 200;
    font-family: 'Montserrat', sans-serif;
    color: var(--mid-blue);
}

.button-styling {
    padding-top: 10px;
}