html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-copy {
    color: #fff;
    background-color: #e6a337;
    border-color: #9c6103;
    margin-left: 10px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2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jMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.flex-column-start {
    display: flex;
    flex-direction: column;
    align-items: start;
}


/*Weather page CSS*/
.weather-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    text-align: center;
}

.weather-item {
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    color: white; /* Ensure the text is readable */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 10px;
    text-align: center;
    backdrop-filter: blur(5px); /* Optional: Adds a subtle blur effect */
}

    .weather-item img {
        width: 5px;
        height: 5px;
        margin-bottom: 10px;
    }

.wind-direction img {
    width: 6px;
    height: 6px;
}

h3 {
    text-align: center;
    color: #333;
    font-family: Arial, sans-serif;
    margin-top: 20px;
}


body {
    font-family: Arial, sans-serif;
}

.body .weather-page {
    background-color: #1E1E1E; /* Dark background only inside weather page */
}

.day-section {
    margin-top: 20px;
}

.day-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.forecast-list {
    list-style-type: none;
    padding: 0;
}

.forecast-item {
    padding: 3px 0;
    border-bottom: 1px solid #ddd;
}

    .forecast-item:last-child {
        border-bottom: none;
    }

.time, .temperature {
    display: inline-block;
    width: 100px;
}

#weather-forecast {
    font-family: Arial, sans-serif;
}

.day-section {
    margin-top: 20px;
}

.weather-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack days in a single column */
    gap: 20px; /* Space between days */
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* 24 columns for hours */
    gap: 5px; /* Space between hourly cards */
}



.temp-card {
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    color: white; /* Ensure the text is readable */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 5px;
    text-align: center;
    backdrop-filter: blur(5px); /* Optional: Adds a subtle blur effect */
}

    .temp-card .hour, .temp-card .temp {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    }

.hour {
    font-weight: bold;
    font-size: 0.9em;
}

.temp {
    margin-top: 5px;
    font-size: 1em;
}

.current-day {
    background-color: lightgreen;
}

.weather-page {
    background-image: url('/images/weather-background-rainbow.jpg'); /* Ensure correct path */
    background-size: cover; /* Cover entire page */
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh; /* Ensures it covers full height but allows scrolling */

    color: white; /* Adjust text color for contrast */
    padding: 20px;
    text-align: center;
}

/*Passowrd page CSS*/
.password-generator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 1rem;
    background-color: #f5f5f5;
}
.bike-pump-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 60px;
    margin: 20px;
}

.pump-handle {
    width: 60px;
    height: 10px;
    background-color: #555;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.pump-body {
    width: 20px;
    height: 100px;
    background-color: #888;
    border-radius: 10px;
}

/* Pumping animation */
.bike-pump-container.pumping .pump-handle {
    animation: pumpAction 0.3s ease;
}

@keyframes pumpAction {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }
}


/* Optional hover effect */
.bike-pump-container:hover .pump-handle {
    transform: translateY(-5px);
}

/*Video page CSS*/
.video-container-flex {
    background-image: url('/images/cinema.jpg'); /* Ensure correct path */
    background-size: cover; /* Cover entire page */
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    height: 100vh; /* Full viewport height */
    gap: 10px; /* Space between sections */
    padding: 10px;
}

.video-episode-container {
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.videoplayer-container {
    flex: 0 0 auto; /* Do not grow or shrink */
    min-height: 300px; /* Set a minimum height for the video player */
}

.video-js {
    width: 100%;
    height: 100%;
}

#videoplayer {
    flex: 1;
}

/* Allow the episodes container to size dynamically */
.episodes-container {
    flex: 0 0 auto; /* Do not grow or shrink */
    min-height: 100px; /* Set a minimum height for the video player */
    overflow-y: auto; /* Scroll if content overflows */
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Space between episode items */
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}
.hidden{
    visibility: hidden;
}

.episode-item {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    max-height: 50px;
}

    .episode-item:hover {
        transform: scale(1.1);
        background-color: rebeccapurple;
    }

#selected-episode {
    background-color: rebeccapurple;
}

#medialist {
    flex: 0 0 250px; /* Fixed width for the media list */
    overflow-y: auto; /* Scroll if content overflows */
    border-right: 1px solid #ccc; /* Separator */
    padding-right: 10px;
}

#medialist h3 {
    margin: 0 0 10px 0; /* Remove top margin and add bottom margin */
    font-size: 1.2em; /* Optional: Adjust font size */
}

.media-item {
    width: 100px; /* Match the width of the image */
    height: 150px; /* Match the height of the image */
    overflow: hidden; /* Prevent content from overflowing */
    border: 1px solid #ccc; /* Optional: Add a border for visual clarity */
    border-radius: 5px; /* Optional: Add rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    box-sizing: border-box; /* Include border in the width and height calculation */
    transition: transform 0.2s ease-in-out;
}
    /* Image styling */
    .media-item img {
        width: 100%; /* Ensure the image fills the container */
        height: 100%; /* Ensure the image fills the container */
        object-fit: cover; /* Ensure the image covers the container without distortion */
        border-radius: 5px; /* Optional: Match the container's rounded corners */
    }

    .media-item:hover {
        transform: scale(1.1); /* Slight zoom effect on hover */
    }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Ensure each column is exactly 100px wide */
    gap: 10px; /* Space between items */
}

/*News page CSS*/
.news-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 2%;
    align-items: center;
}

.news-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    /* Responsive width: grows/shrinks with screen */
    width: 100%;
    max-width: 800px;
    min-width: 280px;
    box-sizing: border-box;
}

.news-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

a {
    color: blue;
    text-decoration: none;
}

.news-background {
    background-image: url('/images/newspaper-background.jpg');
    background-size: cover;
    background-position: center;
    padding: 16px 0;
}



/*Home page CSS*/
trivia-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 1rem;
    background-color: #f5f5f5;
}

.trivia-container h1 {
    margin-bottom: 2rem;
}

.trivia-title {
    margin-bottom: 2rem;
    text-align: center;
}

.trivia-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    margin: auto;
}

.trivia-card-body h4 {
    margin-bottom: 1rem;
}

.trivia-card-body h6 {
    margin-bottom: 1rem;
}

.answer-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f9f9f9;
    text-align: left;
}

    .answer-button:hover:enabled {
        background-color: #ececec;
    }

.next-button {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .next-button:hover {
        background-color: #0056b3;
    }

.trivia-card-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.dot-progress {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    opacity: 0.5;
    transition: background-color 0.3s ease, transform 0.5s ease;
    transform: translateX(100%); /* start right */
}

    .dot.active {
        opacity: 1;
        transform: translateX(50%); /* center */
    }

    .dot.correct {
        background-color: #4caf50;
        opacity: 1;
    }

    .dot.incorrect {
        background-color: #f44336;
        opacity: 1;
    }

    .dot.answered {
        transform: translateX(0); /* slide into place */
    }

    /*News svt*/
.news-ribbon {
    position: fixed;
    top: 0;
    width: 100%;
    height: 40px;
    background-color: #00457c;
    color: white;
    display: flex;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    overflow: hidden;
}

.ticker-container {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 15s linear forwards; /* remove "infinite" */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.news-popup {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 300px;
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    padding: 16px;
    z-index: 1001;
}

    .news-popup h3 {
        margin-top: 0;
    }

    .news-popup a {
        text-decoration: underline;
        color: #00457c;
    }

/*.ribbon-toggle-on-left {
    position: fixed;
    top: 5px;
    left: 10px;*/ /* Move to the left */
    /*z-index: 1100;
    background-color: #444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}*/
.ribbon-toggle-on-left {
    position: absolute;
    left: 10px;
    top: 5px;
    background-color: #444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 1010;
}

.ribbon-toggle-inside {
    float: right;
    background-color: #00457c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-bottom: 10px;
}


/*Calorie CSS*/
/* Responsive food table styles */
.responsive-food-table th:nth-child(3), /* KJ/100g */
.responsive-food-table td:nth-child(3),
.responsive-food-table th:nth-child(4), /* Calories/Unit */
.responsive-food-table td:nth-child(4),
.responsive-food-table th:nth-child(5), /* KJ/Unit */
.responsive-food-table td:nth-child(5) {
    transition: all 0.3s ease;
}

/* Medium screens (tablets) - hide some columns */
@media (max-width: 992px) {
    .responsive-food-table th:nth-child(3),
    .responsive-food-table td:nth-child(3),
    .responsive-food-table th:nth-child(5),
    .responsive-food-table td:nth-child(5) {
        display: none;
    }
}

/* Small screens (mobile) - hide more columns */
@media (max-width: 768px) {
    .responsive-food-table th:nth-child(4), /* Calories/Unit */
    .responsive-food-table td:nth-child(4),
    .responsive-food-table th:nth-child(6), /* Unit */
    .responsive-food-table td:nth-child(6) {
        display: none;
    }

    /* Make weight input smaller */
    .responsive-food-table td:nth-child(7) input {
        width: 80px !important;
    }
}