body {
    margin: 0;
    font-family: Helvetica, sans-serif;
    font-weight: bold;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer {
    /* position: fixed; */
    /* bottom: 0; */
    width: calc(100% - 10px);
    padding: 5px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    flex-grow: 0;
    flex-shrink: 0;
}
.footer p {
    margin: 0;
}

input {
    font-size: 1.3rem;
    padding: 5px;
    border-radius: 11px;
    border: 3px solid black;
}
.logo {
    width: 10rem;
}

#password-page, #main-page {
    flex-grow: 1;
}








#password-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#password-page label {
    display: flex;
    flex-direction: column;
}

input.password {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    max-width: 80vw;
}
.password-error {
    animation: horizontal-shaking 0.3s;
    border-color: red;
}







#main-page {
    display: none;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: row;
    flex: 1;
    margin-left: 1rem;
}

.container > div {
    width: 50%;
}

#main-page .logo {
    margin-top: 2rem;
    margin-left: 2rem;
}

.right {
    display: flex;
    flex-direction: column;
}

.page {
    display: none;

    border-radius: 11px;
    border: 3px solid black;
    margin: 1rem;
    margin-bottom: 3rem;
    padding: 1rem;

    flex: 1;

    overflow-y: auto;
}
.page.active {
    display: block;
}

#main-page hr {
    width: 70%;
    border: 10px solid black;
    margin: 0;
}

.page-link {
    margin: 0;
    padding: 0.5rem;
    cursor: pointer;
}
.page-link div {
    display: flex;
    justify-content: flex-end;
    padding: 2px;
}
.page-link:hover div {
    background-color: red;
    color: white;
}
.page-link[data-id]:hover div {
    outline: 1px solid black;
    background-color: white;
    color: black;
}
.page-link.multi:hover div {
    outline: 1px dotted black;
}

.page-link.selected div {
    outline: 1px solid black;
    color: white;
    background-color: black;
    justify-content: space-between;
    align-items: center;
}
.page-link.selected div:before {
    content: "OPEN";
}


@media (max-width:641px)  {
    .container {
        flex-direction: column-reverse;
        justify-content: flex-end;
    }

    .container > div {
        width: 100%;
    }
}








@keyframes horizontal-shaking {
    0% { transform: translateX(0) }
    25% { transform: translateX(5px) }
    50% { transform: translateX(-5px) }
    75% { transform: translateX(5px) }
    100% { transform: translateX(0) }
}
