/* 폰트 */

@font-face {
    font-family: 'T-Money-Dungunbaram';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/TmoneyRoundWindRegular.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'T-Money-Dungunbaram';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/TmoneyRoundWindExtraBold.woff') format('woff');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Suit';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Suit';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-display: swap;
}


@font-face {
    font-family: 'TMoneyDungunbaram';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/TmoneyRoundWindExtraBold.woff') format('woff');
    font-weight: 800;
    font-display: swap;
}
 


/* wesafean header */
#wesafean3-header-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px 20px 20px;
}



#wesafean3-header,
#swipe-wrapper {
    overflow-x: hidden;
}

#wesafean3-list{
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(191,205,205);
    margin: 0 20px;

}

#wesafean3-list button{
    background-color: transparent;
    cursor: pointer;
    color: rgb(191,205,205);
    height: 5vh;
    line-height: 30px;
    padding: 0 10px;
    width: 50%;
    font-size: 2vh;
    border-radius: 0;
    font-family: 'T-Money-Dungunbaram', sans-serif;

}
#wesafean3-list button.active{
    border-bottom: 4px solid black;
    cursor: pointer;
    height: 5vh;
    line-height: 30px;
    padding: 0 10px;
    width: 50%;
    color: black;
    font-size: 2vh;
    border-radius: 0;
    font-family: 'T-Money-Dungunbaram', sans-serif;
    font-weight: 800;
}


#swipe-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

#swipe-container {
    display: flex;
    width: 200%;
    transition: transform 0.3s ease;
    height: 100%;
    overflow-x: hidden;
}

#safean-main, #school-main {
    width: 100%;
    height: 100%;
    overflow-y: hidden; 
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

#wesafean3-logo img{
    height: 4vh
}

#wesafean3-top{
    display: flex;
    align-items: center;
}

#wesafean3-top img{
    height: 3vh;
    margin-left: 10px;
}
#wesafean-safean a, #wesafean-school a{
    text-decoration: none;
    color: rgb(42, 206, 72);
}
#wesafean-safean a.active, #wesafean-school a.active{
    text-decoration: none;
    color: white;
}





/* safean main */
#safean{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    width: 100%;
}

#safean-story {
    width: 100%;
    background-color: #41B64A;
    border-radius: 30px
}
#safean-story img{
    height: 3vh;
    margin: 10px 0px 10px 30px;
}
#safean-menu{
    margin-top: 11px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 11px;
}

.safean-menu-box {
    grid-column: 1 / span 2;
}


.safean-find{
    display: flex;
    justify-content: space-between;
    background-color: #FFFFFF;
    border-radius: 40px;
    height: 8vh;
    margin-top: 15px;
    box-shadow: 0px 0px 8px #00000008;
}

.safean-find a {
    display: flex;              
    justify-content: space-between;
    align-items: center;
    width: 100%;              
    height: 100%;              
    text-decoration: none;
    color: inherit;
}

.safean-find a img{
    height: 3vh;
    margin: 0 20px;
}
#find-text{
    margin-left: 20px;
    margin-top: 10px;
    font-family: 'Suit';
    font-size: 2vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-family: 'Suit';
    font-weight: 700;
}
#find-text img{
    width: 9vh; 
    aspect-ratio: auto;
    max-width: 100%;
    flex-shrink: 0; 
}

.safean-management{
    height: 15vh;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

.safean-management a{
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    width: 100%;              
    height: 100%;  
}

.safean-etc{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.safean-etc-box{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: 100%;
}
.safean-etc-box img{
width: 16vw;
}
.safean-etc-box-text{
    text-align: center;
    font-family: 'Suit';
    font-weight: 600;
    font-size: 3.5vw;
}


.point-box{
    padding: 1.2vh;
    border-radius: 20px;
    font-family: 'Suit';
    font-size: 1.6vh;
     width: max-content;
}


/*  폰트 ag we/sub title이라고 되어 있어서 임의로 지정 */


.safean-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 39px;
    margin-bottom: 15px;
}

.safean-footer-logo img{
    height: 5vh;
    margin-bottom: 15px;
}
.safean-footer-text{
    font-family: 'Suit';
    font-size: 1.5vh;
    color: #C3C8CE;
}


#safean-banner-container {
    width: 100%;
    overflow: visible;
    position: relative;
    padding: 0 20px;
}

#safeean-banner-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    position: relative;
    gap: 15px;
}

.safeean-banner-slide {
    min-width: calc(100% - 5px);
    width: calc(100% - 5px);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.safeean-banner-slide img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

.banner-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: hsla(0, 0%, 100%, 0.60);
    padding: 2px 15px;
    border-radius: 20px;
    font-family: 'Suit';
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.banner-indicator #current-slide {
    font-weight: 500;
    margin-right: 2px;
}
.banner-indicator #total-slide {
    font-weight: 500;
    margin-left: 2px;
}

#safeean-container {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 20px;
    padding: 0 10px;
}

#typing-animation-button {
    display: flex;
    align-items: center;
    font-family: 'Suit';
    font-weight: 500;
    font-size: 2.3vh;
    position: relative;
}

.typed-text {
    color: #000000;
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 1px;
    height: 3vh;
    background-color: rgb(0, 0, 0);
    margin-left: 2px;
}

.safean-story{
    margin: 10px 10px;
}



/* school main */
#school-main{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;

        position: relative; /* 필요 시 */
    overflow: visible;  /* 모달이 부모 밖으로 나올 수 있게 */
}

#school-info{
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Suit';
    font-weight: 700;
    font-size: 2.3vh;
    margin-bottom: 15px;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 10px 20px;
}
.school-info-name{
    display: flex;
    align-items: center;
    gap: 20px;
}

#school-meal{
    width: 90%;
}

.school-box{
    width: 100%;
    border-radius: 20px;
}

.school-today-text{
    background-color: #00A99D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 40px;

}
.school-today-menu{
    background-color: #FFFFFF;
    margin-top: -30px;
    padding: 20px;
}

.school-today-title{
    font-family: 'Suit';
    font-weight: 700;
    font-size: 3vh;
    color: #FFFFFF;
}
.school-today-date{
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    font-family: 'Pretendard';
    font-weight: 600;
    font-size: 2.3vh;
    padding: 2px 10px;
    color: #00A99D;
}

.school-today-meal{
    background-color: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #00A99D;
    padding: 20px;
}
#school-today-info{
    border: 1px solid #00A99D;
    border-radius: 20px;
    margin-top: 10px;
    font-family: 'Pretendard';
    font-weight: 700;
    color: #00A99D;
    font-size: 2vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}
#school-today-info img{
    width: 17px;
}

#school-menu{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
    width: 90%;
    margin-top: 10px;
}

.school-menu-box{
    height: 18vh;
    background-color: white;
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.school-menu-box:active {
    transform: translateY(1px) scale(0.98);
}


.school-menu-box-title{
    font-family: 'Suit';
    font-weight: 700;
    font-size: 2.5vh;
}

.school-menu-box-img{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}

.school-menu-box-img img{
    height: 10vh;
}

.point-purple{
    background-color: #E8E4FF;
    color: #3D3D3D;
    line-height: 2px;
}
.point-lightgreen{
    background-color: #D5F6E1;
    color: #3D3D3D;
    line-height: 2px;
}

.school-menu-margin{
    margin-top: 20px;
}

#school-footer img{
    height: 5vh;
    margin-top: 20px;
}

#school-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 15px;
}

.school-footer-logo{
    margin-bottom: 10px;
}

/* 🔹 모달 전체 화면 덮기 */
#school-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 🔹 검정 반투명 배경 */
#school-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* 🔹 모달 콘텐츠 */
#school-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  z-index: 2;
}

/* 🔹 스크롤 잠금 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 모달 열렸을 때 body 스크롤 방지 및 고정 */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
    touch-action: none !important;
}

/* 스와이프 비활성화 */
#swipe-wrapper.no-swipe {
    touch-action: none !important;
    pointer-events: none !important;
}

#swipe-wrapper.no-swipe #swipe-container {
    pointer-events: none !important;
}

/* 모달이 열렸을 때 header 아래로 보내기 */
#wesafean3-header {
    position: relative;
    z-index: 100;
}

#school-modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    margin-bottom: 20px;
    background-color: #00a99d;
    padding: 10px 30px;
}

#school-modal-date {
    font-family: 'Suit';
    font-weight: 700;
    font-size: 16px;
    color: white;
}

#school-modal-title {
    font-family: 'Suit';
    font-weight: 700;
    font-size: 20px;
    color: white;
}

#school-modal-close {
    position: absolute;
    right: 30px;
    top: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
}
#school-modal-close  img{
    width: 23px;
    height: 23px;
}

.school-modal-section {
    padding: 5px;
    background-color: #f5f5f5;
    margin: 10px 20px;
    border-radius: 12px;
}

.school-modal-subtitle {
    font-family: 'Suit';
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    margin-left: 5px;
    display: flex;
    align-items: center;
}

.school-modal-content-box {
    border-radius: 12px;
}

.school-modal-allergy{
    background-color: #fff9f2;
    border: 1px solid #ff8800;
    border-radius: 12px;
    padding: 15px;
    margin: 0px 20px;
}

.school-modal-subtitle img{
    width: 20px;
    height: 20px;
    margin-left: 5px;
}



/* 영양성분 스타일 */
.school-modal-nutrition {
    border-radius: 12px;
    padding: 5px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.nutrition-item {
    flex-direction: column;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 5px 15px;
    border-radius: 10px;
}

.nutrition-label {
    font-family: 'Suit';
    font-weight: 500;
    font-size: 14px;
    color: #292929;
}

.nutrition-value {
    font-family: 'Pretendard';
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

#nutrition-cal{
    color: #9810FA;
}
#nutrition-carb{
    color: #155DFC;
}
#nutrition-protein{
    color: #00A663;
}
#nutrition-fat{
    color: #F54A29;
}
#nutrition-calcium{
    color: #E82022;
}
#nutrition-iron{
    color: #219689;
}



.nutrition-note {
    font-family: 'Pretendard';
    font-weight: 400;
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

/* 알레르기 스타일 */
.allergy-box {
    text-align: center;
}

.allergy-warning {
    font-size: 12px;
    color: #303030;
    margin-bottom: 15px;
    text-align: left;

}

.highlight-text {
    color: #00A99D;
    font-weight: 600;
}

.allergy-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.allergy-btn {
    background-color: #ffffff;
    border: 1px solid #FF8800;
    border-radius: 20px;
    padding: 4px 15px;
    font-family: 'Pretendard';
    font-weight: 600;
    font-size: 13px;
    color: #FF6200;
    cursor: pointer;
}

/* 원산지 스타일 */
.origin-box {
    display: grid;
    gap: 0px;
    overflow: hidden;
    border-radius: 12px;
}

.origin-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.origin-header-ingredient {
    font-family: 'Pretendard';
    font-weight: 600;
    font-size: 14px;
    color: #838383;
    text-align: center;
    padding: 6px 0;
    background-color: #ffffff;
    margin-left: 10px;
    margin-right: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.origin-header-location {
    font-family: 'Pretendard';
    font-weight: 600;
    font-size: 14px;
    color: #838383;
    text-align: center;
    padding: 6px 0;
    background-color: #ffffff;
    margin-right: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}


.origin-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.origin-item:last-child {
    border-bottom: none;
}

.origin-item:last-child .origin-ingredient {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.origin-item:last-child .origin-location {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.origin-ingredient,
.origin-location {
    background-color: #fff;
    font-family: 'Pretendard';
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    padding: 6px 0;
}

.origin-ingredient{
    margin-left: 10px;
    margin-right: 10px;
}
.origin-location{
    margin-right: 10px;
}

.origin-ingredient:last-child {
    border-radius:50%
}


.no-data {
    text-align: center;
    color: #999;
    font-family: 'Pretendard';
    font-weight: 400;
    font-size: 14px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
}

/* 스쿨 로그아웃 */

.school-logout-logo img{
    width: 70vw;
}

.school-logout-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px 20px;
}

.school-logout-logo {
    margin-top: 60px;
    margin-bottom: 25px;
}

.school-logout-button{
    background-color: #00A99D;
    width: 90vw;
    height: 7vh;
    color: white;
    font-family: 'TMoneyDungunbaram';
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}


.school-logout-img{
    width: 75vw;
    margin-bottom: 3vh;
}

.school-logout-graylogo img{
    width: 35vw;
    margin-top: 5vh;
    margin-bottom: 15px;
}

.school-logout-text {
    font-family: 'Suit';
    font-weight: 500;
    font-size: 12px;
    color: #c3c8ce;
}




/* 메뉴 타이틀 스타일 추가 */
.menu-title {
    font-family: 'Suit';
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.menu-subtitle {
    font-family: 'Pretendard';
    font-weight: 400;
    font-size: 13px;
    color: #666;
}

/* main find */

#find-header-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.93px solid #e0e0e0;
    padding-top: 30px;
    padding-bottom: 10px;
}

#find-header-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.find-header-top-left img{
    height: 3vh;
}
.find-header-top-center {
    font-family: 'Pretendard';
    font-weight: 600;
    font-size: 2.3vh;
}

#wfind-header-bottom{
    display: flex;
    align-items: center;
    border: none;
    margin: 0 20px;

}

#find-header-bottom button{
    background-color: transparent;
    cursor: pointer;
    color: black;
    height: 5vh;
    line-height: 30px;
    padding: 0 10px;
    width: 50%;
    font-size: 2vh;
    border-radius: 0;
    font-family: 'Suit';
    font-weight: 600;

}
#find-header-bottom button.active{
    border-bottom: 4px solid black;
}
#find-header-bottom button img{
    height: 2.5vh;
}

#find-swipe-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

#find-swipe-container {
    display: flex;
    width: 300%;
    transition: transform 0.3s ease;
    height: 100%;
    overflow-x: hidden;
}

#find-map, #find-list, #find-heart {
    width: 100%;
    height: 100%;
    overflow-y: hidden; 
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}


