html {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
}

body,
header,
main,
aside {
    display: flex;
    flex-direction: column;
}

header {
    align-items: center;
}

main {
    flex: 6;
    padding: 1em;
    justify-content: start;
    align-items: center;
    overflow-y: scroll;
    overflow-x: hidden;
}

aside {
    flex: 2;
    align-items: center;
}

footer {
    display: flex;
    justify-content: center;
    font-size: 12px;
    font-style: italic;
    padding: 6px;
    color: #666;
}

h1 {
    font-size: 150%;
    margin: 12px;
}

h2 {
    font-size: 130%;
    margin: 8px;
}

a,
a:hover,
a:visited {
    color: #7c059c;
    text-decoration: none;
}

.slug {
    margin: 10px 20px;
    text-align: center;
    line-height: 1.4;
    color: #666;
}

#all-items {
    display: flex;
    flex-direction: column;
    width: 80%vw;
    margin: 30px;
}

.item {
    font-size: 20px;
    color: #666;
    font-style: italic;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e4e4;
}


.item:hover {
    background-color: #f5f5f5;
}


.item>.value {
    width: 500px;
    margin-right: 10px;
}

@media only screen and (max-width: 768px) {
    .item {
        font-size: 16px;
    }
    .item > .value {
        
        overflow: hidden;
        width: 290px;
    }

    input[type='text'] {
        min-width: 100px;
    }
}
@media only screen and (min-width: 768px) and (max-width: 900px) {
    .item {
        font-size: 18px;
        word-wrap: break-word;
    }

    .item>.value {
        width: 450px;
    }
    h2 {
        font-size: 18px;
    }
    .slug {
        display: none;
    }
    input[type='text'] {
        min-width: 300px;
    }
}

@media only screen and (min-width:900px){
    input[type='text'] {
        min-width: 300px;
    }
}

footer>* {
    margin: 0 3px;
}

/* Forms */
button {
    background-color: #7c059c;
    margin: 10px 0;
    padding: 12px 30px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    min-width: 130px;
}

input[type='text'] {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #666;
}

/* Misc */
.delete-item {
    cursor: pointer;
}

.item.htmx-swapping div {
    opacity: 0;
    transition: opacity 1s ease-out;
}
