* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #101820;
    color: #f5f5f5;
}


/* Header */

header {
    text-align: center;
    padding: 40px 20px;
    background: #182c25;
}

header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    opacity: 0.8;
}


/* Main layout */

main {
    max-width: 1200px;
    margin: auto;
    padding: 25px;
}

/* Stream switch nav */
.stream-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 20px;
    flex-wrap: wrap;
}
.stream-btn {
    padding: 15px 55px;
    border-radius: 10px;
    background: #1c2b27;
    color: #f5f5f5;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: 2px solid #2e4a26;
}
.stream-btn:hover {
    background: #6fae53;
    color: #101820;
}
.stream-btn.active {
    background: #b8e986;
    color: #101820;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    pointer-events: none;
}
.stream-btn:visited {
    color: #f5f5f5;
}
.stream-btn.active:visited {
    color: #101820;
}

/* Cards */

.card {
    background: #1c2b27;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


.card h2 {
    margin-top: 0;
    color: #b8e986;
}


/* Video */

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}


.video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}



/* Dashboard cards */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.dashboard-grid .card {
    text-align: center;
}


.dashboard-grid p {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 0;
    color: #ffffff;
}

/* Temp & Weather */

.weather-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


.weather-dashboard-grid .card {
    text-align: center;
}


.weather-dashboard-grid p {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 0;
    color: #ffffff;
}


/* Charts */

canvas {
    max-height: 400px;
}



/* Footer */

footer {
    text-align: center;
    padding: 25px;
    background: #182c25;
    opacity: 0.8;
}



/* Mobile support */

@media (max-width: 900px) {

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    header h1 {
        font-size: 32px;
    }


    .dashboard-grid {
        grid-template-columns: 1fr;
    }


    main {
        padding: 15px;
    }

}

/* Share Button */

.share-button {
    padding: 10px 75px;
    border-radius: 10px;
    background: #1c2b27;
    color: #f5f5f5;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: 2px solid #2e4a26;
}
.share-button:hover {
    background: #6fae53;
    color: #101820;
}

.share-button:visited {
    color: #f5f5f5;
}

a:visited {
  color: royalblue; /* Replace 'blue' with the website's link color */
}

.card p.sub-time {
            font-size: 0.95rem;
            opacity: 0.75;
            margin-top: 4px;
        }

/* Dropdown (details / summary) */

details {
    background: #1c2b27;
    border-radius: 15px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid #2e4a26;
    width: 100%;
    overflow: hidden;
}

details summary {
    list-style: none;              /* hides default arrow in most browsers */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #b8e986;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease;
}

details summary::-webkit-details-marker {
    display: none;                 /* hides default arrow in Safari/Chrome */
}

/* Custom arrow */
details summary::after {
    content: "▾";
    font-size: 22px;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details summary:hover {
    background: #6fae53;
    color: #101820;
}

/* Expanded content */
details > :not(summary) {
    padding: 0 25px;
}

details p {
    line-height: 1.6;
    margin: 0 0 20px;
}

details[open] summary {
    border-bottom: 1px solid #2e4a26;
    margin-bottom: 20px;
}
