* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #d77c68;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    position: relative;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.topHat {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
}

.topHatInner {
    width: 100%;
    margin: 20px auto;
    margin-bottom: 0px;
    text-align: center;
}

.topHatInner img {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.allMid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.intro h1 {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 40px;
    text-align: center;
}

.intro p {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
}

.pants {}

.menuButton {
    position: absolute;
    top: 0px;
    right: 20px;
    min-width: 40px;
    min-height: 10px;
    padding:  5px;
    border-radius: 10%;
    background-color: #d77c68;
    border: none;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.menuButton:hover {
    background-color: #fff;
    color: #d77c68;
}

.slideNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transition: right 0.3s;
}

.slideNav.active {
    right: 0;
}

.slideNav ul {
    list-style-type: none;
    padding: 10% 0 0;
    margin: 0;
    text-align: center;
}

.slideNav ul li {
    margin-bottom: 5px;
}

.slideNav ul li a {
    display: block;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #d77c68;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.slideNav ul li a:hover,
.slideNav ul li a:focus {
    background-color: #d77c68;
    color: #fff;
}

.slideNav ul li a:active {
    background-color: #fff;
    color: #fff;
}

@media (min-width: 720px) {
    .slideNav {
        width: 25%;
    }
   .slideNav ul {
        text-align: left;
    }
}

.closeButton {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 20px;
    height: 20px;
    font-size: 25px;
    line-height: 20px;
    background: none;
    border: none;
    color: #d77c68;
    cursor: pointer;
    transition: color 0.3s;
}

.closeButton:hover {
    color: #000;
}
/* Square */
.square {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative;
    width: calc(33.33% - 20px);
    background-color: #000;
    margin-bottom: 20px;
    padding: 0;
    max-height:240px;
}

.square a {
    display: block;
    width: 100%;
    height: 100%;
}

.square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
}

.square:hover img {
    opacity: 1;
}

.square h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #fff;

}

.square:hover h2 {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    opacity: 0;
}

@media (max-width: 768px) {
    .wrap,
    .topHat,
    .allMid,
    .intro,
    .pants {
        padding: 10px;
    }
    
    .topHatInner img {
        display: block;
        max-width: 150px;
        height: auto;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
  .square {
    width: calc(98%);
    margin: 10px 0;
  }
}
