
/* https://alikong.tistory.com/34 */

/* 클래스 간에 공유할 CSS 변수 정의 */
:root {
  --navbar-height : 30px;
}




/* burger_icon */
.burger_icon {
  cursor: pointer;
  display: none;    
  position: fixed; /* 고정된 위치로 설정 */
  z-index: 2;
  padding: 8px 0;
  top: calc(var(--navbar-height)/2);
  right: 10px;
  user-select: none;
  width: auto;
  margin: 0;
}

.burger_icon .burger_sticks {
  background: #333;
  display: block;
  height: 3px;
  position: relative;
  transition: background .2s ease-out;
  width: 23px;
}

.burger_icon .burger_sticks:before,
.burger_icon .burger_sticks:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.burger_icon .burger_sticks:before {
  top: 6px;
}

.burger_icon .burger_sticks:after {
  top: -6px;
}

.burger_check {
  display: none;
}

.burger_check:checked~.burger_icon .burger_sticks {
  background: transparent;
}

.burger_check:checked~.burger_icon .burger_sticks:before {
  transform: rotate(-45deg);
}

.burger_check:checked~.burger_icon .burger_sticks:after {
  transform: rotate(45deg);
}

.burger_check:checked~.burger_icon:not(.steps) .burger_sticks:before,
.burger_check:checked~.burger_icon:not(.steps) .burger_sticks:after {
  top: 0;
}







.menu {
  position: fixed;
  top: 0;
  right: 0px;
  width: 100%;
  height: 100%;
  max-width: 0;
  transition: 0.2s ease;
  z-index: 1;
  background-color: #eee;
}

.burger_check:checked~.menu{
  max-width: 100%;  
}
.burger_check:checked~.menu #header_list {
  display: block;
}
#header_list{
  display: none;
  padding-left: 0;
  text-align: center; /* 수평 가운데 정렬 */
  list-style-type: none;
  margin-top: 50px; /* 원하는 상단 마진 크기를 설정 */
}









.logo_image {  
  height: 20px;
  width: auto;
}
body{
  margin: 0;
}
a{
  text-decoration: none;
  color: #252525;
}





.navbar{
  display: flex;
  border-bottom: 1px solid rgba(117, 117, 117, 0.623);
  flex-direction: row;
  position: fixed; /* 고정된 위치로 설정 */
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: #dadada;
  padding: 8px 12px;
  height: var(--navbar-height); 
}

.navbar_menu{
  display: flex;
  list-style: none;
  padding-left: 0;
  
}

.navbar_menu li{
padding: 8px 12px;
}

.navbar_menu li:hover{
  background-color: rgb(235, 235, 235);
  border-radius: 5px;
}



.container{
  padding-top: 46px;
  display: flex; 
  flex-direction: column;
}

.item {
  width: 100%;
  height: 400px;
  border: 1px solid black;
}
  

.item1{
  background: #d4d4d4;
}
.item2{
  background: #d8bebe;
}
.item3{
  background: #e0a7a7;
}
.item4{
  background: #e79494;
}
.item5{
  background: #91e7a4;
}





@media screen and (max-width: 798px){
  .navbar_menu{
    display: none;
  }
  .navbar_links{
    display: none;
  }
  

  .burger_icon {
    display: inline-block;
  }
  
}
