@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

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

h1:focus {
    outline: none;
}

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

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

.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;
}

.black-background {
    background-color: black;
    color: white; /* Optional: makes text readable on black background */
}

.no-list-style {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Round page container */
.round-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    min-height: 100vh;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* Heading */
    .round-container h3 {
        font-size: 2rem;
        margin-bottom: 20px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

/* Audio player */
.audio-container {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.audio-player {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

/* Artist choices */
.artist-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.artist-btn {
    background-color: #2a2a40;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

    .artist-btn:hover {
        background-color: #3a3a5a;
        transform: scale(1.05);
    }

/* Round result */
.round-result {
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-right: 20px;
    text-align: center;
    background-color: #1e1e2f;
    padding: 10px 20px;
    border-radius: 8px;
}

.correct-artist {
    font-weight: bold;
    color: #4caf50;
}

.game-img{
    max-width: 130px;
}

/* Play Again button */
.play-again-btn {
    padding: 12px 25px;
    margin-right: 20px;
    border-radius: 8px;
    border: none;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

    .play-again-btn:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }


/* Container */
.room-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

    /* Heading */
    .room-container h3 {
        font-size: 2rem;
        margin-bottom: 30px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

/* Form wrapper */
.room-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
}

/* Inputs */
.room-input {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #fff;
    background-color: #2a2a40;
    transition: background 0.2s, box-shadow 0.2s;
}

    .room-input::placeholder {
        color: #bbb;
    }

    .room-input:focus {
        background-color: #3a3a5a;
        box-shadow: 0 0 5px #007bff;
    }

/* Button */
.room-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

    .room-btn:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }


/* Overall lobby container */
.lobby-container {
    display: flex;
    gap: 20px;
    height: 500px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar with players */
.lobby-sidebar {
    width: 200px;
    background-color: #1e1e2f;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

    .lobby-sidebar h3 {
        text-align: center;
        margin-bottom: 15px;
    }

/* Player list */
.player-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.player-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background-color: #2a2a40;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

    .player-item:hover {
        background-color: #3a3a5a;
    }

.host-crown {
    color: gold;
}

/* Start round button */
.start-round-btn {
    margin-top: auto;
    background-color: #4caf50;
    border: none;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

    .start-round-btn:hover {
        background-color: #45a049;
    }

/* Main lobby area */
.lobby-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Chat window */
.chat-window {
    flex: 1;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    overflow-y: auto;
    margin-right: 20px;
    margin-bottom: 10px;
}

.chat-message {
    color: black;
    margin-bottom: 6px;
}

/* Chat input */
.chat-input {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

    .chat-input input {
        flex: 1;
        padding: 8px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }

    .chat-input button {
        padding: 8px 12px;
        border-radius: 5px;
        border: none;
        background-color: #007bff;
        color: #fff;
        cursor: pointer;
        transition: background 0.2s;
    }

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

#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA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EgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.fade-target {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.archive-table-wrapper {
    width: 100%;
    overflow-y: auto;
    overflow-x: auto;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-family: sans-serif;
    font-size: 0.95rem;
}

    .archive-table thead {
    }

    .archive-table th, .archive-table td {
        padding: 25px;
        border: 1px solid #ddd;
        text-align: left;
    }


/* App brand */
.app-brand {
    position: relative;
    display: block;
    background-color: #4c84ff;
}

    .app-brand a {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 75px;
        line-height: 75px;
        width: 150px;
        transition: width 0.3s ease-in-out;
        padding-left: 1.56rem;
    }

@media (prefers-reduced-motion: reduce) {
    .app-brand a {
        transition: none;
    }
}

@media (min-width: 768px) {
    .app-brand a {
        overflow: hidden;
    }
}

.app-brand a img {
    max-width: 80px;
    vertical-align: middle;
}

.app-brand .brand-name {
    color: #b20d0d;
    font-size: 1.12rem;
    margin-left: 0.94rem;
    max-width: 170px;
}


/*Toast Css*/
.cs-toast {
    display: block;
    padding: 25px;
    color: #fff;
    z-index: 999;
    position: absolute;
    width: 25rem;
    top: 2rem;
    border-radius: 1rem;
    right: 2rem;
}

.cs-toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.cs-toast-body {
    display: flex;
    flex-direction: column;
    flex: 2;
    padding-left: 1rem;
}

    .cs-toast-body p {
        margin-bottom: 0;
    }

.cs-toast-visible {
    display: flex;
    flex-direction: row;
    animation: fadein 1.5s;
}

.cs-toast-hide {
    display: none;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

    /* Style the buttons inside .app-buttons */
    .app-buttons button {
        background-color: #acacac; /* light gray background */
        border: none;
        color: white;
        border-radius: 20px; /* makes the button rounded */
        padding: 10px 20px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
    }

        .app-buttons button:hover {
            background-color: #868282; /* slightly darker on hover */
        }

.imglogo {
    border: none;
    outline: none;
}

.imgstorelogo {
    border: none;
    outline: none;
    max-width: 150px;
    max-height: 150px;
}

    .imgstorelogo:hover {
        background-color: #0071c1;
        border-radius: 15px; /* curved edges */
    }

.iconlogo {
    border: none;
    outline: none;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%; /* Makes the image display as a circle */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/** (Movie)Video Player Stuff */
.video-list-title {
    margin-top: 20px;
    text-align: center;
    font-size: 2em;
    color: #333;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

video {
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.video-title {
    text-align: center;
    margin-top: 20px;
    font-size: 1.8em;
    color: #fff;
}

/** Video selection styles */
.video-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.video-card {
    width: 180px; /* slightly wider for padding */
    cursor: pointer;
    background-color: #537379;
    border-radius: 8px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px;
    box-shadow: #fff 5px;
}

    .video-card:hover {
        transform: translateY(-4px);
    }

.thumbnail {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    border: 3px solid #0c0c0c;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.video-info {
    padding: 8px 0;
}

.video-title {
    font-size: 1em;
    font-weight: 600;
    color: #fff;
}

.category-wrapper {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    text-align: center;
}

/** Dashboard grid stuff */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 40px;
    max-width: 500px; /* keeps it from stretching too wide on large screens */
    margin: 0 auto;
}

.app-button {
    width: 100%;
    aspect-ratio: 1 / 1; /* keeps buttons square */
    border-radius: 15px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

    .app-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    /* Color tweaks for outline buttons (Bootstrap override) */
    .app-button.btn-outline-primary {
        color: #0d6efd;
        border: 2px solid #0d6efd;
        background-color: #fff;
    }

        .app-button.btn-outline-primary:hover {
            background-color: #0d6efd;
            color: #fff;
        }

    .app-button.btn-outline-info {
        color: #0dcaf0;
        border: 2px solid #0dcaf0;
        background-color: #fff;
    }

        .app-button.btn-outline-info:hover {
            background-color: #0dcaf0;
            color: #fff;
        }


@media (min-width: 720px) {
    .app-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        width: 1500px;
    }
}

.current-song {
    font-weight: bold;
    color: #0d6efd;
}

.artist-list{
    margin-bottom: 200px;
}

.artist-card {
    background-color: #1c1c1c;
    border: 2px solid #444444;
    border-radius: 12px;
    cursor: pointer;
    /* fixed size */
    height: 160px; /* same height for all cards */
    min-width: 110px;
    display: flex;
    justify-content: center; /* horizontally center */
    align-items: center; /* vertically center */

    padding: 4px;
    gap: 2px;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    .artist-card:hover {
        background-color: #2a2a2a;
        border-color: #888888;
        box-shadow: 0 4px 10px rgba(255,255,255,0.1);
        transform: translateY(-1px);
    }

    .artist-card:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(255,255,255,0.1);
    }

    .artist-card:focus-visible {
        outline: none;
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
    }

.artist-name {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
    color: #ffffff;
}

.album-card {
    background-color: #1c1c1c;
    border: 2px solid #444444;
    border-radius: 12px;
    cursor: pointer;
    /* fixed size like artist cards */
    height: 160px;
    min-width: 110px;
    display: flex;
    justify-content: center; /* horizontally center */
    align-items: center; /* vertically center */

    padding: 4px;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    .album-card:hover {
        background-color: #2a2a2a;
        border-color: #888888;
        box-shadow: 0 4px 10px rgba(255,255,255,0.1);
        transform: translateY(-1px);
    }

    .album-card:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(255,255,255,0.1);
    }

    .album-card:focus-visible {
        outline: none;
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
    }

.album-name {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
    color: #ffffff;
}

