/* static/css/style.css */

/* Main styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #ffffff;
    color: #f0f0f0;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Logo container styling - QUADRUPLED SIZE AND MOVED LEFT */
.logo-container {
    position: absolute;
    top: 20px;
    left: -140px; /* Moved approximately 2 inches left (from 20px) */
    width: 800px; /* Quadrupled from original 200px */
    height: 400px; /* Quadrupled from original 100px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1; /* Ensure it sits directly on top of the background */
}

#train-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Welcome Header styling */
.welcome-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.welcome-header h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 36px;
    color: #8B4513;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    display: inline-block;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.6); /* More transparent */
    border-radius: 10px;
    margin: 0 auto; /* Center horizontally */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #E8B768; /* Light popcorn color border */
}
.content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    background-color: transparent; /* Completely transparent */
    /* No border or box-shadow */
}

/* Vintage schedule board styling */
.vintage-schedule-board {
    width: 80%;
    max-width: 800px;
    position: relative;
    margin-bottom: 30px;
}

/* The schedule board image */
.schedule-board-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Schedule content positioned over the schedule area of the image */
.schedule-content {
    position: absolute;
    top: 36%; /* Moved up from 40% to 36% - more subtle adjustment */
    left: 0;
    width: 100%;
    height: 45%; /* Take up 45% of the image height - adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Schedule entry styling */
.schedule-entry {
    width: 100%;
    padding: 5px 30px;
    text-align: center;
}

.location-name {
    font-size: 28px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 5px;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
}

.schedule-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedule-date, .schedule-time {
    font-size: 24px;
    color: #111;
    font-family: 'Times New Roman', Times, serif;
    margin: 2px 0;
}

.schedule-address {
    font-size: 18px;
    color: #333;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    margin-top: 5px;
}

/* Loading text styling */
.loading-text {
    color: #8B4513;
    font-size: 18px;
    font-style: italic;
}

/* Lower section styling */
.lower-section {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 0 10%;
}

/* Image container styling */
.image-container {
    width: 300px;
    height: 200px;
    /* Removed border and border-radius */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Completely transparent */
    z-index: 1; /* Ensure it sits directly on top of the background */
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Copyright symbol styling */
.copyright {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px;
}

.copyright a {
    color: #666;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.copyright a:hover {
    color: #FFD700;
}

/* Debug styling */
.debug-info {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-family: monospace;
}

/* Fallback styling */
.fallback-header {
    background-color: #000;
    color: #FFD700;
    border: 8px solid #8B4513;
    padding: 20px;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    border-radius: 10px;
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vintage-schedule-board {
        width: 95%;
    }
    
    .schedule-content {
        top: 41%; /* Adjusted for smaller screens - proportional to desktop adjustment */
    }
    
    .location-name {
        font-size: 22px;
    }
    
    .schedule-date, .schedule-time {
        font-size: 18px;
    }
    
    .schedule-address {
        font-size: 16px;
    }
    
    .lower-section {
        padding: 0 5%;
    }
    
    .image-container {
        width: 250px;
        height: 180px;
        /* Ensure no border or background */
        border: none;
        background-color: transparent;
    }
    
    /* Responsive adjustment for logo on small screens */
    .logo-container {
        width: 400px; /* Adjusted for quadrupled size (reduced for mobile) */
        height: 200px; /* Adjusted for quadrupled size (reduced for mobile) */
    }

    /* Weather styling for responsive view */
    .entry-weather {
        font-size: 14px;
    }
}

/* Weather styling */
.entry-weather {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.entry-weather img {
    margin-left: 5px;
}

.weather-btn {
    text-decoration: none;
    color: #fff;
    background-color: #555;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    transition: background-color 0.2s;
}

.weather-btn:hover {
    background-color: #777;
}

/* Weather records styling */
.weather-record {
    background-color: #232323;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.weather-record-info {
    flex: 3;
}

.weather-data {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-condition {
    display: flex;
    align-items: center;
}

.weather-icon {
    width: 50px;
    height: 50px;
}

.temperature {
    font-size: 1.2em;
    color: #FFD700;
    font-weight: bold;
}