* {
    margin: 0;
    padding: 0;
    font-family: Verdana, sans-serif;
}

@font-face {
	font-family: 'Magic';
	src: url('../font/magic.ttf');
}

#login_screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.jpg');
    background-size: 100% 100%;
}
#login_modal {
    width: 40vw;
    border: 3px double black;
    border-radius: 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    padding-bottom: 2.5vh;
}
#login_modal_header {
    font-family: 'Magic';
    flex-grow: 0;
    flex-shrink: 0;
    height: 10vh;
    font-size: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to top, #820a0e, #b50e12);
    color: white;
    width: 100%;
    margin-bottom: 2.5vh;
    border-bottom: 1px solid black;
}
#login_modal_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 1;
}
#login_form {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: auto auto;
}
#login_form * {
    padding: 5px;
    margin: 5px;
}
#username_label {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
}
#username {
    grid-column: 2 / 2;
    grid-row: 1 / 1;
}
#password_label {
    grid-column: 1 / 1;
    grid-row: 2 / 2;
}
#password {
    grid-column: 2 / 2;
    grid-row: 2 / 2;
}
#login_button {
    width: 50%;
}

#main_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
#header {
    height: 80px;
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
    border-bottom: 1px solid black;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-image: linear-gradient(to top, #820a0e, #b50e12);
}
#header div {
    width: 100px;
    height: 60px;
    border: 1px solid black;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    margin-left: 20px;
    background-image: linear-gradient(to top, #afafaf, white);
}
#header div:hover {
    background-image: linear-gradient(to top, white, #afafaf);
}
#editor_content {
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    background-color: #fafafa;
}
#editor_form {
    flex-grow: 1;
    flex-shrink: 1;
    width: 50%;
    padding: 15px;
}
#bg_images img {
    height: 10vh;
    cursor: pointer;
    border: 1px solid black;
    margin-right: 5px;
}
#editor_form table {
    width: 100%;
}
#editor_form table input {
    width: 100%;
    height: 3vh;
    font-size: 2vh;
}
#editor_form table textarea {
    width: 100%;
    font-size: 2vh;
    height: 10vh;
}

#editor_preview{
    flex-grow: 1;
    flex-shrink: 1;
    height: 100%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#card_preview {
    height: 90%;
    border: 1px solid black;
}


#crop_canvas {
    width: 440px;
    height: 300px;
    display: none;
}


#loading_screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#loading_modal {
    width: 40vw;
    height: 40vh;
    border: 1px solid black;
    border-radius: 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#select_card_screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.5);
    position: absolute;
    top: 0;
    left: 0;
}
#select_card_modal {
    width: 40vw;
    height: 40vh;
    border: 1px solid black;
    border-radius: 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 2vh;
}
#card_search_results {
    flex-grow: 1;
    flex-shrink: 1;
    border: 1px solid black;
    overflow-y: scroll;
    width: 100%;
}
#card_search_head {
    flex-grow: 0;
    flex-shrink: 0;
}

#save_card.active {
    color: white;
}