@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');


* {
    margin: 0px;
    padding: 0px;
    font-family: "Cinzel Decorative", serif;
}

body {
    padding: 20px;
    background-color: burlywood;
    height:100vh;
    overflow-y: hidden;
    background-image:url("img/pergament-texture.jpg");
}

#bar {
    display:none;
    text-align: center;
    margin-bottom: 20px;
}


#title-popup {
    z-index: 50000;
    display: none;
    position: fixed;
    top: 40vh;
    text-align: center;
    width: 100%;
}

#popupmessage {
    color:white;
    text-transform: uppercase;
}

#footer {
    display:flex;
    flex-direction: row;
    height:20vh;
}

#console {

    padding: 20px;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
    line-height: 1.5;
    flex-grow: 4;
}

#navigation {
    padding: 20px;
    border: 1px solid #fff;
    flex-grow: 1;
}

#spellbook {
    display: none;
    position: fixed;
}



#pspelllist {
    display: flex;
    margin-bottom: 20px;
}

#pspelllist * {
    margin-right: 20px;
}

#spelllist {
    display: flex;
}

#spelllist * {
    margin-right: 20px;
}

.closebutton {
    cursor: pointer;
    text-align:right;
    width:100%;
}

progress[value] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

progress[value] {
    --color: blue; /* the progress color */
    --background: white; /* the background color */

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    width: 200px;
    margin: 0 10px;
    border-radius: 10em;
    background: var(--background);
}

progress[value]::-webkit-progress-bar {
    border-radius: 10em;
    background: var(--background);
}

progress[value]::-webkit-progress-value {
    border-radius: 10em;
    background: var(--color);
}

progress[value]::-moz-progress-bar {
    border-radius: 10em;
    background: var(--color);
}

/* Spezifische Farben */

#livepoints[value] {
    --color: darkred !important;
}

#monsters progress[value] {
    --color: darkred !important;
}

#manapoints {
    background-color: blue;
    color: white; /* Textfarbe für Lesbarkeit */
}

#spells {
    display: flex;
    padding: 20px;
    height: 40vh;
    align-items: center;
    margin-bottom:10px;
    border: 2px solid #fff;



}

#spells * {
    margin-right: 30px;
}

#title-popup {

}

button {
    padding: 5px;
}

#monsters {
    width: 40%;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    flex-wrap: wrap;
    align-content: center;
}

form {
    margin-bottom: 20px;
}

.monsterimg {
    width: 100px;
}

#worldprogress {
    width: 100%;
}

#fightgui {
    display: none;
    padding: 20px;
    flex-direction: column;

}

.spellcard {
    border: 1px solid #fff;
    padding: 20px;
    display: inline-block;
    height: 200px;
    background-color: transparent; /* Standard-Hintergrundfarbe */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}



input[type="radio"]:checked ~ .spellcard {
    background-color: white; /* Hintergrundfarbe auf Weiß setzen */
}


.spellcard:hover {
    background-color: white;
    animation-name: zoom-in;
    animation-duration: 1s;
}

.spellcard:not(:hover) {
    animation-name: zoom-out;
    animation-duration: 0.5s;
}
.spellcard.checked {
    background-color: white;  /* Hintergrundfarbe, wenn Checkbox gecheckt ist */
}

input[type="radio"] {
    display: none; /* Versteckt die Radio-Buttons */
}



@keyframes zoom-in {
    from { transform: scale(100%);}
    to { transform: scale(110%);}
}



#preparedspells {
    width:80%;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Schwarzes Overlay mit Transparenz */
    display: none; /* Unsichtbar, wenn das Popup geschlossen ist */
    z-index: 10; /* Hintergrund über allen anderen Elementen */
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-start {
    width:100%;
}

#startscreen {
    display:flex;
}

#startscreen * {
    width:50%;
    padding:20px;
}

#highscores {
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#highscoreTable td {
    text-align: center;
}


#leftside {
    display:flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width:60%;
    height:100vh;
}

#rightside {
    display:flex;
    align-items: center;
    flex-direction: column;
    width:40%;
    justify-content: center;
}

#rightside button {
    margin-bottom:10px;
}
#titlescreen {
    font-size:50px;
    color: white;
}

#settings {
    display:none;
    position: fixed;

}

.popup {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background-image:url("img/pergament-texture.jpg");
    border: 5px solid #fff;
    border-radius:10px;
    padding: 20px;
    text-align: center;
}

#supportspellpopup {
    display:none;
}


#monstersandspells {
    display:flex;
    flex-direction: row;
}


input[type="radio"] {
    display: none;
}

#bars {
    display:flex;
    flex-direction: column;
}

.stat {
    display:flex;
    flex-direction: row;
}

ion-icon {
    color: white;
    font-size:20px;
}