@font-face {
    font-family: 'FZZWXBTOT_Unicode';
    src: url('FZZWXBTOT_Unicode.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'FZZWXBTOT_Unicode', sans-serif;
    background-color: #f8f5f2;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e8d4d0;
}

h1 {
    font-size: 2.5rem;
    color: #c06c84;
    margin-bottom: 10px;
}

.english-text {
    display: block;
    font-size: 1rem;
    color: #888;
    margin-top: 5px;
}

main {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.step-container {
    position: relative;
    min-height: 400px;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: 25px;
    text-align: center;
}

.step-header h2 {
    font-size: 2rem;
    color: #c06c84;
    margin-bottom: 10px;
}

.step-header p {
    font-size: 1.2rem;
    color: #555;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-field {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    margin: 15px 0;
    border: 2px solid #e8d4d0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: 'FZZWXBTOT_Unicode', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: #c06c84;
}

button {
    padding: 12px 25px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: 'FZZWXBTOT_Unicode', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn, .reset-btn {
    background-color: #c06c84;
    color: white;
}

.next-btn:hover, .reset-btn:hover {
    background-color: #a0516d;
}

.prev-btn {
    background-color: #f8f5f2;
    color: #c06c84;
    border: 2px solid #c06c84;
}

.prev-btn:hover {
    background-color: #e8d4d0;
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.cycle-options, .period-options {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cycle-option, .period-option {
    background-color: #f8f5f2;
    border: 2px solid #e8d4d0;
    border-radius: 10px;
    padding: 15px;
    width: 30%;
    min-width: 150px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.cycle-option:hover, .period-option:hover {
    border-color: #c06c84;
    background-color: #f2e5e3;
}

.cycle-option.selected, .period-option.selected {
    border-color: #c06c84;
    background-color: #f2e5e3;
}

.tibetan-text {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.custom-cycle, .custom-period {
    width: 100%;
    max-width: 300px;
    margin: 15px 0;
    text-align: center;
}

.custom-cycle label, .custom-period label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.results-container {
    width: 100%;
    margin: 20px 0;
}

.result-item {
    background-color: #f8f5f2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.result-item h3 {
    color: #c06c84;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.result-item p {
    font-size: 1.2rem;
    font-weight: bold;
}

.info-section {
    width: 100%;
    margin-top: 30px;
}

.info-section h3 {
    color: #c06c84;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5rem;
}

#health-info {
    background-color: #f8f5f2;
    border-radius: 10px;
    padding: 20px;
    line-height: 1.8;
}

#health-info p {
    margin-bottom: 10px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: #e8d4d0;
    z-index: 1;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e8d4d0;
    position: relative;
    z-index: 2;
}

.progress-step.active {
    background-color: #c06c84;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e8d4d0;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .cycle-options, .period-options {
        flex-direction: column;
        align-items: center;
    }
    
    .cycle-option, .period-option {
        width: 80%;
    }
}