body {
    margin: 0;
    padding: 0;
    background-color: #0A0E1A;
    color: #ffffff;
    font-family: Oswald, sans-serif;
    background-image: url('images/knull.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

.logo-container a {
    display: block;
    text-decoration: none;
}

.logo-container a:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo {
    height: 180px;
    width: auto;
}

html {
  scroll-behavior: smooth;
}

.container {
    margin: 15px auto;
    max-width: 1200px;
    padding: 15px;
}

.criteria {
    margin-bottom: 20px;
    background-color: rgba(21, 28, 47, 0.8);
    padding: 20px;
    border-radius: 4px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: rgba(21, 28, 47, 0.8);
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #2A3552;
    padding: 12px;
    text-align: left;
    color: #ffffff;
}

th {
    background-color: #1D2337;
    color: #00A6EB;
    font-weight: bold;
    text-transform: uppercase;
}

.input-group {
    margin: 15px 0;
}

label {
    display: inline-block;
    width: 140px;
    color: #00A6EB;
    font-weight: bold;
    text-transform: uppercase;
}

input[type="file"] {
    background-color: #1D2337;
    border: 1px solid #2A3552;
    padding: 10px;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
}

h2, h3 {
    color: #00A6EB;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0px;
}

h1 {
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 5px;
}

tr:hover {
    background-color: #1D2337;
}

.copyButton {
    background-color: #00A6EB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
}

.copyButton:hover {
    background-color: #0085bd;
}

.daySelect {
    background-color: #1D2337;
    border: 1px solid #2A3552;
    padding: 10px;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    margin-left: 10px;
}

.daySelect:hover {
    background-color: #2A3552;
}

.title-container {
    flex: 0 0 auto;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 180px;
    width: auto;
}

.header-title {
    color: #ffffff !important;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: bold;
    font-family: Oswald, sans-serif;
}

.middle-container {
    flex: 0 0 auto;
    padding: 20px;
}

/* Media query for mobile devices */
@media only screen and (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
    }

    .logo-container, .middle-container, .title-container {
        width: 100%;
	text-align: center;
    }

    .logo {
        max-width: 100%;
        height: auto;
    }

    .middle-container iframe {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 16/9;
    }
}

.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-section {
    flex: 1;
    padding: 0 15px;
    color: #ffffff;
    text-align: center;
    border-right: 0px solid #2A3552;
    font-size: 14px;
}

.footer-section:last-child {
    border-right: none;
}

.main-footer {
    display: flex;
    flex-direction: column; /* Allow rows to stack vertically */
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-row {
    display: flex;
    justify-content: space-between; /* Space columns evenly */
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px; /* Add space between rows */
}

.footer-section {
    flex: 1;
    padding: 0 15px;
    color: #ffffff;
    text-align: center;
    border-right: 0px solid #2A3552;
    font-size: 14px;
}

.footer-section:last-child {
    border-right: none;
}

@media only screen and (max-width: 768px) {
    .main-footer {
        flex-direction: column;
        padding: 20px;
    }
    
    .footer-section {
        width: 100%;
        padding: 10px 0;
        border-right: none;
        border-bottom: 0px solid #2A3552;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
}

.criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: rgba(21, 28, 47, 0.8);
    padding: 20px;
    border-radius: 4px;
}

.form-section {
    flex: 1;
    min-width: 300px;
}

.banner-section {
    flex: 1;
    min-width: 300px;
}

.banner-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

@media screen and (max-width: 768px) {
    .criteria {
        flex-direction: column;
    }
    
    .banner-section {
        order: -1;
    }
}
.downloadButton {
    background-color: #00A6EB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
}

.downloadButton:hover {
    background-color: #0085bd;
}

#ownerViewContainer {
    margin-top: 30px;
    padding: 10px;
}

.owner-section {
    background-color: #fff;
    margin-bottom: 20px;
}

.owner-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.owner-section table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.scroll-top {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  background: rgba(255, 255, 255, 0.9);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  color: #333;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Optional dark mode support */
@media (prefers-color-scheme: dark) {
  .scroll-top {
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
  }
  
  .scroll-top:hover {
    background: rgba(40, 40, 40, 1);
    color: #fff;
  }
}

.alliance-link {
    color: #ffffff;
    text-decoration: underline;
}

.alliance-link:hover {
    color: #ffffff;
    text-decoration: underline;
}


@media screen and (max-width: 768px) {
    /* Adjust table font sizes and padding */
    table {
        font-size: 10px;
    }
    
    th, td {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    th {
        font-size: 10px;
        white-space: nowrap;
    }
    
    /* Adjust table container */
    .results {
        padding: 10px 5px;
    }
    
    /* Scale down headers */
    .results h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Adjust buttons */
    .copyButton, .downloadButton {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    /* Owner view adjustments */
    #ownerViewContainer {
        padding: 10px;
    }
    
    #ownerViewContainer div {
        font-size: 10px;
    }
    
    #ownerViewContainer div[style*="font-weight: bold"] {
        font-size: 12px;
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {
    table {
        font-size: 8px;
    }
    
    th, td {
        padding: 4px 2px;
        font-size: 8px;
    }
    
    .results h3 {
        font-size: 12px;
    }
    
    #ownerViewContainer div {
        font-size: 8px;
    }
    
    #ownerViewContainer div[style*="font-weight: bold"] {
        font-size: 10px;
    }
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

.logo {
    height: 180px;
    width: auto;
}

.header-title {
    color: #ffffff !important;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: bold;
    font-family: Oswald, sans-serif;
}

/* Updated mobile styles */
@media screen and (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 10px;
        padding: 5px;
    }

    .logo {
        height: auto;
        width: 150px;
    }

    .middle-container {
        width: 100%;
        padding: 10px 0;
    }

    .middle-container iframe {
        width: 280px;
        height: 158px;
    }

    .header-title {
        font-size: 2rem;
        text-align: center;
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {
    .logo {
        width: 120px;
    }

    .middle-container iframe {
        width: 240px;
        height: 135px;
    }

    .header-title {
        font-size: 1.75rem;
    }
}

.main-header {
    width: 100%;
    background-color: transparent;
    padding: 10px;
    box-sizing: border-box;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-container {
    flex: 0 1 auto;
}

.logo {
    height: 180px;
    width: auto;
    max-width: 100%;
}

.middle-container {
    flex: 0 1 auto;
}

.video-wrapper {
    position: relative;
    width: 350px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.title-container {
    flex: 0 1 auto;
}

.header-title {
    color: #ffffff;
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: bold;
    font-family: Oswald, sans-serif;
    white-space: nowrap;
}

@media screen and (max-width: 1200px) {
    .header-wrapper {
        padding: 0 10px;
    }
    
    .logo {
        height: 150px;
    }
    
    .video-wrapper {
        width: 300px;
    }
    
    .header-title {
        font-size: 3rem;
    }
}

@media screen and (max-width: 992px) {
    .logo {
        height: 120px;
    }
    
    .video-wrapper {
        width: 250px;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        height: 100px;
    }
    
    .video-wrapper {
        width: 280px;
    }
    
    .header-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        height: 80px;
    }
    
    .video-wrapper {
        width: 240px;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
}

p {
	font-size: 14.5px;
}

ul li {
	font-size: 14.5px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

.instructions-section, 
.form-section {
    flex: 1;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column-reverse;
    }
}
article {
    text-align: justify;
}