/* General Styles */
body {
    font-family: 'Verdana', sans-serif;
    background: linear-gradient(to right, color-mix(in srgb, var(--color), transparent 50%), color-mix(in srgb, var(--color), transparent 50%)), url(/assets/images/pattern.jpg);
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Header and Navigation */
header {
    background: linear-gradient(to right, var(--color) 160px, white 90%);
    text-align: center;
    border-bottom: 1px solid var(--color);
    position: relative;
    height: min(25vh, 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: min(1.5vw, 16px);
    padding-bottom: 10px;
    box-sizing: border-box;
    
    transition: background 1s ease-in-out;
}

header h1 {
    font-size: 2vw;
}

header img {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

header #logo-full {
    display: block;
}

header #logo-sm {
    display: none;
    height: 75%;
    margin: auto;
    left: auto;
    top: auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a span {
    display: none;
}

nav ul li a:hover {
    background-color: #f2f2f2;
}

#toggle {
    border: solid 20px transparent;
    border-bottom: solid 0 transparent;
    border-top: solid 10px var(--color);
    position: absolute;
    bottom: 0;
    transform: translate(0, 15px);
    box-sizing: border-box;
    display: none;
}

#user-section {
    position: absolute;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#user {
    width: 8vh;
    height: 8vh;
    box-sizing: border-box;
    background-size: cover;
    background-position: 50%;
    border-radius: 100%;
    background-color: lightblue;
}

#login, #logout {
    background-color: white;
    border-radius: 20px;
    outline: solid 1px var(--color);
    padding: 5px;
    color: var(--color);
    font-weight: 900;
    cursor: pointer;
}

#login:hover, #logout:hover {
    background-color: var(--color);
    border-radius: 20px;
    padding: 5px;
    color: white;
    font-weight: 900;
}

/* Main Content Area */
main {
    padding: 20px;
}

#content {
    margin: 20px auto 120px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    background: #fffb;
    border-radius: 10px;
    min-height: calc(100vh - min(20vh, 160px) - 16vh);
}

#content:has(.pokemon-center-info) {
    max-width: 100%;
    padding: 0;
    margin: 0;
    height: 10px;
}

/* Footer */
footer {
    background: linear-gradient(to left, var(--color) 160px, white 90%);
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--color);
    position: fixed;
    width: 100%;
    bottom: 0;
    position: fixed;
}

footer p {
    margin: 0;
    color: #333;
    font-size: 1em;
}

.event-item {
    height: 50vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 65vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.event-item > div {
    background: #FFF8;
    width: 100%;
}

.pokemon-center-info {
    background: url(/assets/images/pokemon-center-photo.jpg);
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}

.pokemon-center-info hero {
    width: 100%;
    background: rgba(0, 0, 0, .5);
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pokemon-center-info hero h2 {
    margin: 5px;
}

.pokemon-center-info hero p {
    margin: 0;
}

/* Trainer Card Styles */
.trainer-card {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
}

.trainer-card .trainer-image {
    min-width: 235px;
    display: block;
    box-sizing: border-box;
    background-size: cover;
    background-position: 50%;
    border-radius: 7px;
    background-color: white;
}

.trainer-card .trainer-info {
    margin-left: 15px;
}

.trainer-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #333;
}

.trainer-card ol {
    list-style: none;
    font-weight: 900;
}

.trainer-card ol li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.trainer-card ol li img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.trainer-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    border: dashed 2px black;
    min-height: 80px;
    border-radius: 10px;
    padding: 10px;
}

.trainer-card ul li {
    margin: 5px 0;
    background: linear-gradient(to right, var(--color), white);
    color: #333;
    width: 265px;
    padding: 20px 15px;
    box-sizing: border-box;
    border: solid var(--color);
    border-radius: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 75%;
}

.trainer-card ul li:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.trainer-card ul li div {
    text-decoration: none;
    color: black;
    cursor: pointer;
    font-weight: 900;
}

.trainer-card ul li img {
    width: 25px;
    aspect-ration: 1 / 1;
}

.trainer-card .storage-list {
    max-height: 245px;
    overflow: auto;
}

#pokemon-list, #item-list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

#item-list {
    image-rendering: pixelated;
}

#pokemon-list li,
#item-list li {
    padding: 15px;
    text-align: left;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 10px -4px cornflowerblue;
    margin: 10px 0px;
    cursor: pointer;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

#pokemon-list li:hover,
#item-list li:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#pokemon-list li div,
#item-list li div {
    text-decoration: none;
    color: #333;
    font-size: min(5vw, 2rem);
    background: rgba(255, 255, 255, .7);
    border-radius: 5px;
    padding: 10px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: left;
}

div#modal-body {
    display: flex;
    flex-direction: column;
    overflow: auto;
    max-height: 80vh;
}

#modal-body img {
    height: min(55vh, 100%);
    aspect-ratio: 1 / 1;
    width: min(55vh, 100%);
    margin: auto;
}

.modal-button-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
}

.modal-button-group button {
    width: 100%;
    box-sizing: border-box;
    margin: 10px;
    font-size: 18px;
    padding-block: 10px;
    border: none;
    border-radius: 5px;
}

.modal-button-group button.primary {
    background: var(--color);
    color: white;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
}



@media only screen and (max-width: 700px) {
    header {
        height: 100px;
    }
    
    header nav {
        display: none;
    }
    
    header nav.open {
        height: 100%;
        display: block;
        bottom: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: linear-gradient(to right, var(--color), white);
    }
    
    nav.open ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    nav.open ul li {
        width: 100%;
        margin: 0;
        padding-block: 10px;
    }
    
    nav.open ul li a {
        font-size: 4em;
    }
    
    nav.open ul li a span {
        display: block;
    }
    
    nav.open ul li:hover {
        background: white;
    }
    
    header #logo-full {
        display: none;
    }
    
    header #logo-sm {
        display: block;
    }
    
    header h1 {
        display: none;
    }
    
    #toggle {
        display: block;
    }
    
    div#toggle.open {
        position: fixed;
        bottom: 10px;
        transform: rotate(180deg);
    }
    
    footer {
        font-size: 10px;
    }
    
    main#content {
        min-height: calc(100vh - 130px);
    }
    
    #user-section {
        display: none;
    }
}

@media only screen and (max-width: 950px) {
    #trainer-list .trainer-card {
        display: flex;
        flex-direction: column;
    }
    
    #trainer-list .trainer-image {
        width: 100%;
        aspect-ratio: 1.5 / 1;
        background-position: center -45px;
    }
    
    #trainer-list .trainer-card ul li {
        width: 100%;
    }
}

span.type {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    font-weight: 900;
}

.type.normal {
    background-color: #A8A77A;
}
.type.fire {
    background-color: #EE8130;
}
.type.water {
    background-color: #6390F0;
}
.type.electric {
    background-color: #F7D02C;
}
.type.grass {
    background-color: #7AC74C;
}
.type.ice {
    background-color: #96D9D6;
}
.type.fighting {
    background-color: #C22E28;
}
.type.poison {
    background-color: #A33EA1;
}
.type.ground {
    background-color: #E2BF65;
}
.type.flying {
    background-color: #A98FF3;
}
.type.psychic {
    background-color: #F95587;
}
.type.bug {
    background-color: #A6B91A;
}
.type.rock {
    background-color: #B6A136;
}
.type.ghost {
    background-color: #735797;
}
.type.dragon {
    background-color: #6F35FC;
}
.type.dark {
    background-color: #705746;
}
.type.steel {
    background-color: #B7B7CE;
}
.type.fairy {
    background-color: #D685AD;
}

/* Healing Stations Styles */
.healing-stations {
    margin: 20px auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    background: #fffb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
}

.station {
    background-color: white;
    border: 2px solid var(--color);
    border-radius: 10px;
    padding: 15px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.station:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.station h3 {
    margin: 0;
    color: var(--color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.station .trainer-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.station .pokemon-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.station .pokemon-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.station .pokemon-list li .status {
    font-style: italic;
    color: #777;
}

.station-trainer {
    font-weight: bold;
}

.station-data {
    font-family: monospace;
    font-size: 20px;
    background: black;
    border-radius: 10px;
    color: limegreen;
    padding: 10px 30px;
    max-height: 350px;
    overflow-y: auto;
}

.station-data p {
    margin: 0;
    padding: 0;
}

.station-data p.data {
    padding-left: 40px;
}

.station-data hr {
    border-color: limegreen;
    border-style: dashed;
}

.station-time {
    font-size: small;
}

.progress-bar {
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    margin-top: 10px;
    width: 100%;
}

.progress-bar div {
    background-color: var(--color);
    height: 100%;
    transition: width 0.5s;
}

.progress {
    width: 0;
}

.toast-notification {
    position: fixed;
    bottom: 75px;
    z-index: 10;
    background: var(--color);
    padding: 30px;
    width: 500px;
    border-radius: 10px;
    color: white;
    font-size: 25px;
    font-weight: bold;
    left: calc(50% - 250px);
    right: calc(50% - 250px);
    border: white solid 2px;
    box-shadow: 0 11px 11px rgba(0, 0, 0, 0.3);
    animation: toast 5s ease-in-out forwards;
}

@keyframes toast {
    0% { bottom: -500px; }
    10% { bottom: 75px; }
    90% { bottom: 75px; }
    100% { bottom: -500px; }
}

#quest-ticker-wrapper {
    width: 100vw;
    height: 75px;
    position: fixed;
    bottom: 0;
    text-align: left;
    background: linear-gradient(0deg, var(--color) 0, white 20%, white 60%, var(--color) 80%, transparent 80%);
    z-index: 1;
}

#quest-ticker-wrapper b {
    background: white;
    border: solid 2px var(--color);
    border-radius: 2px;
    padding: 10px;
    margin-inline: 30px;
}

#quest-ticker {
    overflow: hidden;
    white-space: nowrap;
    width: fit-content;
    margin-top: 5px;
}
.quest-text {
    display: inline-block;
    padding: 10px;
    font-size: 18px;
    margin-inline: 40px;
}
