@import url('https://fonts.googleapis.com/css2?family=Princess+Sofia&display=swap');.card{
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid #000000;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
    background-color: rgb(232, 180, 116);
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    transition: transform .3s;
}
.card:hover{
  transform: scale(1.2);
  z-index: 2;
}

.card-image{
  width: 85%;
  object-fit: cover;
}

.card-name{
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.card-description{
  font-size: 1.25rem;
  margin: 0;
}
*{
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 1px;
  /* margin:50px; */
  }
  
::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 15%;
  }

html{
  width:100%;
  height:100vh;
}

root {
  width:100%;
  height:100%;
}

body{
  width:100%;
  height:100%;
}

#main{
  
}

.main {
  display: flex;
  flex-direction: row;
  background-color: rgb(193,154,107,.75);
  width:100%;
  height:100%;
}

.characterCard{
  width:33em;
  height:100%
}

.charImage {
  width: 33em;
  height: 33em;
  margin-bottom: -10px;
}

.cardText{
  font-size: 1.5em;
  overflow-y: auto;
  max-height: 35%;
  background-color: rgb(186,148,105, .33);
  margin-top: auto;
}

.charName{
  font-weight: bold;
}

.charText{
  font-weight:bold
}

.charTextArea{
  width: 100%;
  height: 15em;
  background-color: #f8f8f8;
  font-size: 1.0em;
  resize: none;
}

.characterInfo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 50%;
  margin-right: 5%;
  margin-left: 5%;
}

.stats {
  display:flex;
  justify-content: space-around;
  width: 100%;
}

#stat{
  display:flex;
  flex-direction: row;
}

.statButtons{
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* margin:0 5% 0 5%; */

}

.statButton{
  border-radius: 5px;
  width:1.1em;
  height:1.5em;
}

.backImage{
  width: 5%;
  position: absolute;
  left: 0;
  top: 0;
}

.features {
  width:100%;
  height:60%;
  text-align: center;
  overflow-y: auto;
}

input{
  background-color: #242424;
  color: white;
  border: none;
  border-radius: 5px;
}

.dark {
  background-color: #242424;
  color: white;
  border: none;
  border-radius: 5px;
}

button{
  background-color: #242424;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
}

#background {
  position: absolute;
  top: 0px;
  backdrop-filter: blur(10px);
  margin: 0;
  padding: 0;
  left: 0;
  z-index: -1;
  height:100vh;
  width:100vw;
}#char-selector-modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(193, 154, 107, .5);
    flex-wrap: wrap;
}

.centered {
    position: absolute;
    text-align: center;
    top: 4em;
    left: 50%;
    padding: 20px;
    transform: translate(-50%, 0);
    z-index: 1;
}

.characters{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;

    padding-top:5em;
    padding-left:5em;

    height: 85%;
    width: 85%;

    background-image: url("/assets/parchment_texture.jpg");
}

.characterSelectorCard{
    width: 95%;
    height: 95%;
    display:flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    background-color: rgb(232,180,116, .3);
    font-size:1.75em;
    padding: 5px;
    margin:0 0 auto;
}

.selectDeleteDiv{
    margin-top:.5em;
}

@media (max-width:1200px){

    #char-selector-modal {
        flex-wrap: nowrap;
        overflow:auto;
    }

    .spell-choice-modal-content{
        margin-top:1%;
        height:100%;
        width:65%;
    }
    
}.levelInfo {
    display:flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.hpInput {
    height:2em;
    width:3em;
    border-radius: 5px;
    vertical-align: middle
}


.hpInfo{
    display:flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.spellPointsInfo{
    display:flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.topInfo{
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    width:100%;
    margin-bottom:3em
}

.topRight{
    position:fixed;
    width:5%;
    height:7.5em;
    right:1em;
    display:flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.gameplayButtons{
    display:flex;
}

.spellBookIcon{
    width:5em;
}

.restIcon{
    width:5em;
}

.deathIcon{
    width:5em;
}

.icon{
    width:5vw;
    cursor: pointer;
}

.saveButton{
    margin-top: 2vh;
    width:5vw;
    font-size: 1.5vw;
}

.levelButton {
    width: 100%;
    height: 2em;
    margin-top: 10px;
    font-size: 1.5vw
  }

.addStatButton{
    margin-left:5%;
}

.feature-row {
    position: relative;
    display: inline-block;
    width: 100%;
}

.feature-row .feature-popup {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    z-index: 10;
    width: max-content;
    max-width: 28em;
    padding: 0.75em 1em;
    margin-top: 0.25em;
    font-size: 0.9em;
    text-align: left;
    color: #1a1a1a;
    background-color: rgba(193, 154, 107, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: opacity 0.1s ease-in;
}

.feature-row:hover .feature-popup {
    visibility: visible;
    opacity: 1;
}
#choice-modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(193, 154, 107, .5);
    display: flex;
    /* justify-content: space-between; */
}

.choice-modal-content {
    /* background-color: rgb(193,154,107); */
    background-image: url("/assets/parchment_texture.jpg");
    margin: auto;
    padding: 20px;
    width: 25%;
    height:60%;
    display:flex;
    flex-direction: column;
    /* justify-content: space-around; */
    font-size:2em;
}

.choice-btn, .choice-tier{
    margin-top: auto;
}

@media (max-width:1200px){

    #choice-modal {
        overflow:auto;
        flex-direction: column;
    }

    .choice-modal-content{
        margin-top:1%;
        height:100%;
        width:65%;
    }
    
}
#spell-choice-modal {
    display: flex;
    justify-content: space-between;
    position: fixed;
    flex-direction: column;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    /* overflow: auto; */
    background-color: rgba(193, 154, 107, .5);
    flex-wrap: wrap;
}

.spell-choice-modal-content {
    background-image: url("/assets/parchment_texture.jpg");
    margin: auto;
    width: 30%;
    height: 48%;
    display:flex;
    flex-direction: column;
    font-size:1.75em;
    padding: 5px;
}

.spell-choice-desc{
    height:70%;
}

.spell-choice-btn{
    height: 50px;
    width: 100%;
}

.spell-choice-tier{
    margin-top:auto;
}

@media (max-width:1200px){

    #spell-choice-modal {
        flex-wrap: nowrap;
        overflow:auto;
    }

    .spell-choice-modal-content{
        margin-top:1%;
        height:100%;
        width:65%;
    }
    
}.spell-book-modal{
    position: fixed;
    z-index: 1;
    left: 10%;
    top: 0%;
    width: 85vw;
    height: 100vh;
    overflow: auto;
    background-image: url("/assets/parchment_texture.jpg");
    display: flex;
    justify-content: center; 
    text-align: center;
    flex-direction: column;
}

.spell-book{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    font-size: 2em;
    /* flex-wrap: wrap; */
    flex-flow: column nowrap
}

.close-modal {
    position:absolute;
    top: 1%;
    right: 2%;
    font-size:2em;
}

.spell{
    /* background-color: rgb(250, 220, 183); */
    width:90%;
    margin: 0 auto;
    font-size: 0.9em;
}
.inventory-modal {
    position: fixed;
    z-index: 1;
    left: 10%;
    top: 0%;
    width: 85vw;
    height: 100vh;
    overflow: auto;
    background-image: url("/assets/parchment_texture.jpg");
    display: flex;
    text-align: center;
    flex-direction: column;
}

.inventory {
    display: grid; /* Use grid for better column control */
    grid-template-columns: repeat(3, minmax(20%, 1fr));
    grid-template-rows: auto repeat(3, auto);    
    gap: 200px; /* Adds spacing between items */
    width: 100%;
    height: calc(100vh - 5em); /* Subtract the modal header and footer */
    overflow-y: scroll;
    font-size: 1.5em;
    padding: 2em; /* Increase padding for better readability */
}

.close-modal {
    position: absolute;
    top: 1%;
    right: 2%;
    font-size: 2em;
}

.item {
    background-color: rgb(250, 220, 183, 0.33);
    height: auto; 
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    /* overflow-y: scroll; */
    border: 1px solid black;
    min-width: 100%; 
  }

#classes {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 25px;
  margin-top:5em;
  box-sizing: border-box;
}

#header {
  font-size: 3em;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

#background {
  position: absolute;
  width: 100%;
  height:100%;
  backdrop-filter: blur(10px);
  margin: 0;
  padding: 0;
  left: 0;
  z-index: -1;
}

.text {
  background: -webkit-linear-gradient(0deg, #000000 5%, #494949 65%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; 
}

*{
  box-sizing: border-box;
}

body{
  margin:0;
  height:100vh;
}

:root {
  /* font-family: 'Princess Sofia', cursive; */
  color: rgb(34, 34, 34);
  background-color: rgb(232, 180, 116);
  background-image: url("https://static.vecteezy.com/system/resources/previews/015/369/796/large_2x/mountain-landscape-with-castle-and-dragon-free-vector.jpg"); 
  /* background-image: url("public/assets/background.png");  */
  background-repeat: no-repeat;
  background-position: top;
}

#root{
  height:100vh;
  width:100vw;
}

.text {
  background: -webkit-linear-gradient(0deg,#9b9b9b 5%, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}