* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #706fd3;
    --secondary-color: #8A0784;
}

body {
    background-color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
}

button {
    background-color: #999;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 100;
    padding: 10px 15px;
    letter-spacing: 1px;
}

button:active {
    opacity: 0.8;
}

button:focus {
    outline: 0;
}

button.primary {
    background-color: var(--primary-color);
    color: #fff;
}

button.secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

button.block {
    display: block;
    width: 100%;
}

button.icon {
    padding: 0 5px;
    background-color: transparent;
    color: var(--secondary-color);
    margin-left: 10px;
}

h1 {
    font-weight: 300;
}

h2 {
    border-bottom: 1px solid #222;
    font-size: 22px;
    font-weight: 400;
    padding-bottom: 3px;
    margin-bottom: 10px;
}

h3 {
    font-weight: 400;
}

ul {
    list-style-type: none;
}

.container {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    height: 100vh;
}

.sidebar {
    background-color: #fff;
    height: 100vh;
    padding: 10px;
    position: relative;
    min-width: 250px;
}

.sidebar button.fixed-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
}

ul.decks li {
    padding: 7px;
}

ul.decks li button {
    float: right;
}

.main {
    position: relative;
    margin-left: 30px;
}

.main h1 {
    margin-top: -50px;
}

.flashcard-container {
    position: absolute;
    top: 0;
    left: 0;
    perspective: 1000px;
    animation: flashIn 500ms ease-in;
}

@keyframes flashIn {
    0% {
        transform: translateX(-100%) scale(0);
    }
    100% {
        transform: translateX(0%) scale(1);
    }
}

.flashcard {
    background-color: transparent;
    position: relative;
	transition: 0.6s;
    transform-style: preserve-3d;
    height: 500px;
    width: 800px;
}

.flashcard .front, .flashcard .back {
    align-items: center;
    background-color: #fff;
    backface-visibility: hidden;
    display: flex;
    font-size: 32px;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.flashcard .front {
    z-index: 2;
    transform: rotateX(0deg);
}

.flashcard .back {
    transform: rotateX(180deg);
}

.flashcard.show-answer {
    transform: rotateX(180deg);
}

.flashcard button {
    color: var(--primary-color);
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.flashcard h4 {
    opacity: 0.5;
    font-size: 26px;
    font-weight: 400;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.flashcard-animation-enter {
    transform: translateX(-100%) scale(0);
}

.flashcard-animation-enter.flashcard-animation-enter-active {
    transform: translateX(0%) scale(1);
    transition: all 500ms ease-in;
}

.flashcard-animation-leave {
    transform: translateX(0%) scale(1);
}

.flashcard-animation-leave.flashcard-animation-leave-active {
    transform: translateX(100%) scale(0);
    transition: all 500ms ease-out;
}

.action-buttons {
    margin-top: 500px;
    width: 800px;
}

.action-buttons button {
    padding: 20px;
    width: 33.3333%;
}

.action-buttons button:nth-child(1) {
    background-color: #20bf6b;
}

.action-buttons button:nth-child(2) {
    background-color: #f7b731;
}

.action-buttons button:nth-child(3) {
    background-color: #eb3b5a;
}

.modal-container {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 999;
}

.modal-container.show-modal {
    display: flex;
}

.modal {
    background-color: #fff;
    border-radius: 5px;
    position: relative;
    max-width: 100%;
    width: 500px;
}

.modal h2 {
    padding: 10px 0;
    margin-bottom: 0;
    text-align: center;
}

.modal .close {
    position: absolute;
    font-size: 20px;
    top: 10px;
    right: 5px;
}

.modal-content {
    padding: 20px;
}

.form-control {
    align-items: center;
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

form button[type="submit"] {
    margin-top: 20px;
    margin-left: auto;
}

form .form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

form label {
    font-size: 16px;
}

form input, form textarea {
    border: 0;
    border-bottom: 1px solid #222;
    padding: 5px 15px;
}

form input:focus, form textarea:focus {
    outline: none;
}