:root {
    font-size: 62.5%;
}

body{
    padding: 0;
    margin: 0;
    height: 100vh;
    background: black;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

body * {
    font-family: 'Work Sans', sans-serif;
    color: white;
    box-sizing: border-box;
}

ul, li {
    padding: 0;
    margin: 0;
    list-style: none;
}

h1 {
    font-size: 42px;
    padding: 0;
    margin: 0;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
}

#nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.btn {
    font-size: 3rem;
    text-transform: uppercase;
    background: #0a0a0a;
    border: 3px solid #3a3a3a;
    border-radius: 10px;  
    padding: 0 5px;   
}

.btn:hover {
    color: black;
    background-color: #eee;
    border-color: #eee;
    cursor: pointer;
    opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.2s;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

#nav > .powered-by, #nav > .release-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
}

#nav > ul {
    display: flex;
    flex-direction: row;
    font-size: 1.5rem;
    margin-bottom: 2px;
}

#nav > ul > li {
    display: flex;
    font-weight: 700;
}

#nav > ul > li:after {
    content: '|';
    display: flex;
    margin: 0 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

#nav > ul > li:last-of-type:after {
    content: none;
}

#nav > ul > li > a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
}

#nav > ul > li > a:hover {
    color: white;
    text-decoration: underline;
}

#main-wrapper {
    width: 100%;
    height: 100vh;
    max-width: 1400px;
    background-image: url("../img/ui/background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: -100px -200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#game-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#game-wrapper * {
    font-family: 'VT323', monospace;
}

#game-canvas {
    background-color: #ccc;
    max-width: 1000px;
}

#status-bar {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 50px;
    height: 40px;
}

#status-bar ul.stats {
    margin-left: auto;
    display: flex;
    flex-direction: row;
}

#status-bar ul.stats > li {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 30px;
} 

#status-bar ul.stats > li:last-of-type {
    margin-right: 0;
} 

#status-bar ul.stats > li > .character {
    width: 40px;
    border: 3px solid #3a3a3a;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#status-bar ul.stats > li > .character > img {
    width: 24px;
}

#status-bar ul.stats > li > .point-count {
    font-size: 3.7rem;
    margin-left: 10px;
}

#status-bar .btn-menu {
    padding: 0 18px;
}

#status-bar .btn-reset {
    margin-left: 15px;
    font-size: 2.2rem;
    line-height: 1;
}

.popup-wrapper {
    position: absolute;
    width: 100%;
    left: 0;
    top: 150px;
}

.popup-container {
    max-width: 450px;
    max-height: 380px;
    margin: 0 auto;
    background-color: black;
    /* border: 4px solid #222; */
    /* border-radius: 1px; */
    box-shadow: 2px 3px 1px rgba(255, 255, 255, 0.3);
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup-header {
    display: flex;
    width: 100%;
    font-size: 3.6rem;
    text-transform: uppercase;
    justify-content: center;
}

.popup-content {
    display: flex;
    width: 100%;
}

.popup-footer {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.btn-ok, .btn-cancel {
    font-size: 2.8rem;
    width: 100px;
    padding: 4px 0;
    margin: 0 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ok {
    background: #005ec0;
    color: white;
}

.btn-cancel {
    color: black;
    background: white;
}


/* Introduction */

.introduction {
    font-size: 2rem;
}

/* Menu */

.tabs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
}

.tabs > ul.tab-nav {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin-left: 1px;
}

.tabs > ul.tab-nav > li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 36px;
    margin-right: 3px;
    /* border: 2px solid black; */
    border-bottom: none;
    background: #eee;
    color: black;
    font-size: 2.4rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

}

.tabs > ul.tab-nav > li.active {
    background: #005ec0;
    color: white; 
    position: relative;
    height: 40px; 
}

.tabs > ul.tab-nav > li.active:before {
    content: '';
    height: 3px;
    width: 100%;
    background: #005ec0;
    position: absolute;
    bottom: 0;
}

.tabs > ul.tab-content {
    display: flex;
    flex-direction: row;
    border: 2px solid #666;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    width: 100%;
    height: 200px;
    margin-top: -1px;
    margin-left: 1px;
} 

#time-elapsed {
    font-size: 4rem;
    text-align: center;
}

/* common */

.hide {
    display: none !important;
}