:root {
    --main-color: #893A99;
    --lightgreen: #6F993A;
    --darkgreen: #314D0E;
    --lightpurple: #D26EE5;
    --darkpurple: #43154D;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Indie Flower', cursive;
    background-color: var(--main-color);
    background-size: 100% 100%;
    color: black;
    font-size: 2.4rem;
}

header {
    background-color: var(--lightgreen);
    height: 5%;
    margin-bottom: 1%;
    border: 3px var(--darkpurple);
    border-style: none none ridge;
    box-shadow: 0px 10px 10px var(--darkpurple);
}

footer {
    background-color: var(--lightgreen);
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px;
    color: rgb(0, 0, 0);
    text-align: center;
    border: 3px var(--darkpurple);
    border-style: ridge none none;
    box-shadow: 0px 0px 10px var(--darkpurple);
}

h1 {
    text-align: left;
    padding: 1rem;
}

h2,
h3,
h4,
h5 {
    text-align: center;
    padding-top: 5px;
}

h3,
h2 {
    font-size: 5.4rem;
}

h4 {
    font-size: 10rem;
}

h5 {
    font-size: 1.4rem;
}

/* --- Global Selectors --- */
.flex-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.hover:hover {
    transform: scale(1.05);
}

.hover:active {
    transform: scale(.99);
}

.button {
    background-color: var(--darkgreen);
    position: relative;
    margin: 15% auto 1% auto;
    top: 0;
    width: fit-content;
    border: 3px solid var(--darkpurple);
    border-radius: 50%;
    box-shadow: 5px 5px 20px var(--darkpurple);
    cursor: pointer;
    pointer-events: auto;
}

.container {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Header Logo */
#logo {
    display: flex;
    margin-left: 5%;
}

#logo img {
    content: url("../images/crossedswords.png");
    width: 50px;
    border-radius: 50%;
}

/* --- Left/Right Sidebar Menu --- */
.menu {
    position: relative;
    width: 25%;
    margin: 23% 1%;
}

/* Left Menu */
.left {
    visibility: hidden;
    float: left;
}

#ready {
    margin: 0 auto 2% auto;
}

#character-select {
    background-color: var(--lightpurple);
    min-width: 90%;
    min-height: 30vh;
    margin: 0 5%;
    border: 10px solid var(--darkpurple);
    border-radius: 10px;
    box-shadow: 10px 10px 10px var(--darkpurple);
}

#character-select img {

    display: inline-block;
    width: 20%;
    padding: 2%;
    transform: scale(1);
    transition: .3s;
}

#character-select img:hover {
    transform: scale(1.2);
}

#character-select img:active {
    transform: scale(.7);
}

/* Right Menu */
.right {
    float: right;
}

.button-block {
    display: flex;
    justify-content: center;
    padding: 5% 0;
}

#outer-button {
    position: absolute;
    width: 25%;
    z-index: -1;
}

#inner-button {
    cursor: pointer;
    pointer-events: auto;
    width: 25%;
}

#mainmenu #outer-button {
    content: url(../images/greenbutton-outer.png);
}

#mainmenu #inner-button {
    content: url(../images/greenbutton-inner.png);
}

#highscores #outer-button {
    content: url(../images/yellowbutton-outer.png);
}

#highscores #inner-button {
    content: url(../images/yellowbutton-inner.png);
}

/* --- Main Game Window --- */
.arena-block {
    background-image: url("../images/battleback7.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 40%;
    padding-top: 22.5%;
}

/* Start Button */
#start {
    margin: 15% auto 0 auto;
}

/* Highscore Screen */
.highscores-frame {
    background-color: rgba(210, 110, 229, .8);
    display: none;
    position: absolute;
    width: 50%;
    margin-left: 25%;
    margin-right: 25%;
    border-radius: 10px;
    color: var(--darkgreen);
    font-size: 3.4rem;
    font-weight: 900;
}

/* Score List */
#scores ul {
    position: relative;
    margin: 0;
    padding: 5px 0;
    width: 100%;
    color: var(--darkpurple);
}

#scores ul:before,
#scores ul:after {
    text-align: center;
    display: block;
    border-bottom: 0;
    width: 50%;
}

#scores ul:before {
    content: 'Player';
    border-right: 0;
}

#scores ul:after {
    content: 'Score';
    position: absolute;
    top: 5px;
    left: 50%;
    margin-left: 1px;
}

#scores ul li {
    text-align: center;
    color: var(--darkgreen);
    width: 50%;
    float: left;
    font-size: 2.5rem;
}

/* Name Entry */
table {
    width: 100%;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    border-collapse: collapse;
    border: 3px var(--darkpurple);
    border-style: solid none none;
}

th,
td {
    width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

#enter-score {
    position: absolute;
    width: 100%;
    bottom: 0;
}

/* Combat Screen */
.arena-frame {
    display: none;
}

.timer-block {
    background-color: var(--lightpurple);
    border: 2px solid black;
    top: -10px;
    width: 60px;
    border-radius: 50%;
}

/* Rendering Canvas */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Question/Answer Window --- */
.question-block {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--lightpurple);
    padding: 1% 1%;
    width: 50%;
    min-height: 30vh;
    color: var(--darkgreen);
    font-weight: 700;
    border: 10px solid var(--darkpurple);
    border-radius: 10px;
    box-shadow: 10px 10px 10px var(--darkpurple);
}

#questions,
#answers,
#answers li {
    margin: 5px;
    font-size: 2.5rem;
    overflow-wrap: break-word;
}

#answers li {
    background-color: aqua;
    border-radius: 10px;
    padding: 5px 20px;
    width: 100%;
}

@media screen and (max-width: 600px) {

    h2,
    h4 {
        font-size: 6rem;
    }

    .left {
        display: inline;
        position:absolute;
        bottom: 0;
        left: 0;
        margin-bottom: 10%;
    }

    .right {
        position: absolute;
        right:0;
        top:0;
        width: 15%;
        margin: 15% 0;
    }

    #outer-button {
        width: 80%;
    }

    #inner-button {
        width: 80%;
    }

    #character-select {
        position: relative;
        width: 50vw;
        min-height: 15vh;
        left: 20%;
    }

    #character-select img {
        width: 30%;
    }

    #ready {
        margin: 0 0 10% 100%;
    }

    .arena-block {
        width: 100%;
        padding-top: 39.5%;
    }

    .question-block {
        max-width: 100%;
        width: 100%;
        font-size: 2.0rem;
    }

    #questions,
    #answers li {
        font-size: 2.0rem;
    }

    #scores {
        font-size: 2.0rem;
    }

    #scores ul li {
        font-size: 1.5rem;
    }

}