@import url('main_menu.css');
@import url('character_creator.css');
@import url('game.css');
@import url('game_over.css');
@import url('settings.css');
@import url('effects.css');
@import url('choices.css');
@import url('inventory.css');
@import url('keypad.css');
@import url('display_overlay.css');
@import url('stats.css');
@import url('combat.css');

@font-face {
    font-family: 'Orloj';
    src: url('../res/font/Orloj-Ea9eW.otf');
}

@font-face {
    font-family: 'Elnath';
    src: url('../res/font/ELNATH.otf') format("opentype");
}

@font-face {
    font-family: 'Dina';
    src: url('../res/font/DinaRemasterII.ttc') format('truetype');
}

body {
    display: block;

    margin: 0 auto;

    max-width: 900px;

    background-image: url(../res/bg/space-bg.png);
    background-color: black;
    background-position: 50% 0;
    background-repeat: no-repeat;

    color: white;
}

/* MAIN */

main {
    position: relative;
    display: flex;
    top: 0;
    height: 90vh; /* 100%; */
    max-height: 1280px; /* 600px; */
    min-height: 320px;
    background-color: rgb(255, 150, 100);
    border-radius: 40px;
}

.middle-frame {
    z-index: 1;
    height: 100%;
    width: 100%;
    border-radius: 20px;

}

.frame-2 {
    position: relative;
    z-index: 0;
    background-color: white;
    width: 500px;
    margin: 0 auto;
}

.side-frame {
    width: 30px;
}

.top-frame {
    display: flex;
    max-height: 10px;
    height: 100%;
    width: 100%;
}

.top-frame-box {
    width: 85%;
    background-color: black;
}

.top-frame-spacer {
    background-color: none;
    width: 60px;
}

/* .test {
    position: absolute;
    z-index: -1;
    height: 100%;
    width: 480px;
    background-color: black;
    left: 15%;
} */

.content-frame {
    position: relative;
    max-height: 1280px; /* 580px; */
    height: 100vh; /* 100%; */
    width: 100%;
    background-color: black;
    border-radius: 40px;
}

.side-button {
    height: 60px;
    width: 100%;
    background-color: rgb(200, 100, 100);
    transition: all 0.1s;
    /* border-top: solid black 5px;
    border-bottom: solid black 5px; */
}

.side-button:hover {
    filter: brightness(150%);
}

.side-button-color-1 {
    background-color: rgb(200, 100, 100);
}
.side-button-color-2 {
    background-color: rgb(255, 200, 150);
}
.side-button-color-3 {
    background-color: rgb(255, 150, 0);
}
.side-button-color-4 {
    background-color: rgb(150, 150, 255);
}

.side-button-spacer {
    width: 100%;
    height: 5px;
    background-color: black;
}

/* .middle-button {
    border-top: none;
    border-bottom: none;
} */

.frame-button2 {
    position: inline-block;

    background-color: green;
    width: 100%;
    height: 40px;
    border: solid black 10px;
    border-left: none;
    border-right: none;
}
.frame-button3 {
    position: absolute;

    background-color: green;
    width: 100%;
    height: 40px;
    top: 320px;
    border: solid black 10px;
    border-left: none;
    border-right: none;
}

.frame-button1 {
    position: absolute;

    background-color: green;
    width: 100%;
    height: 40px;
    border: solid black 10px;
    border-left: none;
    border-right: none;
}

.button {
    cursor: pointer;
    transition: all 0.1s;
}

.button:active {
    filter: brightness(50%);
}

.flex {
    display: flex;
}

.flex-columns {
    flex-direction: column;
}

.flex-rows {
    flex-direction: row;
}

.flex-horizontal-center {
    align-items: center;
}

.flex-horizontal-left {
    align-items: start;
}

.flex-vertical-center {
    justify-content: center;
}

.flex-spaced {
    justify-content: space-evenly;
}

.flex-space-between {
    justify-content: space-between;
}

.text-align-right {
    text-align: right;
}

.text-align-center {
    text-align: center;
}

/* CONTENT */

.content-wrapper {
    position: absolute;
    max-height: 100vh; /* 600px; */
    /* max-width: 650px; */
    height: 100%;
    width: 100%;
}

.content-wrapper-inner {
    position: relative;
    max-height: 600px;
    max-width: 650px;
    min-height: 200px;
    height: fit-content;
    width: fit-content;
}

#content-output {
    flex: 0.7;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 20px;
    scroll-behavior: smooth;
}

.navigation-button {
    font-family: Elnath;
    border: none;
    background-color: white;
}

.navigation-button:hover {
    background-color: lightgray;
}

#main-menu, #character-creator, #game, #game-over {
    font-family: Elnath;
    position: absolute;
/* To adjust padding or margin - you also need to reduce height and width accordingly */
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    padding: 20px;
}

/* FOR DEBUG */

.debug-border {
    box-sizing: border-box;
    border: solid #000000;
}

.debug-border-sidebar {
    box-sizing: border-box;
    border: solid #000000;
    border-left: none;
}

.debug-background {
    background-color: purple;
}

.show {
    display: flex;
    animation: screen-fade-in 0.1s;
}

@keyframes screen-fade-in {
    0% {
        transform: translateX(-12px) scale(0.99);
        filter: blur(10px);
        opacity: 0;
    }
    
    100% {
        transform: translateX(0) scale(1);
        filter: blur(0);
        opacity: 1;
    }
}


.hide {
    display: none;
}

/* MAIN END */

/* SIDEBAR */

aside {
    height: 30vh;
    max-height: 180px;
    min-height: 150px;
}

.sidebar-header {
    font-size: 24px;
    margin: 10px;
}

.sidebar-content {
    margin: 0;
}

/* SIDEBAR END */

/* TOOLBAR */

.toolbar {
    text-align: end;
}

.toolbar-icon, .toolbar-icon.show {
    display: inline-block;
}

.toolbar-icon.hide {
    display: none;
}

/* TOOLBAR END */


/* LINKS */

a {
    color: white;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: white;
    text-underline-offset: 5px;
}

/* LINKS END */