@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,700;1,400;1,500;1,700&family=Rubik&display=swap');
*:focus {
    outline: none;
}



html{
    height: 100%;
}
body{
    height: 100%;
    touch-action: pan-x pan-y;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-style: italic;
    position: relative;
    margin: 0;
    background-color: #1f232d;
    color:#fff;
    
}
#app{
    transition: all 0.3s;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}
.scale{
    transform: scale(0.95);
    opacity: 0.5;
}

hr{
    border: 0;
    /* height: 2px; */
    background-image: linear-gradient(90deg, rgba(74, 84, 100,0) 0%, rgb(74, 84, 100,1) 50%, rgba(74, 84, 100,0) 100%);
    position: relative;
    overflow: inherit;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: initial;
    width: 100%;
    padding-bottom: 2px;
}

hr::before{
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    background-color: rgba(74, 84, 100,1);
    position: absolute;
    z-index: 0;
    left: 50%;
    translate: -50%;
    top: -4px;
    transform: rotate(45deg);
}

#backUpArea{
    background: rgba(0,0,0,0.9);
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 9999999999;

    font-family:Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    text-align: center;
    padding-bottom: 10px;;
    display: none;
}
#bk_selector{
    width:90%;
    padding-top: 10px;
    padding-bottom: 10px;
}
.bk_date{
    padding-top: 10px;
}
/***************************************************************
NAV
***************************************************************/

#navHolder{
    
    position:-webkit-sticky; position:sticky; top:0;

    background-color: #1f232d;
    padding: 10px;
    z-index: 10;
}
.navOptions{
    width: 40px;
    background-image: url(../images/robe.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px;
    opacity: 0.7;
    position: relative;
    /* mix-blend-mode: overlay; */
}
.navOptions::before{
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 1px;
    top:0;
    left:-4px;
    background-image: linear-gradient(0deg, rgba(30, 93, 142, 0) 0%, rgba(68, 169, 246,0.5) 50%, rgba(30, 93, 142, 0) 100%);
}
.navOptions::after{
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 1px;
    top:0;
    left:-5px;
    background-image: linear-gradient(0deg, rgba(30, 93, 142, 0) 0%, rgba(0, 0, 0,0.3) 50%, rgba(30, 93, 142, 0) 100%);
}
.navSelector{
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 95%;
    background-color: transparent;
    padding: 10px;
    color: #fbdbbb;
    text-transform: uppercase;
    border: 0;
    font-style: italic;
    font-size: 13px;
}
#navHolder table{
    background-color: #1cc8c3;
    /* background-image: linear-gradient(0deg, #4c5268 0%, #3c3d50 100%); */
    background-image: linear-gradient(0deg, #4c5268 0%, #3c3d50 100%); 
    
    border: 1px solid #535a6e;
}




.box {
    display: flex;
    flex-flow: column;
    height: 100%;

    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    
    position: relative;
}
.box .row {
    /* border: 1px dotted grey; */
    padding: 3px;
    margin: 3px;
}

.box .row.header {
    flex: 0 1 auto;
}

.box .row.content {
    flex: 1 1 auto;
    overflow-y: auto;
    position: relative;
}

.box .row.footer {
    flex: 0 1 40px;
    
    /* box-shadow: 0px -5px 5px 4px rgba(0,0,0,0.4); */
    /* z-index: 99;; */
}



/***************************************************************
MODAL
***************************************************************/
dialog::backdrop{
    background-color: rgba(0,0,0,0.5);
    animation-name: animate-top;
    animation-duration: 0.4s;
}



@keyframes animate-top {
    from {
          bottom:-300px; 
          opacity:0
      } 
      to {
          top:0; 
          opacity:1
      }
}

.modal{
    width: 100%;
    height: 100vh;
    background-color: rgba(255,0,0,0);
    border: 0;
    z-index: 10;

    animation-name: animate-top;
    animation-duration: 0.3s;
}




.modalBox{
    width: 100%;
    background-color: #23303b; 
    background: linear-gradient(45deg, rgb(34 34 37) 0%, rgb(64 73 97) 100%);
    box-shadow: inset 0px 0px 0px 1px rgb(74 72 94);
    position: absolute;
    left: 50%;
    translate: -50%;
    bottom: 0;
    height: calc(100% - 20px);
    border-radius: 10px 10px 0 0;
}
.modalClose{
    width: 60px;
    height: 56px;
    box-sizing: content-box;
    padding-top: 15px;
    position: absolute;
    background: rgb(44, 43, 52);
    background: linear-gradient(0deg, rgb(44, 43, 52) 0%, rgb(60, 59, 73) 80%, rgb(44, 43, 52) 100%);
    
    text-align: center;
    text-transform: uppercase;
    left: 10px;
    font-style: normal;
    line-height: 46px;
    z-index: 99;
}

.modalClose> div {
	width: 20px;
	height: 20px;
    transform: rotate(45deg);
    position: absolute;
    left: 50%;
    margin-top: 18px;
    translate: -50%;
	background: linear-gradient(to bottom, transparent 40%, #fff 40%, #fff 60%, transparent 60%), linear-gradient(to right, transparent 40%, #fff 40%, #fff 60%, transparent 60%);
}
.modalClose:after {
    content: "";
    position: absolute;
    left: 0px;
    top: 70px;
    width: 0;
    height: 0;
    border: 30px solid transparent;
    border-top: 20px solid #2c2b34;
}

.modal .modal-header{
    text-align: center;
    padding: 20px;
    font-size: 30px;
    color: #d2c29e;
    font-weight: 700;

}






.horizontal-snap{
    scroll-snap-type: x mandatory;
    display: flex;
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    margin: 0;
    padding: 0px;
    /* height: 100%; */
}
.horizontal-part{
    /* padding: 10px; */
    min-width: 100%;
    height: auto;
    scroll-snap-align: start;
    /* text-align: center; */
    position: relative;
    overflow: auto;
}
.horizontal-snap::-webkit-scrollbar{
    display: none;
}





#charView{
    padding:10px;
}
#charView  td{
    margin:0;
    padding: 0;
    vertical-align: top;
}
.leftArmImage, .rightArmImage, .armorImage{
    width: 30%;
    position: relative;
    box-shadow: inset 0px 0px 3px 2px #1b181f;
}

.leftArmImage, .rightArmImage{
    background-image: url("../images/hand.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.leftArmImage:has(img)::before, .rightArmImage:has(img)::before,.armorImage:has(img)::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    /* box-shadow: inset 0px 0px 3px 2px #f9d567; */
    box-shadow: inset 0px 0px 3px 2px #ffbd5d, inset 0px 0px 3px 2px #fffc5f;
    z-index: 1;
}

.leftArmImage:has(:not(img)), .rightArmImage:has(:not(img)),.armorImage:has(:not(img)){
   height: 100px;;
}

.disadvantage::after{
    content: '!';
    width: 20px;
    height: 20px;
    position: absolute;
    bottom:-0px;
    right: 0px;
    text-align: center;
    background-image: linear-gradient(0deg, #d73519 0%, #f95b10 100%);
    border: 1px solid #fa9348;
    border-radius: 50%;
    font-weight: 700;
    font-style: normal;
    z-index: 2;
}

.leftArmInfo, .rightArmInfo, .armorInfo{
    text-align: center;
    font-size: 22px;
    font-style: normal;
    font-weight: normal;
    font-family: 'Times New Roman', Times, serif;
    line-height: 30px;
}
.armorInfo{
    font-size: 14px;
}
#charView img{
    width: 100%;
    margin:0;
    padding: 0;
    display:block; 
    position: relative;
}



.charViewTable .mainInfo{
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 28px;
    text-align: right;
    /* line-height: 19px; */
    padding: 2px;
    padding-right: 7px;
    padding-bottom: 4px;
    font-style: normal;
    font-family: 'Times New Roman', Times, serif;
    text-shadow: rgb(0, 0, 1) 2px 0px 0px, rgb(0, 0, 1) 1.75517px 0.958851px 0px, rgb(0, 0, 1) 1.0806px 1.68294px 0px, rgb(0, 0, 1) 0.141474px 1.99499px 0px, rgb(0, 0, 1) -0.832294px 1.81859px 0px, rgb(0, 0, 1) -1.60229px 1.19694px 0px, rgb(0, 0, 1) -1.97998px 0.28224px 0px, rgb(0, 0, 1) -1.87291px -0.701566px 0px, rgb(0, 0, 1) -1.30729px -1.5136px 0px, rgb(0, 0, 1) -0.421592px -1.95506px 0px, rgb(0, 0, 1) 0.567324px -1.91785px 0px, rgb(0, 0, 1) 1.41734px -1.41108px 0px, rgb(0, 0, 1) 1.92034px -0.558831px 0px;
    /* https://owumaro.github.io/text-stroke-generator/ */
    /* text-shadow: 2px 2px 0 #4074b5, 2px -2px 0 #4074b5, -2px 2px 0 #4074b5, -2px -2px 0 #4074b5, 2px 0px 0 #4074b5, 0px 2px 0 #4074b5, -2px 0px 0 #4074b5, 0px -2px 0 #4074b5; */
}
.charViewTable tr{
    height: 50px;
}
.charViewTable .additionalInfo{
    font-size: 15px;
    font-weight: normal;
    line-height: 10px;
    padding-bottom: 5px;
}
.twoHandedWeapon{
    opacity: 0.3;
}

.charTopTable{
    margin-bottom: 20px;
}
/*
.healthInfo{
    background-image: url("../images/heart.png");
    background-repeat: no-repeat;
    background-size: contain;
    padding-left: 30px;
    width: 30%;
}
.expInfo{
    background-image: url("../images/exp.png");
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    padding-right: 30px;
    width: 30%;
    text-align: right;
}
.initiativeInfo{
    text-align: center;
}
*/
.charTopTable  td{
    line-height: 15px;
    font-weight: normal;
    font-family: 'Times New Roman', Times, serif;
}
.healthInfo{
    width: 30%;
}
.expInfo{
    width: 30%;
    text-align: right;
}
.initiativeInfo{
    text-align: center;
    font-size: 15px;
    
}
.initiativeInfo span{
    display: block;
    font-size: 25px;
    padding-bottom: 10px;
}

.progressBar{
    width: 100%;
    height: 7px;
    background-color: #2b2023;
    border: 1px solid #6b615f;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}
.progress {
    width: 0%;
    height: 100%;
    border-radius: 10px;
    background-image: linear-gradient(0deg, #b14017 0%, #d0311c 100%);

    box-shadow:inset 0px 3px 1px -2px #f4a589;

    transition: width 0.3s;
}
.progress-exp{
    background-image: linear-gradient(0deg, #0e8480 0%, #14c9c2 100%);
    box-shadow:inset 0px 3px 1px -2px #9ef8f5;
}

.hidden{
    display: none !important;
}

.charAdditionalInfo{
    display: none;
}
.profBonusInfo, .perceptionInfo{
    text-align: center;
    font-size: 12px;
}
.profBonusInfo span, .perceptionInfo span{
    display: block;
    font-size: 26px;
}