/* static/css/styles.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family: 'Inconsolata', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  margin: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  
  max-width: 1024px;
  width: 100%;
}

main > * {
  align-self: flex-start;
}

section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1024px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1024px;
}

.header-link {
  color: black;
  text-decoration: none;
}

.header-link:hover,
.header-link:active,
.header-link:focus {
  color: black;
  text-decoration: none;
}


.title-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.title-section h1 {
  margin-bottom: 0;
}

.title-section .tagline {
  margin-top: 0;
}

.nav-section ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.nav-section ul li {
  margin-left: 20px;
}


.media-container video {
  width: 100%;
  max-width: 512px;
}

.text-container {
  flex: 1 1 auto;
  overflow-y: auto; /* Enables vertical scrolling when content height exceeds container height */
  width: 100%;
  max-width: 100%; /* Added max-width property */
  margin-top: 0;
}


/* Add this rule to your CSS file */
.content-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.double-column {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}


.form-container {
  flex: 1 1 auto;
  overflow-y: auto; /* Enables vertical scrolling when content height exceeds container height */
  margin-left: 20px;  
  margin-top: 0; 
}

.tagline {
  margin-top: 0;
}

.subscribe-link {
  text-align: left;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

.subscribe-link {
  text-align: left;
  font-size: 1.2rem;
  font-weight: 700;
}

footer {
  text-align: left;
  max-width: 1024px;
  width: 100%;
  margin-top: 20px;
}

input {
  width: 250px;  /* Adjust the width as needed */
  height: 30px;  /* Adjust the height as needed */
  margin-bottom: 10px; /* Adjust this value as needed */
  font-size: 18px; /* Adjust this value as needed */
  font-family: 'Inconsolata', sans-serif; /* Ensure the correct font is used */
  padding: 2px 5px;
}

.small-input {
  width: 100px;
}

.small-button {
  width: 150px;
  height: 30px;
  font-size: 16px;
  font-family: 'Inconsolata', sans-serif;
}



@media (max-width: 767px) {
  .content-container,
  main,
  section,
  .media-container video,
  .text-container,
  footer {
    max-width: 100%;
    width: 100%;
  }

  .text-container {
    margin-left: 0;
    margin-top: 20px; /* Adds some space above the form */
  }  

  .double-column {
    flex-direction: column; /* Stacks items vertically on small screens */
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* On smaller screens, make the video and form take up the full width of their container */
  .media-container, .text-container {
    width: 100%;
  }

  .text-container {
    order: 1; /* On small screens, makes the text-container come before the media-container */
    margin-left: 0;
    margin-top: 20px; /* Adds some space above the form */
  }  

  .nav-section ul li {
    margin-right: 20px;
    margin-left: 0;
  }

  .form-container {
    margin-left: 0;
  }
}