/* Font Import */
@font-face {
    font-family: "Ploom Avenir";
    src: url("/fonts/AvenirNextLTPro-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* General Styles */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Futura Now Headline', sans-serif;
    overflow: hidden;
}

/* Background Styling */
.background-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Keeps header at the top */
    align-items: center;
    text-align: center;
    color: white;  
    background-image: url('/images/dice_background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Content Styling */
.content {
    width: 90%;
    max-width: 400px;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Allows content to grow */
    height: 50vh;
}

/* Title Styling */
.content h1 {
    font-size: 2em;
    margin-bottom: 20px;
    margin-top: 120px;
}

.content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 160px;
    font-style: italic;
}

/* Survey Box Styling */
.survey-box {
    background: linear-gradient(to top, rgba(182, 224, 157, 0.9), rgba(255, 255, 255, 0.5));
    color: #444;
    margin-top: 50px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 50%;
}

/* Paragraph Styling */
.survey-box p {
    align-items: justify;
    font-size: 20px;
    margin: 10px 0;
    font-weight: bold;
}

/* Button Styling */
.buttons {
    margin-top: 60px;
    display: flex;
    justify-content: space-around;
}

.btn {
    background-color: white;
    color: black;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    width: auto;
}

.btn:hover {
    background-color: #71C4E7;
}

/* Selectable Buttons */
.age-buttons,
.smoker-buttons {
    padding: 10px 20px;
    text-decoration: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 10px 0;
    font-weight: 300;
    transition: background 0.3s ease;
}

.selectable {
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.selectable:hover {
    background-color: #71C4E7;
}

/* Active State Styling */
.selectable.active {
    background-color: #71C4E7;
    color: #fff;

}

/* Submit Button */
.submit-btn {
    margin-top: 30px;
    background-color: white;
    color: black;
    padding: 10px 20px; /* Padding around the text */
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    width: fit-content; /* Ensure the width matches the text */
    display: inline-block; /* Prevent full width */
    max-width: none; /* Override any inherited max-width */
    margin-left: auto; /* Center the button */
    margin-right: auto; /* Center the button */
}

.submit-btn:hover {
    background-color: #71C4E7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .content h1,
    .content h2 {
        font-size: 1.5em;
    }

    .age-buttons,
    .smoker-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .selectable {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

[hidden] {
  display: none !important;
}
