main_style.css 3.98 KB
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
.search-box{
    position: relative;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  /* //박스 길이 조절 */
  .search-box.active{
    width: 700px;
  }
  .search-box input{
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 50px;
    background: #fff;
    outline: none;
    padding: 0 60px 0 20px;
    font-size: 18px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  /* 불투명도 */
  .search-box input.active{
    opacity: 1;
  }
  .search-box input::placeholder{
    color: #a6a6a6;
  }
  .search-box .search-icon{
    position: absolute;
    /* 버튼위치 */
    right: -380px;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 60px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 22px;
    color: #CB25FF;
    cursor: pointer;
    z-index: 1;
    /* transition: all 0.5s cubic-bezier(0.6, -0.28, 0.74, 0.05); */
    /* transition: cubic-bezier(0.39, 0.575, 0.565, 1); */
    transition-timing-function: linear;
  }
  .search-box .search-icon.active{
    right: 5px;
    height: 50px;
    line-height: 50px;
    width: 50px;
    font-size: 20px;
    background: #CB25FF;
    color: #fff;
    transform: translateY(-50%) rotate(360deg);
  }
  .search-box .cancel-icon{
    position: absolute;
    right: -380px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    color: #fff;
    cursor: pointer;
    /* transition: all 0.5s 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55); */
    /* transition: cubic-bezier(0.39, 0.575, 0.565, 1); */
    transition-timing-function: linear;
  }
  .search-box .cancel-icon.active{
    right: -40px;
  }
  .search-box .search-data{
    text-align: center;
    padding-top: 7px;
    color: #fff;
    font-size: 18px;
    word-wrap: break-word;
  }
  .search-box .search-data.active{
    display: none;
  }
header
{
    background-image:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,100,0.5)), url(/images/back1.jpg);
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: 5s;

    animation-name: animate;
    animation-direction: alternate-reverse;
    animation-duration: 30s;
    animation-fill-mode:forwards;
    animation-iteration-count: infinite;
    animation-play-state: running;
    animation-timing-function:ease-in-out;
}
@keyframes animate{
    0%{
        background-image:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,100,0.5)), url(/images/back1.jpg);
    }
    33%{
        background-image:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,100,0.5)), url(/images/back2.jpg);
    
    }
    66%{
        background-image:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,100,0.5)), url(/images/back3.jpg);
    
    }
}
.nav-bar
{
    background: rgb(0,0,0,0.5);
    height: 80px;
}

.logo{
    background-color: #fff;
    margin: 10px 50px;
    height: 60px;
}

.menu{
    float: right;
    list-style: none;
    margin:20px;
}

.menu li{
    display: inline-block;
    margin: 10px 5px;
}

.menu li a{
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    font-family: sans-serif;
    letter-spacing: 2px;
    border: 1px solid #fff;
}

.menu li a:hover{
    background: #fff;
    transition: .4s;
    color: #000;
}

.welcome{
    position: absolute;
    top:20vh;
    left: 50%;
    width: 700px; height: 160px;
    margin-left: -350px;
    text-align:center;
    font-family: sans-serif;
    color:#fff;
}

.welcome h1{
    font-size: 42px;
    margin: 25px;
}

.btn{
    font-size:18px;
    letter-spacing: 2px;
    margin:5px;
    padding:7px 10px;
    text-decoration: none;
    border: 1px solid #fff;
}

.btn{
    color:#fff;

}
.btn:hover{
    background: #fff;
    color: #000;
    transition: .4s;
}