
.layer {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.service-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.intro-card {
    padding: 24px;
    max-width: 600px;
    text-align: center;
}

.intro-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 12px;
}

.intro-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}


.logo {
    width: 300px;
    height: auto;
    margin-bottom: 16px;
    margin: auto;
    transition: transform 0.3s ease;
}

.logo img {
    width: 100%;
    height: auto;
}

.logo:hover {
    transform: scale(1.05);
}

.input-wrapper {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #2979ff;
}

.action-button, .secondary-button {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto;
}

.action-button {
    background-color: #2979ff;
    color: #ffffff;
    border: none;
}

.action-button:hover {
    background-color: #1a57c9;
}
.sub-ingredients-title{
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.group-title{
    margin-bottom: 5px;
    font-size: .9em;
    font-weight: bold;
}

.secondary-button {
    background-color: #cccccc;
    color: #333;
    border: none;
}

.secondary-button:hover {
    background-color: #bbbbbb;
}

.main-ingredient-display, .recipe-option-display, .concept-display {
    background-color: #f0f0f0;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-align: center;
    font-weight: bold;
}
.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    width: 100%; /* 버튼 그룹 너비 100% */
}

.layer.hidden {
    display: none !important;
}

.sub-ingredient-description {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}
.concept-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
}

.concept-category {
    margin-bottom: 16px;
}

.concept-category-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.concept-option-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.concept-option {
    padding: 10px 16px;
    background-color: #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #333;
}

.concept-option.selected {
    background-color: #2979ff;
    color: #ffffff;
}

.concept-option:hover {
    background-color: #cccccc;
}

.sub-ingredient-add-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

.sub-ingredient-add-wrapper .search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.sub-ingredient-add-wrapper .action-button {
    padding: 10px 16px;
    background-color: #2979ff;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sub-ingredient-add-wrapper .action-button:hover {
    background-color: #1a57c9;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .layer {
        padding: 20px;
        width: 100%;
        max-width: 400px;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
        width: 100%; /* 모바일에서 버튼 그룹 너비 100% */
    }

    .action-button, .secondary-button {
        width: 100%; /* 버튼도 100%로 확장 */
    }
}

@media (max-width: 480px) {
    .logo {
        width: 250px;
    }

    .action-button, .secondary-button {
        padding: 10px;
        font-size: 13px;
        width: 100%; /* 모바일에서 버튼 100% */
    }
}
