@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
}

#wrap {
  width: 100%;
  height: 100vh;
  background: url(../img/index_img.jpg) center no-repeat;
  background-size: cover;
}

header {
  height: 50%;
  position: relative;
}

h1 {
  text-align: right;
  padding: 20px;
  font: 1.6em '맑은 고딕';
  color: #fff;
}

h1 > span {
  font: bold 1.5em '맑은 고딕';
}

h3 {
  font: 1em/1.8 '나눔명조';
  text-align: right;
  padding: 20px;
  color: rgba(255, 255, 255, 0.7);
}

section {
  height: 50%;
  position: relative;
}

section ul {
  width: 100%;
  padding: 20px;
  position: absolute;
  bottom: 0;
  box-sizing: border-box;
}

section ul li {
  font: bold 2em/5 '맑은 고딕';
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
}

.box {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 100%;
  transition: all 0.5s ease-in-out;
}

.box > div {
  position: relative;
  top: 50%;
  transform: translateY(-50%)
}

.box a {
  font: 0.5em/2 '맑은 고딕';
  display: block;
  color: white;
}

section ul li:hover .box {
  top: 0;
}

@media all and (min-width:768px) {

  header,
  section {
    width: 768px;
    margin: 0 auto;
  }

  h1 {
    padding: 20px;
    font: 2em '맑은 고딕';
    color: #fff;
  }

  h1 > span {
    font: bold 1.9em '맑은 고딕';
  }

  h3 {
    font: 1.4em/1.8 '나눔명조';
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
  }

  section > ul {
    display: flex;
    justify-content: space-between;
  }

  section > ul > li {
    width: calc((100% - 40px) / 3);
    height: 200px;
    line-height: 180px;
  }
}
