* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: azure;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body {
    background-color: rgb(41, 41, 41);
}
.flex {
    display: flex;
}
.flexCol {
    display: flex;
    flex-direction: column;
}
.sb {
    justify-content: space-between;
}
.center {
    justify-content: center;
}
.se {
    justify-content: space-evenly;
}
.sa {
    justify-content: space-around;
}
.ai {
    align-items: center;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.font16 {
    font-size: 16px;
}
.font14 {
    font-size: 14px;
}
.font12 {
    font-size: 12px;
}


/*########################### */
/*######### Header ##########*/
/*########################### */
header {
    width: 100vw;
    height: 50px;
    position: fixed;
    z-index: 100;
    left: 0;
    border-bottom: 1px solid rgb(145, 144, 144);
    justify-content: space-between;
    padding: 0 25px;
    background-color: rgb(63, 63, 63);
}
#navTop {
    height: 10%;
}
nav {
    justify-content: center;
    align-items: center;
}
.navItem {
    padding: 0 1.5vw;
    height: 100%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.navItem:hover{
    background-color: rgb(86, 86, 87);
    cursor: pointer;
    color: orange;
}
.siteActive {
    color: orange;
}
#characterDropdown {
    padding: 0;
    min-width: 155px;
    position: relative;
}
#activeCharacterImg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.dropdown-content, .submenu-content {
    width: 180px;
    display: none; 
    position: absolute;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    background-color: rgb(86, 86, 87);
    border: 1px solid rgb(145, 144, 144);
}
.dropdown-content {
    top: 100%;
    left: 0;
}
#characterDropdown li{
    list-style: none;
    font-size: 16px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
#characterDropdown li:hover{
    background-color: rgb(49, 49, 49);
}
.submenu-content {
    right: 100%;
    top: 0;
}
#characterSubmenu > li > div, #spezialisierungSubmenu > li > div{
    width: 100%;
}
#characterSubmenu > li, #spezialisierungSubmenu > li {
    display: flex;
    justify-content: center;
    width: 100%;
    border-bottom: 1px solid rgb(145, 144, 144);
}
#characterSubmenu > li:last-of-type, #spezialisierungSubmenu > li:last-of-type {
    border-bottom: none;
}
#characterSubmenu > li > div > div:first-of-type, #spezialisierungSubmenu > li > div > div:first-of-type {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
} 
#characterSubmenu > li > div > div:last-of-type, #spezialisierungSubmenu > li > div > div:last-of-type {
    margin: auto;
} 
.show {
    display: block;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



/*################################ */
/*##### Bestätigungs-Overlay #####*/
/*################################ */
.overlay {
    display: flex; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.confirm-box {
    background: #2a2a2a;
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    min-width: 300px;
}
.confirm-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}
button {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.btn-yes { background: #4CAF50; color: white; }
.btn-no { background: #f44336; color: white; }




/*################################ */
/*######### Main-Bereiche ########*/
/*################################ */
#main1 {
    display: flex;
    justify-content: start;
    align-items: flex-start;
    margin: 6vh 10% 0 10%;
}
#main2 {
    display: none;
}
#main3 {
    display: none;
}
.main {
    margin-top: 6vh;
    padding: 0 3vw;
    min-height: 88vh;
}
.main h1 {
    text-align: center;
    margin: 4vh 0;
}



/*###########################*/
/*######## Übersicht ########*/
/*###########################*/
#startText {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 100px;
    display: none;
    flex-direction: column;
}
#startText > div {
    width: 150px;
    height: 50px;
    font-weight: bold;
    margin-top: 50px;
    border: 1px solid #ddd;
    background-color: rgb(49, 49, 49);
    display: flex;
    align-items: center;
    justify-content: center;
}
#startText > div:hover {
    background-color: rgb(65, 64, 64);
    cursor: pointer;
}
.character {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 100px 0 0;
    padding-bottom: 10px;
    width: 370px;
    background-color: rgb(49, 49, 49);
    border: 1px solid rgb(255, 255, 255);
}
.character > .characterImg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 10vh;
}
.characterName {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}
.character > .characterDetailsTypes, .character > .characterDetails{
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    text-align: center;
    font-size: 15px;
    width: 100%;
}
.character > .characterDetailsTypes{
    text-decoration: underline;
    border-top: 1px solid #ddd;
    padding-top: 5px;
}
.character > .characterDetails {
    margin-bottom: 10px;
    margin-top: 5px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
.characterDetails > div {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contentSection {
    padding: 5px 0; 
    font-size: 18px; 
    width: 100%; 
    text-align: center; 
    font-weight: bold;
}
details {
  background-color: rgb(49, 49, 49);
  padding: 5px 15px 5px 5px;
  width: 100%;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
}
details[open] summary::after {
  transform: rotate(180deg);
}
summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-size: 16px;
}
summary::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s;
}
summary > div:first-of-type p {
    margin-left: 10px;
}
summary > div:last-of-type{
    position: absolute;
    right: 30px;
}
.content {
  padding-bottom: 10px;
  margin-top: 10px;
  font-size: 16px;
}
.content > h4 {
    margin-top: 10px;
}
.content > .item {
    border-top: 1px solid rgb(110, 109, 109);
    width: 103%;
    font-weight: normal;
}
.content > .item > * {
    height: 35px;
}
.content > .item > img, summary img {
    width: 35px;
    height: 35px;
}
.content p {
    display: flex;
    align-items: center;
}
.content .itemWerte {
    border-right: 1px solid rgb(110, 109, 109);
}


/*########################### */
/*########## Items ##########*/
/*########################### */
article {
    width: 370px;
    background-color: rgb(49, 49, 49);
    border: 1px solid rgb(255, 255, 255);
    margin: 0px auto 80px auto;
}
.articleImg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 10vh;
    position: relative;
}
.bossImage {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 50%;
    height: 8vh;
    bottom: 0;
    position: absolute;
}
.articleHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    font-size: 22px;
    border-bottom: 1px solid white;
    border-bottom: 1px solid white;
    background-color: rgb(75, 42, 97);
}
.itemContainer {
    height: 300px;
    overflow-y: auto;
}
.itemContainer::-webkit-scrollbar {
    background-color: rgb(49, 49, 49);
    width: 5px;
    margin: 2px;
}
.itemContainer::-webkit-scrollbar-thumb {
    background-color: rgb(187, 189, 182);
    border-radius: 10px;
}
.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgb(110, 109, 109);
    position: relative;
    font-size: 16px;
}
.item > img {
    width: 45px;
    border-right: 1px solid rgb(110, 109, 109);
}
.itemName {
    font-size: 18px;
}
.itemWerte {
    width: 60px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgb(110, 109, 109);
    font-size: 14px;
}
.wish-hero {
    background-color: rgb(185, 90, 95);
}
.wish-champion {
    background-color: rgb(81, 81, 136);
}
.wishSelection {
    position: absolute;
    display: none;
    flex-direction: column;
    width: 60px;
    border-left: 1px solid rgb(110, 109, 109);
    right: 0;
    height: 45px;
}
.wishSelectionButton {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    transition: all 0.3s;
}
.Champion {
    background-color: rgb(81, 81, 136);
    border-bottom: 1px solid rgb(110, 109, 109);
    height: 23px;
}
.Champion:hover {
    background-color: rgb(14, 14, 136);
    cursor: pointer;
}
.Held {
    background-color: rgb(185, 90, 95);
    height: 22px;
}
.Held:hover {
    background-color: rgb(151, 18, 25);
    cursor: pointer;
}




/*########################### */
/*######## Charakter ########*/
/*########################### */
#characterContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 390px;
    align-items: flex-start;
}
#main3 .character {
    padding-bottom: 0;
    margin: 0px auto 80px auto;
}
.buttonContainer {
    display: flex;
    justify-content: space-between;
    width: 60%;
    height: 60px;
    align-items: center;
}
.characterButtons {
    width: 45%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background-color: rgb(66, 66, 65);
    border: 1px solid rgb(110, 109, 109);
    transition: all 0.3s;
}
.characterButtons:hover {
    cursor: pointer;
    background-color: rgb(85, 85, 84);
}
#updateButton, #searchButton{
    user-select: none;
}
#updateButton.loading , #searchButton.loading {
    color: transparent;
    cursor: not-allowed;
    pointer-events: none;
}
#updateButton.loading::after , #searchButton.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
#updateButton:not(.loading)::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#newCharacter {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#newCharacter > input {
    height: 35px;
    width: 80%;
    margin-bottom: 10px;
    color: black;
    font-size: 18px;
}
#newCharacter > div:last-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
    width: 80%;
    background-color: rgb(69, 70, 70);
    font-size: 16px;
    transition: all 0.3s;
}
#newCharacter > div:last-of-type:hover{
    background-color: rgb(85, 85, 85);
    text-decoration: underline;
    cursor: pointer;
}


/*###########################*/
/*########## Footer #########*/
/*###########################*/
footer {
    display: flex;
    flex-direction: column;
    height: 6vh;
    border-top: 1px solid rgb(145, 144, 144);
    justify-content: center;
    align-items: center;
    text-align: center;
}
footer span {
    text-decoration: underline;
    font-weight: bold;
}


@media screen and (max-width: 1670px) {
    .grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}