@import url('../fonts/Gilroy/stylesheet.css');

:root {
    --main-green: #204131;
    --main-orange: #D85800;
    --main-white: #fff;
}

body {
    font-family: 'Roboto', sans-serif;
    font-family: 'Gilroy Office';
    font-family: 'Gilroy';
    margin: 20px;
    background-color: #ffffff;
    color: #333;
}

h1 {
    text-align: center;
    color: var(--main-green);
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
}

.pref {
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.references h6 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 16px;
}

.references ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.references ul li {
    font-size: 14px;
    margin-bottom: 12px;
}

.references ul li:last-child {
    margin: 0;
}

#finalResult {
    margin-bottom: 24px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #f5f3ef;
    border-radius: 12px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    padding: 20px;
}

.text-center {
    text-align: center;
}

.group {
    margin-bottom: 20px;
}

.group>div {
    padding: 0 16px;
    border: 1px solid #ddd;
    margin-bottom: 16px;
}

.symptom-group {
    margin-bottom: 20px;
}

.symptom-group>label {
    margin-bottom: 10px;
    color: var(--main-green);
    font-size: 18px;
    display: inline-block;
}

.section {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #ddd;
    margin-bottom: 16px;
}

.section h3 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
}

.tap-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tap-button {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background-color: #E1ECE5;
    color: var(--main-green);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    /* font-weight: bold; */
    font-size: 14px;
    word-break: break-word;
    align-items: center;
    justify-content: center;
    display: flex;
    position: relative;
}

.tap-button:hover {
    background-color: #C3D9CB;
    /* transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.tap-button.selected {
    background-color: var(--main-green);
    color: white;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
}

.tap-button::after {
    content: '✓';
    position: absolute;
    left: -5px;
    top: -5px;
    font-size: 14px;
    width: 24px;
    height: 24px;
    line-height: 25px;
    border-radius: 50%;
    background: var(--main-orange);
    color: var(--main-white);
    font-weight: 600;
    opacity: 0;
    transform: scale(2);
    transition: all ease 0.2s;
}

.tap-button.selected::after {
    opacity: 1;
    transform: scale(1);

}

.tap-button input {
    display: none;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--main-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

button:hover {
    background-color: #005f73;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button.reset-button {
    background-color: #e63946;
}

button.reset-button:hover {
    background-color: #c82333;
}

.result {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

@media (max-width: 600px) {
    .group {
        flex-direction: column;
    }

    .tap-buttons {
        flex-direction: column;
    }

    .tap-button {
        margin-bottom: 10px;
    }
}