/* === PROTECTED SECTION: Do Not Edit Below === */
:root {
    --background-color: #000000;
    --primary-blue: #70B8FF;
    --highlight-yellow: #FFFF33;
    --text-color: #FFFFFF;
    --input-background: #333;
}
/* === END PROTECTED SECTION === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background: url('./logo.jpg') no-repeat center;
    background-size: contain;
    background-color: var(--background-color);
    height: 200px;
    margin-top: 60px;
    margin-bottom: 10px;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('./nav-background.jpg') no-repeat center;
    background-size: cover;
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 2px solid var(--highlight-yellow);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--highlight-yellow);
}

main {
    max-width: 800px;
    margin: 30px auto 50px;
    padding: 10px 20px;
    flex: 1;
}

main h1 {
    color: var(--highlight-yellow);
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 36px;
}

main p {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

form label {
    color: var(--highlight-yellow);
    font-size: 16px;
}

form input, form textarea {
    padding: 10px;
    background-color: var(--input-background);
    border: 1px solid var(--primary-blue);
    color: var(--text-color);
    font-size: 16px;
    border-radius: 5px;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--highlight-yellow);
}

form button {
    padding: 10px;
    background-color: var(--primary-blue);
    color: var(--text-color);
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--highlight-yellow);
    color: var(--background-color);
}

footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: auto;
}

footer p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Enhanced Social Links Styles */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  background-color: var(--input-background);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* YouTube base bg override */
.social-links a[href*="youtube.com"] {
  background-color: #212121;
}

/* Base icon colors: all white */
.social-links a i {
  color: #FFFFFF !important;
  transition: color 0.3s ease;
}

/* Hover icon color changes to brand - with !important to beat the yellow curse */
.social-links a[href*="youtube.com"]:hover i.fa-youtube {
  color: #FF0033 !important;
}

.social-links a[href*="twitter.com"]:hover i.fa-twitter {
  color: #1da1f2 !important;
}

.social-links a[href*="instagram.com"]:hover i.fa-instagram {
  color: #e4405f !important;
}

.social-links a[href*="facebook.com"]:hover i.fa-facebook {
  color: #3b5998 !important;
}

.social-links a[href*="linkedin.com"]:hover i.fa-linkedin {
  color: #0077b5 !important;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight-yellow);
}

iframe {
    border: 1px solid var(--background-color);
    pointer-events: none;
}

.iframe-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.weather-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--background-color);
}

.weather-container {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
    text-align: center;
}

.weather-container h1 {
    color: var(--highlight-yellow);
    font-size: 28px;
    margin-bottom: 15px;
}

.weather-data {
    color: var(--primary-blue);
    font-weight: bold;
}

.trackinfo-container {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
    text-align: center;
}

.trackinfo-container h1 {
    color: var(--highlight-yellow);
    font-size: 28px;
    margin-bottom: 15px;
}

.trackinfo-data {
    color: var(--primary-blue);
    font-weight: bold;
}

.trackinfo-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--background-color);
}

.youtube-livestream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
  z-index: 1;
}

/* Include MQTT-specific styles */
@import url('mqtt.css');

@media (max-width: 600px) {
    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 16px;
    }

    main {
        margin: 20px auto 50px;
        padding: 10px 20px;
    }

    main h1 {
        font-size: 28px;
    }

    form {
        padding: 0 20px;
    }

    header {
        height: 150px;
        margin-top: 50px;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .iframe-container {
        padding-bottom: 75%;
    }

nav ul li a {
    font-size: 12px;
}


#playButton {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 10px 20px;
            background-color: #000000; /* All black background */
            color: #000000; /* Text color black to blend in (doesn't appear visibly on black background) */
            border: none;
            border-radius: 5px;
            cursor: pointer;
            z-index: 1000;
        }
        #playButton:hover {
            background-color: #000000; /* Slightly lighter on hover for subtle feedback, but text remains blended */
            }

}
