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

/* @font-face {
    font-family: "Ploom Avenir";
    src: url("/fonts/AvenirNextLTPro-Bold.woff2") format("woff2"),
        url("/fonts/AvenirNextLTPro-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
} */

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Ploom Avenir", sans-serif;
    font-weight: 300;
}

/* 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/Ploomv3_BG.jpg');
    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-color: rgba(18, 27, 39, 0.8);
    border-radius: 10px;
    color: #444;
    margin-top: 100px;
    padding: 22px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 20%;
    text-align: justify;
    text-align-last: left;
    justify-content: center;
}

/* Paragraph Styling */
.survey-box p {
    color: white;
    align-items: left;
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
    text-align: justify;
    text-align-last: left;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: lightgrey;
    color: black;
    text-decoration: none;
    padding: 8px 32px;
    border-radius: 40px;
    font-weight:500;
    font-size: 18px;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 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: rgba(0, 0, 0, 0.5);
    color: white;
    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: rgba(117, 76, 41, 0.9); */
    background-color: rgba(0, 0, 0, 0.9);
}

/* Active State Styling */
.selectable.active {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 1px solid #ffffff;   /* <-- add this */
    box-sizing: border-box;
}

.smoker-buttons .selectable.active {
  background-color: rgba(0, 0, 0, 0.9);  
  color: #fff;

}

.submit-btn {
    margin-top: 30px;
}
/* Submit Button 
.submit-btn {
    margin-top: 30px;
    background-color: #C49A6C;
    color: black;
    padding: 10px 20px;
    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;

    display: inline-block;
   
    max-width: none;

    margin-left: auto;
    
    margin-right: auto;
   
}

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

*/

/* 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;
}