body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    background-color: #F9E076;
    color: black;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 6px solid black;
    padding: 20px;
}

h1 {
    margin: 0;
    font-size: 48px;
}

header p {
    margin: 0;
    font-size: 28px;
}

main {
    display: flex;
    min-height: calc(100vh - 100px);
}

#leftSide {
    width: 35%;
    padding: 20px;
    border-right: 6px dashed black;
}

#rightSide {
    width: 65%;
    padding: 20px;
}

button {
    font-family: inherit;
    font-size: 22px;
    cursor: pointer;
}

#addListButton,
#addBookButton {
    background-color: #F9E076;
    border: 4px solid black;
    padding: 10px 20px;
    margin-bottom: 20px;
}

#addBookButton {
    display: block;
}

#listForm {
    display: none;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}

#listForm input {
    width: 75%;
    margin-bottom: 0;
}

#bookForm {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

#bookForm input {
    width: 60%;
    margin-bottom: 0;
}

.bookFormButtons {
    display: flex;
    gap: 10px;
}

input {
    display: block;
    font-size: 22px;
    padding: 8px;
    margin-bottom: 10px;
    width: 90%;
    border: 2px solid black;
    background-color: white;
}

.instanceRow,
.bookRow {
    font-size: 26px;
    margin-bottom: 15px;
}

.instanceRow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instanceName,
#currentListTitle {
    font-size: 26px;
    font-weight: normal;
}

.instanceName {
    cursor: pointer;
}

.bookRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.authorLine {
    font-weight: normal;
}

.titleLine {
    font-style: italic;
    margin-left: 45px;
}

.iconButton {
    all: unset;
    display: inline-flex;
    width: 1cm;
    height: 1cm;
    min-width: 1cm;
    min-height: 1cm;
    max-width: 1cm;
    max-height: 1cm;
    cursor: pointer;
    vertical-align: middle;
}

.iconButton img {
    display: block;
    width: 1cm;
    height: 1cm;
    min-width: 1cm;
    min-height: 1cm;
    max-width: 1cm;
    max-height: 1cm;
    object-fit: contain;
}

@media (max-width: 700px) {
    header {
        display: block;
    }

    main {
        display: block;
    }

    #leftSide,
    #rightSide {
        width: auto;
        border-right: none;
        border-bottom: 6px dashed black;
    }

    #bookForm input,
    #listForm input {
        width: 90%;
    }
}