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

@font-face {
    font-family: Lineal;
    src: url(fonts/LinealVF.ttf);
}

@font-face {
    font-family: CirrusCumulus;
    src: url(fonts/CirrusCumulus.woff);
}

@font-face {
    font-family: Ouvrieres;
    src: url(fonts/Ouvrieres-affamees.woff);
}

@font-face {
    font-family: Karrik;
    src: url(fonts/Karrik-Regular.ttf);
}

@font-face {
    font-family: Bebas;
    src: url(fonts/BebasNeue-Regular.ttf);
}

@font-face {
    font-family: A1;
    src: url(fonts/GothicA1-Regular.ttf);
}


button {
    border: none; /* 테두리 제거 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, helvetica, arial, sans-serif;
    transition: background 500ms ease;
    
}

body, html {
    margin: 0;
    
    box-sizing: border-box;
    background-color: hotpink;
    overflow: auto;
}

.container {
    display: grid; 
    grid-template-columns: 180px 540px 660px;
    justify-content: center;
   padding: 20px;
    margin-top: 20px;
    width: 100%;
}

.sidebar {
   
}

.lefttext {
  text-align: center;
background: white;
    border: 1px solid black;
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 5px 5px 0 black;
   
    padding-block: 20px;
}

.right {
    display: flex;
    flex-direction: column;

}

.character {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 15px;
    background: white;
    border: 1px solid black;
    border-radius: 20px;
    overflow: hidden;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 /1;
    box-sizing: border-box;
    box-shadow: 0 5px 0 black;
}

.character img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    position: absolute;
}

.character-part {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none; /* To allow clicks to pass through to the mannequin */
}

.tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;

}

.tab-link {
    background: #FFA9EB;
    text-align: center;
    color: hotpink;

    padding: 1%;
    margin: 0 0.5%;
    cursor: pointer;
    font-family: Karrik;
    font-size: 21px;
    overflow: auto;
}

.tab-link:hover {
    color: hotpink;
}

.tab-content {
    display: none;
    padding: 25px 30px;
    background-color: white;
    overflow: auto;
    border: 1px solid black;
    border-radius: 20px;
    overflow: auto;
    box-shadow: -5px 5px 0 black;

}

.tab-link.active {
    background: white;
    color: black; /* Active tab background color */
    text-decoration: underline;
    border: 1px solid black;
}

.tab-content.active {
    display: block;
}

.sub-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 10px; /* 텍스트 위로 이동하기 위해 하단 마진 추가 */
}

.sub-tab-link {
    background: white;
    color: hotpink;
    padding: 1%;
    margin: 0 0.5%;
    cursor: pointer;
    font-family: Karrik;
    font-size: 18px;
    border: 1px solid hotpink;

}

.sub-tab-content {
    display: none;
    padding: 15px;
    background: white;
    border: 1px solid black;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 3px 3px 5px grey;

}

.sub-tab-link.active {
    background: hotpink;
    color: white;
}

.sub-tab-content.active {
    display: block;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    align-items: center;
    justify-content: center;

}

.option {
    width: 100px;
    height: auto;
    border-radius: 50%;
    border: 1px solid black;
    cursor: pointer;
    margin: 10px;
    
}

p{
    margin-bottom: 10px;
    font-size: 19px;
}

.logo {
    font-size: 18px;
    padding: 15px;
 
    font-family: Karrik;
  
}

#reset-button {
    display: block;
    margin: 5px auto;
    padding: 1%;
    font-size: 24px;
    width: 100px;
   color: white;
    background: red;
    font-family: Karrik;
    cursor: pointer;
     z-index: 1000; /* 높은 z-index 값 추가 */
    position: relative; /* z-index가 적용되도록 position 설정 */
   border-radius: 5px;
   
}

#save-button {
    width: 100px;
    display: block;
    margin: 10px auto;
    padding: 1%;
    font-size: 24px;
    color: white;
    background: hotpink;
    font-family: Karrik;
    cursor: pointer ;
     z-index: 1000; /* 높은 z-index 값 추가 */
    position: relative; /* z-index가 적용되도록 position 설정 */
   border-radius: 5px;
   
}

#save-button.hover{
    background: hotpink;
}

#reset-button.hover{
    background: hotpink;
}



.option.selected {
    box-shadow: 8px 8px 8px grey;
}

.selecteditem {
    padding: 25px 30px;
    color: black;
    background: white;
    border: 2px solid black;
    border-radius: 20px;
}

.select {
    
    margin-bottom: 2%;
}



.subtitle {
    font-size: 24px;
    line-height: 1.4em;
    margin-bottom: 1.2em;
    font-weight: bold;
    font-family: Karrik;
    background-color: white;
}

.guide {
    line-height: 1.4em;
    font-size: 20px;
    font-family: Karrik;
}

.description-box {
    display: none;
    position: fixed;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
 
    color: white;
    z-index: 8000;
    padding: 25px;
    overflow-y: auto;
    font-family: Karrik;
}

/* assets/style.css 파일에 추가 */

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.description-box.show {
    animation: scaleIn 0.5s forwards;
}


.description-content {
    white-space: pre-wrap;
}

.close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 15px;
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: Karrik;
}

.close-button:hover {
    background-color: #d32f2f;
}

.description-box h2 {
    margin-bottom: 10px;
}

.description-box h3 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.description-box p {
    margin-top: 5px;
    margin-bottom: 10px;
}

.lace{

   padding: 20px;

}

#outfit{
    top: -40px;
    left: -20px;
    object-fit: contain;
    width: 270px;
    height: auto;
    position: relative;
    z-index: 2000;
    margin-bottom: -70px;
}

#myname{
    position: absolute;
top: 25px;
 left: 25px;
 font-family: Karrik;
 font-size: 14px;
 color: white;
}

#myname2{
    position: absolute;
 top: 25px;
 right: 25px;
 font-family: Karrik;
 font-size: 14px;
 color: white;
}

#toplogo{
    position: relative;
    width: auto;
    height: 60px;
    
}

.lace {
  display: flex;
  flex-direction: column;
  align-items: center; /* 수평 방향 중앙 정렬 */
  text-align: center;
}

.description-box img {
  width: auto; /* 원하는 너비로 설정 */
  height: 400px; /* 높이는 비율에 맞춰 자동 조절 */
  object-fit: cover; /* 이미지 비율을 유지하면서 박스에 맞추기 */
  margin-top: 20px;
 
}

h2{
   
    font-size: 27px;

}

a{
    font-size: 20px;
    color: whitesmoke;
    margin-left: 20px;
}

a: hover {
    background-color: blue;
    color: white;
}




/* 반응형 레이아웃: 1400픽셀 이하 */
@media screen and (max-width: 1400px) {
  .container {
    display: grid;
    grid-template-areas:
      "left right"
      "character right"; /* left 아래 character, right는 독립적 */
    grid-template-columns: 2fr 1fr; /* left+character 1열, right는 고정 */
    gap: 20px;
  }

  .sidebar.left {
    grid-area: left; /* 왼쪽 상단 */
  }

  .character {
    grid-area: character; /* 왼쪽 하단 */
    width: 100%; /* 너비 조정 */
    aspect-ratio: 1; /* 정사각형 비율 */
  }

  .sidebar.right {
    grid-area: right; /* 오른쪽 단독 */
    justify-self: center; /* 중앙 정렬 */
  }

  tab-link{
    font-size: 18px;
}
}