/* General Styles */
body {
    
  

    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: url('./rvasherpa.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: -1;
}


.activity-description .full-text {
  display: none;
}

.activity-description.expanded .full-text {
    display: inline !important;
}

.page-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
}

p {
    color: #555;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.title {
    font-size: 48px;
    font-weight: bold;
}

.title-container {
  text-align: center;
  margin: 0 auto;
  width: 100%;
  line-height: 1;
}

.page-container,
.title-container {
  overflow: visible;
}

.rva {
  font-size: 15vw;
  margin: 0;
  padding: 0;
  display: block;
}

.rva span {
    font-family: 'Arial Black', Gadget, sans-serif;
    font-weight: bold;
    font-size: 10vw;
    letter-spacing: -1vw;
    margin: 0;
    padding: 0;
    padding-bottom: 0.5vw;
    display: inline-block;
    line-height: 1;
}

.sherpa {
  font-size: 11vw;
  margin: 0.5vw 0 0 0; /* small top margin only */
  padding: 0;
  display: block;
}

.subtitle {
  font-size: 4vw;
  margin-top: 0.5vw;
  margin-bottom: 0;
  padding: 0;
  display: block;
}

.results-wrapper {
    width: 100%;
    max-width: 96%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;  /* prevent flex blowout */
    overflow-x: hidden;
}


.results-container {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.result-item {
    width: 100%;
    flex-direction: row;
    display: flex;
    align-items: flex-start;
    margin: 0 auto 20px auto;
    padding: 20px;
    border: 2px solid #0e99cb;
    border-radius: 8px;
    background-color: rgba(211, 211, 211, 0.6);
    align-items: center;
    min-width: 0;  /* prevent flex blowout */
    overflow-x: hidden;
      display: flex;
  flex-wrap: wrap;
}

.result-item:last-child {
    margin-bottom: 0;
}

.image-container {
    flex: 0 0 40%;
    position: relative;
    max-width: 350px;
    width: 100%;
      flex-shrink: 1;
  min-width: 0;
}

.result-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.image-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    border-top-left-radius: 8px;
}

.image-credit a {
    color: white;
    text-decoration: underline;
}

.image-credit a:hover {
    color: #f0f0f0;
}

.result-title {
    font-size: calc(18px + 1vw);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    padding: 0;
}

.result-text {
    color: black;
    margin-left: 20px;
    flex: 1;
    text-align: left;
    font-size: 1.1vw;
      overflow-wrap: break-word;
  word-wrap: break-word;        /* older support */
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.rotating-text {
    font-size: 24px;
    margin-top: 20px;
}

.no-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 2vw;
    width: 100%;
    display: block;
}

/* Form Styling */
form table {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

form td {
    padding: 10px;
}

form td input[type="radio"],
form td input[type="checkbox"] {
    margin: 5px 0;
}


.pagination-next {
  font-size: 1.8rem;   /* make it big */
  font-weight: 800;    /* extra bold */
  line-height: 1.1;    /* tighter line height */
}




.result-text {
    margin-left: 0;
    margin-top: 10px;
       font-size: 1.2rem; /* or try 1.2rem for slightly larger */
    text-align: left; /* or center if preferred */
    padding: 0 10px;
      overflow-wrap: break-word;
  word-wrap: break-word;        /* older support */
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.activity-description .full-text {
    display: none;
}

.activity-description.expanded .full-text {
    display: inline;
}

.activity-description .toggle-description {
    color: #007BFF;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

    
       /* Make sure title-container takes up most of the width on mobile */
    .title-container {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }


     /* Adjust "RVASHERPA" to occupy more width */
    .rva, .sherpa {
        display: inline;
        white-space: nowrap;
        font-size: 15vw; /* Increase font size for more screen coverage */
    }
    
        /* Adjust font size and spacing for "SHERPA" */
    .sherpa {
        font-size: 11vw;
        margin-left: 0.3vw; /* Small space between "RVA" and "SHERPA" */
    }


   /* Adjust individual letter styles in "RVA" */
    .rva span {
        font-family: 'Arial Black', Gadget, sans-serif;
        font-weight: bold;
        font-size: 15vw;
        letter-spacing: -0.3vw; /* Fine-tune letter spacing */
    }


    /* Reduce gap above the subtitle */
    .subtitle {
        display: block;
        margin-top: 5px; /* Reduce space above subtitle */
        font-size: 4vw;
        text-align: center;
        width: 100%;
    }
    
    .sherpa img {
      height: 0.9em;        /* matches text height nicely on desktop */
      width: auto;          /* keep aspect ratio */
      vertical-align: baseline;
      margin-left: 0.35em;
    }


    
        /* Remove any additional margins or padding from .title-container children */
    .title-container span {
        margin: 0;
        padding: 0;
    }
    
    /* Ensure the entire form takes full width on mobile */
    form {
        width: 100%;
    }

    form table {
        width: 100%;
        margin: 0 auto;
    }

    /* Stack each question and answer vertically */
    form tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Full-width and centered text for question and answer columns */
    .question, .answers {
        width: 100%;
        text-align: center;
    }

    /* Style question text on mobile */
    form td b {
        font-size: 2em;
        font-weight: bold;
        color: #333;
        margin-bottom: 10px;
    }

    /* Align checkbox and label pairs to the left within each row */
    .option-group-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Left-aligns each checkbox and label */
        gap: 8px;
        margin-bottom: 5px;
                margin-left: 8vw; /* Shift answers slightly to the right */
    }

    /* Optional adjustments for font size on labels for readability */
    .option-group-wrapper label {
        font-size: 1.5em;
        color: #555;
    }

    /* Larger checkbox size for easier tapping on mobile */
    .option-group-wrapper input[type="checkbox"],
    .option-group-wrapper input[type="radio"] {
        transform: scale(1.2);
        margin: 0; /* Reset any extra margins around the checkbox */
    }

    /* Reduce general padding for compact view on mobile */
    /* Center-align both question and answer cells */
    form td {
        width: 100%;
        text-align: center;
    }


    /* Center and expand the button on mobile */
    form input[type="submit"] {
        font-size: 1.5em; /* Larger font for better readability */
        padding: 12px 0; /* Padding only on top and bottom for vertical size */
        width: 90%; /* Button takes up most of the screen width */
        max-width: 300px; /* Optional: limit max width */
        margin: 20px auto; /* Center the button with margin */
        display: block; /* Center button on mobile */
        text-align: center; /* Center-align text */
        box-sizing: border-box; /* Ensures padding doesn’t affect width */
        background-color: #007BFF; /* Blue background color */
        color: white; /* White text color */
        border: none; /* Remove any border */
        border-radius: 8px; /* Rounded corners */
        cursor: pointer; /* Pointer cursor for clickable effect */
    }

    /* Optional: Add hover effect for mobile */
    form input[type="submit"]:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }
}

.results-wrapper {
        max-width: 96%;
        width: 96%;
        min-width: 0;  /* prevent flex blowout */
        overflow-x: hidden;
    }
    
  .result-item {
    flex-direction: column ;
    align-items: center ;
    text-align: center ;
    width: 96% ;
    min-width: 0;  /* prevent flex blowout */
overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  }

  .image-container,
  .result-text {
    width: 100% !important;
    display: block !important;
      overflow-wrap: break-word;
  word-wrap: break-word;        /* older support */
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
    flex-shrink: 1;
  min-width: 0;
  }


.result-title {
    font-size: 1.6rem;     /* Slightly larger than default mobile text */
    font-weight: bold;     /* Make it bold */
    white-space: normal;   /* Allow line wrapping */
    text-overflow: unset;
    overflow: visible;
}


@media (max-width: 600px) {
  .sherpa img {
    height: 0.7em;      /* smaller on phones */
  }
  
  
  .pagination-next { font-size: 2rem; }


}


@media (min-width: 769px) {

 


  form tr {
    display: flex;
    flex-direction: row;
    align-items: center; /* 👈 This is the key */
    justify-content: space-between;
    width: 100%;
  }


.question {
  width: 50%;
  text-align: right;
  padding-right: 20px;
  font-weight: bold;
}

.answers {
  width: 50%;
  text-align: left;
}

    
  .results-wrapper {
    width: 80%;
    max-width: 80%;
  }
    
.results-container {
        padding: 20px 5%;
    }
    
    /* Style for desktop button to match mobile appearance */
    form input[type="submit"] {
        font-size: 1.2em; /* Increase font size for better readability */
        padding: 10px 20px; /* Add padding for a larger clickable area */
        background-color: #007BFF; /* Blue background */
        color: white; /* White text */
        border: none; /* Remove border */
        border-radius: 8px; /* Rounded corners for consistency */
        width: auto; /* Natural width based on text */
        max-width: 300px; /* Optional: limit max width */
        margin: 20px auto; /* Center the button */
        display: block; /* Center-align button */
        text-align: center; /* Center text */
        box-sizing: border-box; /* Prevent padding from affecting width */
        cursor: pointer; /* Pointer cursor on hover */
    }

    /* Optional: Add hover effect for desktop */
    form input[type="submit"]:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

.result-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

.image-container {
  height: 100%;
  display: flex;
  align-items: stretch;
}

  .result-text {
    width: 60%;
    margin-left: 20px;
    text-align: left;
  }

.result-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

}
