
@import url('styles.css');

body {
    background-color: #1a1a1a; 
    color: #f9f9f7; 
    overflow: auto;
}


.container {
    position: relative; 
    width: 100vw; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    background-color: rgba(255, 255, 255, 0.3); 
}




.logo {
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    max-width: 300px; 
    max-height: 150px;
    opacity: 0.9; 
    z-index: 10; 
    filter: brightness(0) invert(1);
}


.main-content {
    flex: 1;
    padding: 20px 0 0 0; 
    display: flex; 
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}

.black-gradient-container {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); 
    overflow: visible;
    width: 100%; 
    flex: 1; 
}

.current-time-section {
    text-align: center; 
    margin-bottom: 0; 
    background-color: transparent; 
    padding: 10px 20px;
    border-radius: 5px;
    color: #000000;
}


.current-time-section h2 {
    font-size: 2rem; 
    font-weight: bold; 
    margin-bottom: 2px;
    letter-spacing: 2px; 
    color: #000000;
}


.current-time {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 2px;
}


.current-time span {
    font-size: 2rem; 
    font-weight: bold;
    color: #000000;
}


.current-time .date {
    font-size: 1.5rem;
    opacity: 0.9; 
    color: #000000; 
}


.direction-section {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    margin: 0px 0;
    padding: 15px 20px;
    background-color: transparent;
    border-radius: 10px;
}


.direction-item {
    display: flex; 
    align-items: center;
    gap: 10px; 
    flex: 1;
}


.direction-btn {
    background-color: rgba(255, 255, 255, 0.5); 
    color: black; 
    border: 2px solid black;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 10px; 
    transition: all 0.3s ease; 
    flex: 1;
    max-width: 350px;
}


.direction-btn:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.02); 
}


.direction-btn.active {
    background-color: rgba(255, 255, 255, 0.9);
}


.arrow {
    font-size: 2rem; 
    font-weight: bold; 
    cursor: pointer; 
    color: black; 
    opacity: 1; 
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    -webkit-text-stroke: 2px white;
}

.arrow:hover {
    opacity: 0.8;
}


.arrow.active {
    opacity: 1;
    color: #ffb800;
    -webkit-text-stroke: 2px white;
}

.direction-item:first-child {
    justify-content: flex-start;
}

.direction-item:last-child {
    justify-content: flex-end;
}


.next-bus-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: transparent;
    margin-bottom: 0;
}


.next-bus-left, .next-bus-right {
    display: flex;
    align-items: center;
    gap: 5px;
}


.next-bus-ogoto,
.next-bus-ogoto-next {
    display: none;
}


.next-label {
    font-size: 1.2rem; 
    font-weight: bold;
}


.next-time {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f9f9f6;
}

.remaining-time {
    font-size: 1rem;
    opacity: 0.9;
}


.timetable-section {
    flex: none; 
    background-color: transparent; 
    overflow: visible; 
    max-height: none;
}


.timetable-container {
    display: flex; 
    gap: 20px; 
    justify-content: center;
    width: 100%;
}

.timetable-column {
    flex: 1; 
    max-width: 45%; 
}


.weekend-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin-bottom: 20px;
}


.weekend-text {
    font-size: 1.8rem;
    color: white;
    margin: 0;
    line-height: 1.4;
    font-weight: bold;
}


.timetable {
    width: 100%;
    border-collapse: collapse;
    color: #f8f8f6;
}


.timetable th, .timetable td {
    border: 2px solid #fafaf9; 
    padding: 5px;
    text-align: center;
    font-size: 1.2rem;
}


.timetable th {
    background-color: rgba(255, 255, 0, 0.1);
    font-weight: bold;
    letter-spacing: 1.2px;
}


.timetable td {
    transition: background-color 0.3s ease;
}


.timetable td:hover {
    background-color: rgba(255, 255, 0, 0.05);
}


.nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: transparent;
}


.nav-btn {
    background-color: #333;
    color: #fffffe;
    border: 2px solid #fafaf7;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.nav-btn:hover {
    background-color: rgba(255, 255, 0, 0.1);
    transform: scale(1.05);
}


.nav-btn:active {
    transform: scale(0.98);
}


.back-btn {
    margin-left: auto; 
}


@media (max-width: 768px) {
    
    .main-content {
        padding: 10px; 
    }
    
    
    .current-time-section h2 {
        font-size: 1.2rem;
    }
    

    .current-time span {
        font-size: 1.5rem;
    }
    

    .direction-section {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    

    .direction-btn {
        max-width: 100%; 
        margin: 0 !important;
    }
    
    
    .next-bus-section {
        flex-direction: column;
        gap: 15px;
        text-align: center; 
    }
    
   
    .next-bus-left, .next-bus-right {
        justify-content: center;
    }
    
    
    .next-time {
        font-size: 1.5rem;
    }
    
   
    .timetable th, .timetable td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
    
   
    .nav-buttons {
        padding: 15px 10px;
    }
    

    .nav-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}


@media (max-width: 480px) {
    .timetable th, .timetable td {
        padding: 8px 3px;
        font-size: 0.8rem;
    }
    

    .direction-btn {
        padding: 12px 20px; 
        font-size: 1rem;
    }
}
