:root {
    --primary-color: #010101;
    --secondary-color: #fff;
    --accent-color: #000000;
    --text-color: #000;
    --cta-color: #ffffff;
    --header-height: 70px;
    --color-background: #e7e7e7;
    --color-background-alt: #888888;
    --color-border-active: #da7105;
    --color-border-default: #d1d1d1;
    --color-highlight: #fdcf4c;
    --color-primary: #b64e08;
    --color-primary-active: #79320e;
    --color-text-default: #ffffff;
    --color-text-muted: #cccccc;
}

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

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    background-color: #000000;
}

#mainContainer {
    width: 1240px;
    margin: 0 auto;
}

/* 
  The main container. 
  - position: relative is crucial for positioning children and the pseudo-element.
*/
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 
   NEW: The Overlay Pseudo-Element
   This creates a layer that sits on top of the video but behind the text.
*/
.video-container::before {
    content: ''; /* Required for a pseudo-element to show up */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* The dark tint. Adjust opacity (0.5) as needed */
    z-index: 1; /* Sits above the video */
}

/*
  The video itself. We give it a lower z-index to ensure it's at the very back.
*/
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Placed at the very bottom of the stack */
}

#bg-video-sec {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Placed at the very bottom of the stack */
}

.agency {
    font-family: "Pacifico", cursive;
    font-weight: 100;
    font-style: normal;
    font-size: 2rem;
    text-decoration: underline;
    color:orange;
}

.ideas {
    color: #000000;
    background-color:greenyellow;
    padding: 0.5rem 1rem 1rem 1rem;
    margin: 0 auto;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
    width: fit-content;
}

#more-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0; /* Placed at the very bottom of the stack */
}

.content-overlay {
    position: relative; /* To enable z-index */
    text-align: center;
    color: white;
    z-index: 2; /* Sits on top of the video and the ::before overlay */
    padding: 2rem; /* Add some padding so text doesn't touch the edges */
}

/* Styling for the text remains the same */
.content-overlay h1 {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.content-overlay h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.content-overlay p {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

/* Optional styling for content below */
.more-content {
    padding: 0px 40px;
    margin: 0;
    text-align: justify;
    background-color: #ffffff;
    background: #000000;
    color: #ffffff;
}

.more-content ul li {
    color: #ffffff;
}

.caption {
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    margin: 1.25rem;
}

hr {
  border: 1px solid #202020;
}

/* A wrapper to control the video's size and centering */
.inline-video-wrapper, .inline-wrapper {
    max-width: 800px; /* Prevents the video from being too wide on large screens */
    margin: 2.5rem auto;  /* Vertical spacing and horizontal centering */
    border-radius: 0px;  /* Smooth rounded corners */
    overflow: hidden;     /* Ensures the video inside respects the border-radius */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* A nice, soft shadow for depth */
}

/* The video element itself */
.inline-video, .inline {
    width: 100%;    /* Makes the video responsive within its container */
    height: auto;   /* Maintains the correct aspect ratio */
    display: block; /* Removes any extra space that might appear below the video */
}

/* Styling the H2 description */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1.5rem;
}

h2 a, p a {
    text-decoration: underline;
}

/* Styling the H3 description */
h3 {
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    padding: 2.5rem 0 0 0;
}

/* Styling the P description */
p {
    font-size: 1.25rem;
    font-weight: 300;
    text-align: left;
    margin-bottom: 1.25rem;
    line-height: 1.75rem;
}

/* Styling the LI description */
li {
    font-size: 1.5rem;
    font-weight: 300;
    text-align: left;
    margin-bottom: 1.5rem;
}


button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: #000000;
  margin: 0;
  padding: 0;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

[type="checkbox"]:focus,
[type="radio"]:focus,
[type="range"]:focus {
  outline: none;
}

/** Components **/

.fs-form {
  display: grid;
  row-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

fieldset {
  display: grid;
  margin: 1.5rem 0;
  row-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) fieldset {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  color: var(--color-text-default);
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-label {
  color: var(--color-text-default);
  display: block;
  font-family: var(--font-family-display);
  font-size: 1rem;
  line-height: 1.25rem;
}

.fs-description {
  color: var(--color-text-muted);
  display: block;
  font-size: 1rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) .fs-button-group {
  grid-column: 1 / -1;
}

.fs-button {
  background-color: var(--color-primary);
  border-radius: 9999px;
  color: white;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
  padding: 0.75rem 2rem;
  transition-duration: 200ms;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-button:hover {
  background-color: var(--color-primary-active);
}

.fs-button:focus-visible {
  background-color: var(--color-primary-active);
  outline: 4px solid var(--color-highlight);
}

.fs-input,
.fs-select {
  appearance: none;
  border-radius: 9999px;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: #000000;
  font-weight: 500;
  font-size: 1.5rem;
  height: 3rem;
  line-height: 1.5rem;
  outline: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.fs-input:focus-visible,
.fs-select:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1px inset;
}

.fs-input::placeholder {
  color: var(--color-text-muted);
}

.fs-checkbox-group,
.fs-radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.fs-checkbox-field,
.fs-radio-field {
  column-gap: 0.5rem;
  display: flex;
}

:is(.fs-checkbox-field, .fs-radio-field) .fs-label + .fs-description {
  margin-top: 0.25rem;
}

.fs-checkbox-wrapper,
.fs-radio-wrapper {
  align-items: center;
  display: flex;
  height: 1.25rem;
}

.fs-checkbox,
.fs-radio {
  background-color: #fff;
  border: 1px solid var(--color-border-default);
  height: 1.25rem;
  width: 1.25rem;
}

.fs-checkbox {
  border-radius: 0.25rem;
}

.fs-radio {
  border-radius: 100%;
}

.fs-checkbox:checked,
.fs-radio:checked {
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

.fs-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.fs-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.fs-checkbox:focus-visible,
.fs-radio:focus-visible {
  border-color: var(--color-border-active);
  outline: 4px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-checkbox:checked:focus-visible,
.fs-radio:checked:focus-visible {
  border-color: transparent;
}

.fs-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.625em 1.625em;
  padding-right: 2.875rem;
}

.fs-slider {
  background: transparent;
  cursor: pointer;
  height: 1.25rem;
  width: 100%;
}

.fs-slider::-moz-range-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-webkit-slider-runnable-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-moz-range-thumb {
  background-color: var(--color-primary);
  border: none; /* Removes extra border that FF applies */
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-primary);
  border-radius: 50%;
  height: 1.25rem;
  margin-top: -0.375rem; /* Centers thumb on the track */
  width: 1.25rem;
}

.fs-slider:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-switch {
  background-color: var(--color-background-alt);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.75' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.25rem;
  cursor: pointer;
  height: 1.25rem;
  transition-duration: 200ms;
  transition-property: background-color, background-position;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.5rem;
}

.fs-switch:checked {
  background-color: var(--color-primary);
  background-position: right center;
}

.fs-switch:focus-visible {
  outline: 4px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea {
  appearance: none;
  border-radius: 0.75rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: #000000;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5rem;
  height: 150px;
  outline: none;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1px inset;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

/** Utilities **/

.col-span-full {
  grid-column: 1 / -1;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

.slider-label-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
}

.slider-label-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

.m_header {
  text-align: center;
  font-size: 2.5rem;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    body {
        font-family: "Montserrat", sans-serif;
        font-optical-sizing: auto;
        font-weight: 100;
        font-style: normal;
        background-color: var(--secondary-color);
        color: var(--text-color);
        margin: 0;
        background-color: #000000;
    }

    #mainContainer {
        margin: 0;
        width: auto;
    }

    .content-overlay h1 {
        font-size: 3.25rem;
    }
    .content-overlay h2 {
        font-size: 1.8rem;
    }
    .content-overlay p {
        font-size: 1.45rem;
        font-weight: 200;
        text-align: center;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    }
}