@import url("https://fonts.googleapis.com/css2?family=Alata&display=swap");

body {
    font-family: 'Alata', sans-serif;
}

.know-more-btn {
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    background-color: #005f57;
    box-shadow: inset 0 0 5px black;
    border: 1px #005f57;
    color: white;
}

.know-more-btn:hover {
    background-color: white;
    color: #000;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
}

.slider-container {
    width: 300px;
    margin: 50px auto;
    text-align: center;
}

.slider-container input[type="range"] {
    -webkit-appearance: none; 
    appearance: none;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #00ffea, #005f57); 
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background-color: #005f57; 
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease-in-out;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background-color: #243533; 
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease-in-out;
}

.slider-container input[type="range"]:hover {
    opacity: 1; 
}

.slider-container input[type="range"]:active::-webkit-slider-thumb {
    background-color: #98fff6; 
}

.slider-container input[type="range"]:active::-moz-range-thumb {
    background-color: #005f57; 
}

.labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.price-display {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#quiz-form {
    width: 90%;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.question p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #005f57;
    box-shadow: 0 0 3px inset #005f57;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="radio"],
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    margin-right: 10px;
  }

  input[type="radio"]:checked + label,
  input[type="checkbox"]:checked + label {
    background-color: salmon;
    color: #fff;
    transition: 0.3s;
  }

label {
    font-size: 16px;
    color: #000000;
    padding: 10px 20px;
    background-color: rgb(253, 199, 192);
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 20px;
    display: inline-block;
    vertical-align: middle;
}

label:hover {
    box-shadow: 0 0 10px inset rgb(201, 82, 71);
}

input[type="radio"]:checked + label:hover,
  input[type="checkbox"]:checked + label:hover {
    box-shadow: 0 0 10px inset rgb(109, 32, 25);
  }

.navigation button {
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#back-button, #next-button, #submit-button {
    background-color: #005f57;
    box-shadow: 0 0 10px inset black;
    color: #ffffff;
    padding-left: 25px;
    padding-right: 25px;
}

#back-button:hover, #next-button:hover, #submit-button:hover {
    background-color: #009c9c;
}

#submit-message {
    text-align: center;
    font-size: 24px;
    color: #333;
    padding: 20px;
}

#btype {
    width: 300px;
    height: 250px;
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    height: 100vh;
    background-color: #e7fffd;
} 

.side {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.left, .right {
    border: 0 solid #005f57;
    border-radius: 5px;
    box-shadow: 0 0 10px #005f57;
    background-color: #005f57;
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 2px 3px 10px inset rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    cursor: pointer;
}

.circle.answered {
    color: white;
}

.circle.answered:hover {
    box-shadow: 0 0 15px inset rgb(0, 0, 0);
}

.center {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.navigation {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.answered {
    color: #fff;
    border-color: #fff;
}

@media (max-width: 1024px) {
    .container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: auto;
    }

    #quiz-form {
        padding: 10px;
    }

    .question p {
        font-size: 16px;
    }

    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    input[type="number"], 
    input[type="file"] {
        padding: 8px;
        font-size: 14px;
    }

    label {
        font-size: 14px;
    }

    .navigation button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #submit-message {
        font-size: 20px;
    }

    .side {
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 150px;
    }

    .circle {
        width: 120px;
        height: 120px;
        margin: 5px 0;
    }

    .center {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    #quiz-form {
        padding: 5px;
    }

    .question p {
        font-size: 14px;
    }

    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    input[type="number"], 
    input[type="file"] {
        padding: 6px;
        font-size: 12px;
    }

    label {
        font-size: 12px;
    }

    .navigation button {
        padding: 6px 12px;
        font-size: 12px;
    }

    #submit-message {
        font-size: 18px;
    }

    .side {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, auto);
        justify-content: space-around;
        margin-bottom: 10px;
    }

    .circle {
        width: 50px;
        height: 50px;
        margin: 5px;
    }
    
    .left {
        order: -1; 
    }

    .right {
        order: 1; 
    }

    .center {
        order: 0;
        flex: none;
        width: 100%;
        padding: 10px;
        padding-top: 100px;
        padding-bottom: 100px;
    }
}