@import url('https://fonts.cdnfonts.com/css/cascadia-code');

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #ffd300ff;
    font-family: 'Cascadia Code', sans-serif;

    display: flex;
    /* flex-direction: column; */

    justify-content: center;
    align-items: center;
    padding: 0;
    flex-direction: column;
}

.container {

    width: 100%;
    max-width: 800px;
    min-width: 300px;
    margin: 0 20px;
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;

}

.container * {
    width: 100%;
}

.outline {
    box-shadow: 0px 2px 5px;
}

.title-box {
    height: 6rem;
    font-size: 28px;
    margin-left: 16px;
    margin-bottom: 2px;

    display: flex;
    justify-content: end;
    flex-direction: column;
}

.title-box>p {
    margin: 0px;
}

.bar {
    height: 4rem;
    background-color: #5087b0ff;

    box-shadow: 0 3px 0 black inset, 3px 0 0 black inset, -3px 0 0 black inset, 0 1px 0 #5087b0ff;
    display: flex;
}

.bar-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 1rem;
    gap: 1.2rem;
}

.bar-links>a {
    width: auto;
    margin: 0;
    font-size: 22px;
    color: rgb(255, 255, 250);
    text-decoration: underline;
}

.bar-links>a::before {
    content: "> ";
}

.below-bar {
    /* TODO: Automatic width. */
    display: flex;
    flex-direction: row;
    height: 100%;

}

.bar-corner {
    width: 16px;
    height: 20px;
    background-color: #365780ff;
    position: relative;
}

.corner-l {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    position: relative;
}

.corner-r {
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-l::before,
.card-corner::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 20px;
    background-color: black;
    clip-path: polygon(0 0, 3px 0, 100% calc(100% - 3px), 100% 100%, 0 100%);
}

.corner-r::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 20px;
    background-color: black;
    clip-path: polygon(100% 0, calc(100% - 4px) 0, 0 calc(100% - 3px), 0 100%, 100% 100%);
}

.container-container {
    height: 100%;
    width: 100%;
    background-color: white;
    border: 3px black solid;
    /* box-shadow: 0 3px 0 black inset, 3px 0 0 black inset, -3px 0 0 black inset; */

    display: flex;
    flex-direction: column;
    gap: 6rem;

}

.card {
    /* height: 12rem; */
    height: auto;
    width: auto;

    transform: translate(-16px, 0);
    background-color: white;
    outline: black solid 3px;

}

.card-corner {
    background-color: lightgray;
    width: 16px;
    height: 20px;
    position: absolute;
    bottom: 0px;
    transform: translate(-3px, 23px);
    clip-path: polygon(0 -1px, 100% -1px, 100% 100%);
}

.card-content {
    width: auto;
    height: auto;
    margin: 1rem;
    display: flex;
    flex-direction: row;
    position: relative;
}

.card-text {
    font-size: 20px;
    text-overflow: ellipsis;
}

.card-text>.title {
    color: black;
}

.card-text>.title:hover {
    color: lightskyblue;
}

.card-text>p {
    margin: 0;
    color: gray;
}

.card-image {
    width: 12rem;
    aspect-ratio: 1;
    background-color: black;
    display: flex;
}

footer {
    height: 4rem;
    display: flex;
    align-items: end;
    color: #cf9700ff;
}