/* ###################### 로고 및 메뉴 ###################### */

body{
    background-color: aliceblue;
}

.all{
    background-color: rgb(3, 21, 65);
}

.mouse-memoirs-regular {
    font-family: "Mouse Memoirs", sans-serif;
    font-weight: 400;
    font-style: normal;
}  

#logo {
    display: flex;
    margin-left: 50px;
}

.special-gothic-condensed-one-regular {
    font-family: 'Freesentation-9Black';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    color: rgb(244, 254, 255);
    text-decoration: none;
    font-size: 25px; 
}

.special-gothic-condensed-one-regular-2 {
    font-family: 'Freesentation-9Black';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    color: rgb(244, 254, 255);
    text-decoration: none;
    font-size: 20px; 
}

.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.menu .text {
    list-style: none;
    display: flex;
    margin-right: 50px;
    padding: 0;
}

.menu .text li {
    list-style:none;
    position: relative;
}

.menu .text li a {
    display: block;
    padding: 0 30px;
    background: rgb(3, 21, 65);
    height: 40px;
    line-height: 40px;
    color: #fff;
}

.menu .text li .submenu {
    z-index: 1200;
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.6s cubic-bezier(0.4,0,0.2,1),
        opacity 0.3s cubic-bezier(0.4,0,0.2,1);
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: rgb(3, 21, 65);
    padding: 0;
    text-align: center;
}

.menu .text li .submenu li {
    margin: 0;
}

.menu .text li .submenu li a {
    display: block;
    padding: 10px 0;
    color: #fff;
    background: rgb(3, 21, 65);
    font-size: 18px;
    border-bottom: 1px solid rgb(3, 21, 65);
    text-decoration:none;
}

.menu .text li .submenu li:last-child a {
    border-bottom: none;
}

.menu .text li:hover .submenu {
    max-height: 800px;
    opacity: 1;
}

.menu .text li:hover a {
    transform: scale(1.08) !important; 
    color: rgb(251, 255, 202);
}

.menu .text .submenu li a:hover{
    transform: scale(1.08);
    color: rgb(255, 235, 133);
}

#check{
    color: rgb(141, 227, 255);
    text-decoration: underline;
}

/* 제목 및 본문 */
h1{
    font-size: 60px;
}

.complete-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    z-index: 1200;
}

.complete-btn:hover {
    background-color: #059669;
}

.character-display {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 120px;
  z-index: 1100;
}

.character-display img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.character-display p {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.character-display .score {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0;
}

.link-btn {
    display: block;
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    text-align: center;
    margin-top: 10px; /* 캐릭터창 아래 여백 */
    font-size: 14px;
}

/* ###################### 반응형 웹 ###################### */

/* 미디어 유형이 스크린이고, 최대 너비 600px의 경우 적용할 css */
@media screen and (max-width: 600px) {
    
    #logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 24px auto;
        width: 100%;
    }

    .menu {
        
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .menu .text {
        flex-direction: column;
        align-items: center;
        margin-right: 0;
    }

    .menu .text li {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .menu .text li a {
        padding: 0 18px;
        font-size: 18px;
        text-align: center;
        border-radius: 0;
        width: 100%;
    }

    .menu .text li .submenu {
        z-index: 1200;
        display: none;
        position: static !important;
        width: 100%; 
        box-shadow: none;
        text-align: center;
        color: rgb(255, 235, 133);
        opacity: 1 !important;
        max-height: none !important;
        transition: none !important;
    }

    .menu .text li:hover .submenu,
    .menu .text li:focus-within .submenu {
        color: rgb(255, 235, 133);
        display: block; 
    }

    .menu .text li .submenu li a {
        color: rgb(255, 235, 133);
        font-size: 15px;
        padding-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* ###################### 캐릭터 및 슬라이더 스타일 ###################### */

.heading {
    text-align: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.link-btn {
    display: block;
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    text-align: center;
    margin-top: 10px; /* 캐릭터창 아래 여백 */
    font-size: 14px;
}

.link-btn:hover {
    background-color: #2563eb;
}

.slider-container {
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.slider {
    display: flex;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
}

.slider .image-wrapper {
    width: 100%;
    flex: 0 0 100%;
    position: relative;
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.select-btn {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .select-btn {
    display: block;
}

.input-container {
    margin-top: 20px;
    text-align: center;
}

.input-field {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.confirm-btn {
    background-color: #07172e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
}

.confirm-btn:hover {
    background-color: #32527e;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.arrow-btn:hover {
    background-color: rgb(187, 187, 187);
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.complete-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    z-index: 1200;
}

.complete-btn:hover {
    background-color: #059669;
}

.character-display {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 120px;
  z-index: 1100;
}

.character-display img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.character-display p {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.character-display .score {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0;
}

.link-btn {
    display: block;
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    text-align: center;
    margin-top: 10px; /* 캐릭터창 아래 여백 */
    font-size: 14px;
}
