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

/* Reserve the scrollbar's width on every page so content doesn't shift
   horizontally when moving between a short page and a tall one. */
html {
    scrollbar-gutter: stable;
}

body, html {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    width: 100%;
    height: 100%;
}

/* Wrapper and Header */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    width: 100%;
    background-color: #1e73be;
    color: white;
    padding: 20px;
    text-align: center;
}

.header-title {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
}

.header p {
    margin-top: 5px;
    font-size: 1rem;
}

/* Content Section */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.guide-container {
    padding: 20px;
    background-color: #fff;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.guide-container h1,
.guide-container h2 {
    color: #1e73be;
    text-align: center;
    margin-bottom: 10px;
}

.guide-step {
    margin: 30px 0;
}

.guide-step p {
    font-size: 1.1rem;
    color: #333;
    text-align: center;
}

.guide-step img {
    width: 100%;
    max-width: 500px;
    /* Required alongside the width/height attributes on the <img> tags:
       without it the height attribute applies literally and stretches them */
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.footer-note {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 40px;
    color: #555;
}

.footer {
    width: 100%;
    background-color: #1e73be;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

/* Standalone code callout (e.g. TV sideload code) */
.code-box {
    text-align: center;
    margin: 10px 0 30px;
}

.code-box .code {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    letter-spacing: 4px;
    background-color: #eaf2fb;
    color: #1e73be;
    border: 2px solid #1e73be;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: bold;
}

/* Prominent download call-to-action */
.download-box {
    text-align: center;
    margin: 24px 0 8px;
}

.download-btn {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    font-size: 1.15rem;
    font-weight: bold;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.download-btn:hover,
.download-btn:focus {
    background-color: #cf6d17;
}

.download-btn:focus-visible {
    outline: 3px solid #1e73be;
    outline-offset: 2px;
}

.download-note {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

/* Troubleshooting Q&A list */
.troubleshoot {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.troubleshoot-item {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .guide-step p {
        font-size: 1rem;
    }

    .guide-container {
        padding: 15px;
    }

    .code-box .code {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}
