@font-face {
    font-family:Volter-Goldfish;
    src:url('../assets/fonts/Goldfish.ttf');
    font-weight:400;
    font-style:normal
}

* {
    font-family: Volter-Goldfish, serif;
}

html {
    font-size: 18px;
}

body {
    background-image: url('../assets/layout/bday_background.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: auto;
}

.battle-header {
    background: url('../assets/layout/battleball.png') no-repeat fixed;
    background-size: 50%;
}

.navbar {
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
}

.navbar .nav-link {
    background-color: #9c350f;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #fff;
    padding: 10px;
    margin: 5px;
}

.navbar .nav-link:hover {
    background-color: #9c350f;
}

.pagination {
    margin-bottom: 0px;
}

.page-item {
    background-color: white;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
    color: #330;
    padding: 5px;
    margin: 5px;
}

.page-item.active {
    background-color: #9c350f;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
    color: white;
    padding: 5px;
    margin: 5px;
}

.page-link {
    border: none;
    color: #050a0e;
}

.page-link:hover {
    color: #9c350f;
    background-color: white;
}

.active > .page-link {
    color: white;
    background-color: #9c350f;
}

.disabled > .page-link {
    background-color: white;
}

/************/

.dropdown-menu {
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
    margin: 10px;
    padding: 20px;
}

.dropdown-item {
    background-color: #9c350f;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #fff;
    padding: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}

footer {
    background-color: white;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
    padding: 5px;
    font-size: 14px !important;
}

.white {
    background-color: white;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
}

.white-matches {
    background-color: white;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
    padding: 5px;
}

.yellow {
    background-color: #e69e0e;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
}

.blue {
    background-color: #9c350f;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
    text-color: #fff;
}

.whiteyellow {
    background-color: #f2d673;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: #330;
    text-color: #fff;
}

.red {
    background-color: #cc0100;
    border-radius: 15px;
    border: 1px solid #050a0e;
    box-shadow: 0 2px 3px rgba(6,19,25,.7);
    color: white;
}

/* Leaderboard */
.leaderboard {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Voor .gold class */
.form-control.gold:disabled {
    background-color: #fddc01;
}

/* Voor .silver class */
.form-control.silver:disabled {
    background-color: #d6ece9;
}

/* Voor .brons class */
.form-control.brons:disabled {
    background-color: #b96a28;
}

.gold {
    background-color: #fddc01;
}

.silver {
    background-color: #d6ece9;
}

.brons {
    background-color: #b96a28;
}

.card-header.leaderboard {
    background-color: #9e9596;
}

.leaderboard-inside {
    background-color: #35474b;
    color: white;
    border-radius: 15px;
    padding: 10px;
}

.leaderboard-card {
    background-color: #35474b;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.home.card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
}

.news.card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
}

.newsarticle.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 15px 15px 0 0;
}

.card-img-top {
    width: 100%;
    height: 5vw;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.maps.card-img-top {
    width: 100%;
    height: 255px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px 15px 0 0;
}

.single.card-img-top {
    width: 100%;
    height: 10vw;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.btn-success {
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
    background-color: #00813e;
    border-color: #8eda55;
    padding: 6px 12px;
}

.btn-success:hover {
    background-color:#00ab54;
    border-color:#b9f373
}

.btn-primary {
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 6px 12px;
}

.btn-danger {
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
    background-color: #cc0100;
    border-color: #cc0100;
    padding: 6px 12px;
}

.btn-outline-dark {
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
    background-color: #fff;
    border-color: #000;
    color: #000;
    padding: 6px 12px;
}

.btn-outline-dark:hover {
    background-color:lightgray;
    border-color:#000;
    color: #000;
}

.btn-outline-danger {
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
    background-color: #fff;
    border-color: #cc0100;
    color: #cc0100;
    padding: 6px 12px;
}

.form-control-lg {
    border: 3px solid #275d8e;
    border-radius: 15px;
    color: #444;
    box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
}

.team-total {
    background-color: #d6ece9 !important; /* Bijvoorbeeld een lichte achtergrondkleur */
}

.card-header h4 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
}

.match-info {
    flex-wrap: wrap; /* Zorgt ervoor dat de items worden omgebroken als er geen ruimte is */
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: rgba(230, 230, 230, 0.8); /* Grijze transparante achtergrond */
    z-index: 10;
    display: none; /* Verberg standaard */
}

.loading-overlay-active {
    display: flex !important; /* Toon de overlay tijdens het laden */
    justify-content: center;
    align-items: center;
}

.xp-bar-container {
    height: 30px;
    background-color: #dcdcdc;
    border: 2px solid #000;
    padding: 2px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.xp-bar-fill {
    background: repeating-linear-gradient(
        45deg,
        #c55326,
        #c55326 4px,
        #9c350f 4px,
        #9c350f 8px
    );
    height: 100%;
    transition: width 0.3s ease;
}

.xp-bar-level {
    width: 32px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #444;
    text-shadow: 1px 1px 0px #fff;
}

.xp-bar-text {
    position: absolute; top:50%; left:50%;
    transform: translate(-50%, -50%);
    font-weight: 700; font-size: 14px; pointer-events:none;
}
.xp-bar-text.on-empty { color:#000; text-shadow: 0 2px 0 #fff, 0 0 5px rgba(255,255,255,.7); }
.xp-bar-text.on-fill  { color:#fff; text-shadow: 0 2px 0 #000, 0 0 5px rgba(0,0,0,.8); }

.xp-bar-label {
    font-family: monospace;
    text-align: center;
    margin-bottom: 4px;
}

.bg-blue {
    background-color: #335e7a !important;
}

/* Kaarten / cards */
.fish-card-loading {
    opacity: 0.6;
    pointer-events: none;
}

.fish-card {
    border-radius: 8px;
    border: 1px solid #d4d4d4;
    background: #fdfdfd;
    box-shadow: 0 1px 0 #ffffff80;
    transition: transform .1s ease-out, box-shadow .1s ease-out, border-color .1s ease-out;
    cursor: pointer;
}

.fish-card:hover {
    transform: translateY(-2px);
    border-color: #335e7a;
    box-shadow: 0 4px 0 #335e7a;
}

/* sprite in cards + modal (zelfde maat, zelfde stijl) */
.fish-card-image,
.fish-modal-image {
    max-width: 48px;
    max-height: 48px;
    image-rendering: pixelated;
}

/* modal sprite frame */
.fish-modal-image-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid #b9b9b9;
    background: repeating-linear-gradient(
        45deg,
        #f7f7f7,
        #f7f7f7 2px,
        #e4e4e4 2px,
        #e4e4e4 4px
    );
}

/* sterren */
.star-icon,
.star-icon-inline {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.fish-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.fish-stars-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

/* Active Hours – XP-style bar */
.active-hours-container {
    height: 20px;
    background-color: #dcdcdc;
    border: 2px solid #000;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.active-hours-fill {
    background: repeating-linear-gradient(
        45deg,
        #79c8ff,
        #79c8ff 4px,
        #5ab5e7 4px,
        #5ab5e7 8px
    );
    height: 100%;
    transition: width 0.3s ease;
}

.active-hours-scale {
    font-size: 0.7rem;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    color: #777;
}

/* Active Days */
.day-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 12px;
    border: 1px solid #d0d0d0;
}

.day-label {
    min-width: 2.2rem;
    text-align: center;
}

.day-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #999;
    background: transparent;
}

.day-active .day-dot {
    background: #79c8ff;
    border-color: #79c8ff;
}

.day-inactive {
    opacity: 0.5;
}

/* Modal styling */
#fishModal .modal-content {
    border-radius: 8px;
    border: 1px solid #335e7a;
    background: #f3f3f3;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* definities in modal */
#fishModal dl {
    margin-bottom: 0;
}

#fishModal dt {
    font-weight: 600;
}

#fishModal dd {
    margin-bottom: .25rem;
}

/* titel in modal */
#fishModal h4 {
    font-size: 1.25rem;
    margin-bottom: .25rem;
}

/* iets meer ruimte boven in de body */
#fishModal .modal-body {
    padding-top: 1.5rem;
}

/* witte close button op donkere header */
#fishModal .btn-close {
    filter: invert(1);
}

@media (max-width: 576px) {
    .card-img-top {
        height: 15vw;
    }

    .single.card-img-top {
        width: 100%;
        height: 20vw;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
    }

    .home.card-img-top {
        width: 100%;
        height: 25vw;
        object-fit: cover;
    }

    .match-info div {
        flex-basis: 100%;
        margin-bottom: 5px;
    }

    .navbar-brand img {
        max-height: 28px !important;
    }

}

body.dark-mode {
    background-image: url('../assets/layout/bg_fish.gif') !important;
    background-color: #121212 !important;
    color: #f1f1f1 !important;
}

body.dark-mode span.rank {
    color: #212529 !important;
}

body.dark-mode .navbar,
body.dark-mode footer,
body.dark-mode .white,
body.dark-mode .white-matches,
body.dark-mode .page-item,
body.dark-mode .dropdown-menu,
body.dark-mode .dropdown-item,
body.dark-mode .leaderboard,
body.dark-mode .leaderboard-inside,
body.dark-mode .leaderboard-card,
body.dark-mode .card-unconfirmed
{
    background-color: #1e1e1e !important;
    color: #f1f1f1 !important;
    border-color: #333 !important;
}

body.dark-mode .page-item.active,
body.dark-mode .navbar .nav-link:hover {
    background-color: #335e7a !important;
    color: #fff !important;
}

body.dark-mode .btn-outline-dark,
body.dark-mode .btn-outline-danger {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
}

body.dark-mode .btn-outline-dark:hover,
body.dark-mode .btn-outline-danger:hover {
    background-color: #555 !important;
    color: #fff !important;
}

body.dark-mode .xp-bar-container {
    background-color: #333 !important;
    border-color: #555 !important;
}

body.dark-mode .card,
body.dark-mode .card * {
    color: #f1f1f1 !important;
}

body.dark-mode .white,
body.dark-mode .white * {
    color: #f1f1f1 !important;
}

body.dark-mode .white-matches,
body.dark-mode .white-matches * {
    color: #f1f1f1 !important;
}

body.dark-mode .leaderboard,
body.dark-mode .leaderboard * {
    color: #f1f1f1 !important;
}

body.dark-mode table {
    background-color: white !important;
    color: #330 !important;
}

body.dark-mode table {
    background-color: #2c2c2c !important;
    color: #f1f1f1 !important;
}

body.dark-mode table td,
body.dark-mode table th {
    background-color: #2c2c2c !important;
    color: #f1f1f1 !important;
}

body.dark-mode table tr:nth-child(even) td {
    background-color: #3a3a3a !important;
}

body.dark-mode table tr:hover td {
    background-color: #444 !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #2c2c2c !important;
    color: #f1f1f1 !important;
    border-color: #555 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #bbb !important;
}

body.dark-mode .alert,
body.dark-mode .alert * {
    color: #2c2c2c !important;
}

body.dark-mode .bg-light {
    background-color: grey !important;
    color: #f1f1f1 !important;
}

body.dark-mode .page-link {
    color: #f1f1f1 !important;
    background-color: #1e1e1e !important;
}

body.dark-mode .active > .page-link
{
    color: #f1f1f1 !important;
    background-color: #335e7a !important;
}

body.dark-mode .fish-card {
    background: #1f1f1f !important;
    border-color: #333 !important;
    box-shadow: 0 1px 0 #00000040 !important;
}

body.dark-mode .fish-card:hover {
    border-color: #335e7a !important;
    box-shadow: 0 4px 0 #335e7a !important;
}

body.dark-mode .fish-modal-image-wrapper {
    border-color: #3a3a3a !important;
    background: repeating-linear-gradient(
        45deg,
        #242424,
        #242424 2px,
        #1b1b1b 2px,
        #1b1b1b 4px
    ) !important;
}

body.dark-mode .active-hours-container {
    background-color: #2a2a2a !important;
    border-color: #555 !important;
}

body.dark-mode .active-hours-scale {
    color: #bdbdbd !important;
}

body.dark-mode .day-pill {
    background: #262626 !important;
    border-color: #3a3a3a !important;
}

body.dark-mode .day-dot {
    border-color: #888 !important;
}

body.dark-mode .day-inactive {
    opacity: 0.55 !important;
}

body.dark-mode #fishModal .modal-content {
    background: #1e1e1e !important;
    border-color: #335e7a !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.55) !important;
}

body.dark-mode #fishModal .modal-header {
    border-bottom-color: #24445c !important;
}

body.dark-mode #fishModal dt {
    color: #f1f1f1 !important;
}

body.dark-mode #fishModal dd {
    color: #d9d9d9 !important;
}
