@font-face {
    font-family: "Teletext";
    src: url("fonts/Teletext50.otf") format("opentype");
}

body {
    font-family: "Teletext", "Courier New", monospace;
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    padding-top: 70px;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    z-index: 1000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 50px;
    height: 50px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffff00;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    font-size: 20px;
}

.button {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: bold;
    background-color: #0000ff;
    color: #ffffff;
    text-transform: uppercase;
}

h1 {
    font-size: 77px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: uppercase;
}

@keyframes blink-background {
    0%,
    49% {
        background-color: #ff0000;
    }
    50%,
    100% {
        background-color: transparent;
    }
}

.highlight {
    background-color: #ff0000;
    color: #ffffff;
    padding: 0 5px;
    animation: blink-background 1s step-end infinite;
}

.download-section .button {
    font-size: 27px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.apple-icon {
    width: 40px;
    height: 40px;
    margin-top: -8px;
    margin-right: 5px;
}

.featured {
    color: #ffff00;
    display: block;
    margin-top: 10px;
}

.app-preview {
    margin-top: 30px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    border: 2px solid #ffffff;
    padding: 10px;
    text-align: center;
}

.feature p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 180px;
    font-size: 20px;
}

.feature-icon {
    font-size: 25px;
    margin-bottom: 10px;
    color: #ffff00;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 10px;
    border-top: 2px solid #ffffff;
    color: #00ffff;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
        to right,
        #ff0000 0%,
        #ff0000 14%,
        #ffff00 14%,
        #ffff00 28%,
        #00ff00 28%,
        #00ff00 42%,
        #00ffff 42%,
        #00ffff 56%,
        #0000ff 56%,
        #0000ff 70%,
        #ff00ff 70%,
        #ff00ff 84%,
        #ffffff 84%,
        #ffffff 100%
    );
    z-index: 1001;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.3) 3px,
        rgba(0, 0, 0, 0.3) 3px
    );
    pointer-events: none;
    z-index: 2000;
}

video {
    width: 50%;
    height: auto;
}

.leagues-info {
    background-color: #ff00ff;
    color: #000000;
    padding: 0 3px;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.leagues-content {
    display: none;
    position: absolute;
    background-color: #000000;
    border: 2px solid #ffffff;
    padding: 10px;
    z-index: 1000;
    width: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(-110%);
    top: 100%;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.leagues-info:hover .leagues-content {
    display: block;
}

.leagues-list {
    color: #ffffff; /* White text for league list */
}

.leagues-list strong {
    color: #ffff00; /* Yellow for the header */
    display: block;
    margin-bottom: 5px;
}

.feature {
    position: relative;
}

.privacy-policy {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 20px;
    background-color: #000033;
    border: 2px solid #ffffff;
}

.privacy-policy h1 {
    font-size: 48px;
    color: #ffff00;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0px;
}

.privacy-policy h2 {
    font-size: 24px;
    color: #00ffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-policy p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.privacy-policy a {
    color: #ff00ff;
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 16px;
    color: #00ffff;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    color: #ff0000;
}

@media (max-width: 1200px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    video {
        width: 80%;
    }

    .leagues-content {
        width: 90vw; /* Use viewport width */
        max-width: 300px; /* Set a max-width */
        left: 50%;
        transform: translateX(-50%) translateY(-20%);
        top: auto;
        bottom: 100%; /* Position above the text */
    }

    .feature {
        padding-bottom: 20px; /* Add some space below for the hover content */
    }

    .privacy-policy {
        margin: 20px auto 0;
        padding: 15px;
    }

    .privacy-policy h1 {
        font-size: 36px;
        margin-top: 20px;
    }

    .privacy-policy h2 {
        font-size: 20px;
        margin-top: 25px;
    }

    .privacy-policy p {
        font-size: 16px;
    }

    .social-links a {
        margin: 0 5px;
    }
}

@media (max-width: 550px) {
    .features {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 35px;
    }
    .download-section .button {
        font-size: 15px;
        padding: 5px 10px;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }
    .apple-icon {
        width: 33px;
        height: 33px;
        margin-top: -6px;
        margin-right: 4px;
    }
    video {
        width: 100%;
    }
    .nav-buttons {
        font-size: 17px;
    }
    .logo {
        font-size: 22px;
    }
}
