/* ---
    Fonts
   --- */
@font-face {
    font-family: 'TitleText';
    src: url("assets/fonts/EncodeSansBold.ttf");
}

@font-face {
    font-family: 'MainText';
    src: url("assets/fonts/Abel.ttf");
}

@font-face {
    font-family: 'CardTitleText';
    src: url("assets/fonts/EncodeSansMedium.ttf");
}

/* ---
    Top level redefinitions.
   --- */
body {
    margin: 0px;
    padding: 0px;
    overflow: hidden;
}

a {
    color: white;
}

a:hover {
    color: white;
}

a:visited {
    color: white;
}

/* ---
    Variables
   --- */
:root {
    /* TODO */

}

/* ---
    Buttons
   --- */
.btn-live {
    background-color: rgb(81, 0, 128);
    color: rgb(202, 202, 202);
    border: 4px solid rgb(81, 0, 128);
}

@keyframes liveButtonHoverAnimation {
    0% { background-color: rgb(81, 0, 128); }
    100% { background-color: rgb(107, 40, 146); }
}

.btn-live:hover {
    background-color: rgb(107, 40, 146);
    animation-name: liveButtonHoverAnimation;
    animation-duration: 200ms;
}

.btn-dead {
    background-color: rgb(209, 209, 209);
    color: rgb(46, 46, 46);
}

.btn-large {
    font-size: 3vw;
    padding: 5%;
}

.btn-spaced {
    margin: 2%;
}

.btn-regular {
    font-size: 2vw;
    padding: 5%;
}

.yaldiButton {
    overflow: hidden;
    font-family: 'TitleText';
    box-sizing: border-box;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

/* ---
    Intro Screen
   --- */

.introPanelText {
    color: white;
    overflow: hidden;
    font-family: 'MainText';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-size: 2vw;
    padding: 5%;
}

.introMarqueeText {
    color: white;
    overflow: hidden;
    font-family: 'Bahnschrift', sans-serif;
    font-size: 1vw;
}

#introPanel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/yaldi-logo.png");
    background-repeat: no-repeat;
    background-position: 80% 44%;
    background-attachment: fixed;
    background-color: #3a6076;
    z-index: 200;
    animation-duration: 1.4s;
    animation-name: background-wobble;
    animation-iteration-count: infinite;
    animation-timing-function: linear;

    display: flex;
    flex-direction: column;
}

@keyframes background-wobble {
    0% {
        background-position: 80% 44%;
    }
    50% {
        background-position: 80% 46%;
    }
    100% {
        background-position: 80% 44%;
    }
}

/* ---
    Run history panel
   --- */
#runHistoryPane {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: rgb(183, 82, 82);
    top: 0%;
    left: 100%;
    z-index: 300;
    overflow-y: auto;
    border-left: 2px solid rgb(236, 236, 236);
}

.runEntry {
    font-size: 1vw;
    margin: 5%;
    font-family: "MainText";
    color: rgb(202, 202, 202);
}

.runEntry > h2  {
}

.runEntry > h3  {
}

.runEntry > p  {
    margin-left: 2%;
}

/* --------------------------------
            NOT SORTED
   -------------------------------- */

#mainPane {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.normalBackground {
    background-image: linear-gradient(180deg, black, 22%, white);
}

.debugBackground {
    background-color: grey;
}

/* flex classes */
div.flexV {
    display: flex;
    flex-direction: column;
}

div.flexH {
    display: flex;
    flex-direction: row;
}

.flex1 {
    flex: 1 0 0;
}

.flex2 {
    flex: 2 0 0;
}

.flex3 {
    flex: 3 0 0;
}

.flex4 {
    flex: 4 0 0;
}

.flex5 {
    flex: 5 0 0;
}

.flex6 {
    flex: 6 0 0;
}

.flex7 {
    flex: 7 0 0;
}

.flex8 {
    flex: 8 0 0;
}

.flex9 {
    flex: 9 0 0;
}

.flex10 {
    flex: 10 0 0;
}

.flex11 {
    flex: 11 0 0;
}

.flex12 {
    flex: 12 0 0;
}

.flex50 {
    flex: 50 0 0;
}

#playerModArea {
    background-color: rgb(88, 85, 85);
    border-radius: 0vw 0vw 0vw 2vw;
    border-right: 1px;
    border-bottom: 1px;
    border-top: 0px;
    border-left: 1px;
    border-style: solid;
    border-color: black;
    overflow-y: hidden;
}

#opponentModArea {
    background-color: rgb(88, 85, 85);
    border-radius: 0vw 0vw 2vw 0vw;
    border-right: 1px;
    border-bottom: 1px;
    border-top: 0px;
    border-left: 0px;
    border-style: solid;
    border-color: black;
    overflow-y: hidden;
}

.conditionIcon {
    flex: 1 0 0;
    width: 64px;
    height: 64px;
    overflow: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

.conditionIcon > img {
    max-width: 100%;
    max-height: 100%;
}

.superCenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.niceText {
    font-size: 1.5vw;
    color: white;
    font-family: 'Bahnschrift', sans-serif;
}

.skipButton {
    background-color: rgb(255, 94, 0);
    overflow: hidden;
    border-radius: 10px;
    font-family: 'Bahnschrift', sans-serif;
    box-sizing: border-box;
    box-shadow: 2px 2px 0px 2px rgb(255, 119, 40);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1%;
}

.barUIText {
    font-size: 1.5vw;
    color: white;
    font-family: 'Bahnschrift', sans-serif;
}

.barUITextSmaller {
    font-size: 1vw;
    color: white;
    font-family: 'Bahnschrift', sans-serif;
}

.playerTopBar {
    background-color: rgba(0, 128, 0, 0.845);
    border-radius: 1vw 0vw 0vw 0vw;
    border-right: 0px;
    border-bottom: 0px;
    border-top: 1px;
    border-left: 1px;
    border-style: solid;
    border-color: black;
}

.opponentTopBar {
    background-color: rgba(255, 0, 0, 0.845);
    border-radius: 0vw 1vw 0vw 0vw;
    border-right: 1px;
    border-bottom: 0px;
    border-top: 1px;
    border-left: 0px;
    border-style: solid;
    border-color: black;
}

.lineContainer {
    position: absolute;
}

.floatingButtonContainer {
    position: absolute;
    background-color: red;
    border-radius: 8px;
    color: white;
    font-size: 0.7vw;
    font-family: 'Bahnschrift', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    z-index: 20;
}

#debugPanel {
    position: relative;
    top: 98%;
    background-color: black;
    color: white;
    font-family: Consolas, monospace;
    overflow: hidden;
    width: 20%;
    font-size: x-small;
}

/*
#fightBar {
    width: 30px;
    background-color: white;
    height: 100%;
    position: relative;
    top: 0;
    z-index: 1;
    border-radius: 14px;
}

#fightBar.ready {
    animation-duration: 4.2s;
    animation-name: red-glow;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes red-glow {
    0% {
        background-color: rgba(255, 255, 255);
    }
    40% {
        background-color: rgba(230, 0, 0);
    }
    100% {
        background-color: rgba(255, 255, 255);
    }
}
*/

.gone {
    display: none;
}

.damageNumber {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    color: red;
    font-size: 20vw;
    background-color: none;
    z-index: 20;
    font-family: 'Bahnschrift', sans-serif;
    text-shadow: 4px 4px white;
    user-select: none;
}

.healingNumber {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    color: rgb(0, 255, 98);
    font-size: 20vw;
    background-color: none;
    z-index: 20;
    font-family: 'Bahnschrift', sans-serif;
    text-shadow: 4px 4px white;
    user-select: none;
}

#showDeckButton {
    background-color: green;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 0px 20px 0px;
    font-size: 2vw;
    color: white;
    font-family: 'Bahnschrift', sans-serif;
    user-select: none;
}


#deckPane {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    box-shadow: 4px 4px 8px black;
    background-color:rgb(136, 136, 136);
    z-index: 9;
    overflow-x: hidden;
}

.autoscroll {
    overflow-y: auto;
}

#newCardsView {
    position: absolute;
    overflow: hidden;
    width: 50%;
    height: 40%;
    top: 30%;
    left: 25%;
    background-color: rgb(132, 124, 115);
    border-radius: 30px;
    border: 1px solid black;
    user-select: none;
    box-sizing: border-box;
    box-shadow: 4px 4px 8px black;
    z-index: 9;
}

#newMedalView {
    position: absolute;
    overflow: hidden;
    width: 50%;
    height: 40%;
    top: 30%;
    left: 25%;
    background-color: purple;
    border-radius: 30px;
    border: 1px solid black;
    user-select: none;
    box-sizing: border-box;
    box-shadow: 4px 4px 8px black;
    z-index: 9;
}

#thisOrThatPane {
    position: absolute;
    width: 80%;
    height: 50%;
    top: 25%;
    left: 10%;
    z-index: 30;
}

.verticalFlexContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.horizontalFlexContainer {
    display: flex;
    flex-direction: row;
}


.button {
    background-color: green;
    color: white;
    overflow: hidden;
    border-radius: 10px;
    font-family: 'Bahnschrift', sans-serif;
    box-sizing: border-box;
    box-shadow: 2px 2px 0px 2px rgb(30, 175, 30);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-size: 4vw;
    padding: 5%;
}

.smaller {
    font-size: 2vw;
}

.popupText {
    position: absolute;
    font-size: 1vw;
    width: 15%;
    height: 5%;
    padding: 2%;
    background-color: black;
    color: white;
    font-family: 'Bahnschrift', sans-serif;
    border: 1px solid white;
    border-radius: 10px;
    user-select: none;
    box-shadow: 4px 4px 8px black;
    z-index: 10;
}

popup {
    position: absolute;
    background-color: black;
    max-width: 20%;
    font-family: 'Bahnschrift', sans-serif;
    border: 1px solid white;
    border-radius: 10px;
    user-select: none;
    box-shadow: 4px 4px 8px black;
    z-index: 10;
}

popup > div {
    position: relative;
    font-size: 0.8vw;
    color: white;
    font-family: 'Bahnschrift', sans-serif;
    margin: 0.5vw;
}

#tooltipPane {
    position: absolute;
    width: 25%;
    height: 100%;
    background-color: purple;
    top: 0%;
    left: 100%;
    z-index: 100;
    overflow-y: auto;
    border-left: 2px solid gold;
}

.tooltipTitle {
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 3%;
    padding-right: 5%;
    font-size: 1.5vw;
    font-weight: bold;
    color: gold;
    font-family: 'Bahnschrift', sans-serif;
}

.tooltipDesc {
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 6%;
    padding-right: 5%;
    font-size: 1.1vw;
    color: gold;
    font-family: 'Bahnschrift', sans-serif;
}


#tutorialIntroduction {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: purple;
    z-index: 201;
}

#tutorialIntroduction > p {
    margin: 3%;
    font-size: 2vw;
    color: gold;
    font-family: 'Bahnschrift', sans-serif;
}

#toastDisplay {
    position: absolute;
    width: 50%;
    height: 20%;
    top: 40%;
    left: -50%;
    background-color: rgb(136, 136, 136);
    color: white;
    border-radius: 30px;
    border: 1px solid black;
    opacity: 0;
    user-select: none;
    box-sizing: border-box;
    box-shadow: 4px 4px 8px black;
    z-index: 50;
}

.toastContainer {
    display: flex;
    flex-direction: row;
    font-family: 'Bahnschrift', sans-serif;
    height: 100%;
}

.toastMessage {
    flex: 10 0 0;
    font-size: 1.8vw;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;

    text-align: center;
}

.toastClose {
    flex: 1 0 0;
    font-size: 1.6vw;

    display: flex;
    align-items: center;
    justify-content: center;
}

#changelog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: purple;
    z-index: 201;
    overflow-y: auto;
}

#changelog > p {
    margin: 3%;
    font-size: 2vw;
    color: gold;
    font-family: 'Bahnschrift', sans-serif;
}

#changelog > ul {
    margin: 5%;
    font-size: 1.5vw;
    color: gold;
    font-family: 'Bahnschrift', sans-serif;
}

particle {
    left: 0;
    top: 0;
    position: fixed;
    opacity: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 50;
}

particle.gold {
    border: 1px solid gold;
    background-color: rgb(255, 230, 86);
}

particle.red {
    border: 1px solid red;
    background-color: rgb(243, 53, 20);
}

particle.blue {
    border: 1px solid rgb(0, 119, 255);
    background-color: rgb(20, 53, 243);
}

.iconNumbers {
    font-size: 1.4vw;
    font-family: 'Bahnschrift', sans-serif;
    padding-left: 0.2vw;
    color: white;
}

.bigMedal {
    flex: 1 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bigMedal > img {
    max-width: 100%;
    max-height: 80%;
}

debugblob {
    width: 1px;
    height: 1px;
    background-color: rgb(0, 255, 0);
    border: 1px solid red;
    display: block;
    position: absolute;
    z-index: 9000;
}

.tatamiMat {
    height: 100%;
    width: 100%;
    background-image: url("assets/tatami.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: drop-shadow(6px 8px 1px rgb(0, 0, 0));
}

img.gong {
    position: absolute;
    top: 0px;
    left: 50%;
    z-index: 2;
    width: 367px;
    height: 325px;
    filter: drop-shadow(4px 4px 4px rgb(0, 0, 0));
}

img.gong:hover {
    cursor: url("assets/gong-cursor.png"), auto;
}

#stateDebugUI {
    position: absolute;
    top: 90%;
    left: 0px;
    z-index: 10;
    width: 20%;
    height: 10%;
    font-size: 0.4vw;
    background-color: black;
    color: white;
    font-family: 'Consolas', monospace;
}

#combatLog {
    position: absolute;
    width: 20%;
    height: 40%;
    top: 58%;
    left: -18%;
    overflow-y: auto;
    overflow-x: hidden;
    border: 3px solid gold;
    background-color: black;
    z-index: 100;
    padding: 10px;
}

.combatLogMessage {
    color: white;
    font-family: 'Bahnschrift', sans-serif;
    margin: 10px;
}