body {
    margin: 0;
    padding: 20px;
    font-family: Consolas;
    background-color: #efefef;
}

.topSection {
    width: 100%;
    text-align: right;
    padding: 10px;
}

#login,
#register,
#logout { 
    text-decoration: none;
    color: black;
    padding: 10px;
    border: 1px solid black;
    background-color: #d6d6d6;
    border-radius: 8px;
}

#login:hover,
#register:hover,
#logout:hover { 
    color: white;
    background-color: #646464;
    border-radius: 8px;
}

h1 {
    margin-top: 20px;
    text-align: center;
}

.middleSection {
    display: flex;
    justify-content: center; 
    align-items: center;
}

button {
    border: none;
    cursor: pointer;
    background-color: white;
}

#letterRow {
    background-color: white;
    padding: 10px;
}

button:focus {
    font-weight: bold;
}

#search {
    margin-top: 20px;
    padding: 5px;
    margin-left: 20px;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 16px;
    width: 200px;
}

.contentContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; 
    background-color: white;
    border: 2px solid black; 
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 40px;
    height: 100%
}

.card {
    display: flex;
    border: 1px solid black;
    width: 400px;
    height: 200px;
    text-align: center;
    margin-left: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
}

.card .image {
    height: 80%;
    width: 50%;
    overflow: hidden;
    margin-left: 20px;
    margin-top: 20px;
}

.card .image > img {
    width: 100%;
    height: 100%;
}

.card .heading {
    text-decoration: underline;
    margin-left: 5px;
    text-wrap: nowrap;
}

.card .description {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    border: 1px solid black; 
    min-height: 0;
    min-width: 0;
    width: 150px;
    height: 110px;
    margin-left: 15px;
    overflow: auto;
}

.popup {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #efefef;
    border: 1px solid black;
    padding: 20px;
    z-index: 9999;
    width: 60%;
}

.popup-content {
    height: 100%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.confirm-btns {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.confirm-btns > button {
    margin-right: 5px;
}

.popup-title {
    font-size: 24px;
}

.popup-book-info {
    height: 100%;
    display: flex;
    align-items: center;
    
}

.popup-book-image {
    height: 80%;
    max-width: 300%; 
    overflow: hidden;
    margin-left: 20px;
    margin-top: 20px;
}

.popup-book-image img {
    max-width: 100%;
}

.popup-book-details {
    padding-left: 20px;
}

#popup-book-review {
    text-decoration: underline;
    font-weight: bold;
    color: black;
}

#popup-book-description {
    background-color: white;
    border: 1px solid black; 
}
