/* RMIT University Vietnam
Course: COSC2430 Web Programming
Semester: 2023A
Assessment: Assignment 1
Author: Tran Nguyen Quan
ID: s3979298
Acknowledgement: I acknowledge that during my work I used W3Schools, the Mozilla Development Network, and stackoverflow.com for reference on coding items. */

/* General, desktop-exclusive CSS work. */

* {
    background-color: black;
    color: white;
}

.banner {
    position: relative;
    text-align: center;
    color: white;
  }
  
.banner-title {
    width: 40%;
    border: 2% black;
    padding: 1%;
    margin: 1%;
    background-color: black;
    word-wrap: normal;
    position: absolute;
    font-size: 5vw;
    font-family: "Georgia", serif;
    right: 15%;
    top: 3%; 
    transform: translate(-50% 50%);
}

.banner-blurb {
    width: 50%;
    border: 1% black;
    padding: 0.1%;
    margin: 1%;
    font-size: 2vw;
    position: absolute;
    right: 10%;
    top: 75%;
    transform: translate(-50% 50%);
}

h1 {
    color: orange;
}

p {
    color: white;
    font-size: 24px;
}

.navigation {
    display: flex;
    background-color: gray;
    font-size: 30px;
    overflow: hidden;
    flex-direction: row;
    justify-content: center;
}

.navigation a {
    float: none;
    color: white;
    padding: 10px;
}

.navigation a:hover {
    background-color: white;
    color: orange
}

.navigation a.active {
    background-color: orange;
    color: black;
}

.book-image {
    filter: grayscale(100%);
    transition: filter 1s;
}

.book-image:hover {
    filter: grayscale(0%)
}

.holmes-category {
    width: 95%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    border-color: gray;
    fill: gray;
    justify-content: center;
    align-content: flex-end;
    background-color: gray;
    gap: 15px;
    padding: 10px;
    text-align: center;
}

.poirot-category {
    width: 95%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    border-color: gray;
    fill: gray;
    justify-content: center;
    align-content: flex-end;
    background-color: gray;
    gap: 15px;
    padding: 10px;
    text-align: center;
}

.marple-category {
    width: 95%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    border-color: gray;
    fill: gray;
    justify-content: center;
    align-content: flex-end;
    background-color: gray;
    gap: 15px;
    padding: 10px;
    text-align: center;
}

.tt-category {
    width: 95%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    border-color: gray;
    fill: gray;
    justify-content: center;
    align-content: flex-end;
    background-color: gray;
    gap: 15px;
    padding: 10px;
    text-align: center;
}


.doyle-category, .christie-category {
    display: flex;
    flex-direction: row;
    width: 90%;
    flex-wrap: wrap;
    background-color: gray
}

.doyle-category > * {
    flex: 1 1 0;
}

.christie-category > * {
    flex: 1 1 0;
}

.footer {
    display: flex;
    color: white;
    border: 10px;
    border-color: white;
    padding: 10px;
    margin: 20px;
    font-size: 25px;
    flex-direction: row;
    justify-content: space-around;
    padding-right: 5em;
    padding-left: 5em;
}

.contact {
    color: white;
    background-color: gray;
    padding: 15px;
    font-size: 32px;
    margin: 15px;
}

input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    color: white;
    font-size: 24px;
}

input[type=submit] {
    background-color: orange;
    color: black;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 32px;
    margin: 10px;
  }

.breadcrumb{
    font-size: 24px;
    
}

.book-detail {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 45em;
    width: 30em;
    padding: 0.2em;
    margin: 0.5em;
}

.video {
    text-align: center;
}

.category-book-image {
   object-fit: contain;
}

.book-desc {
    display: block;
}

/* Section for mobile responsiveness. The most headache-inducing part of all, this particular part actually almost made me lose motivation. */

@media screen and (max-width: 960px) {
    .poirot-category, .holmes-category, .marple-category, .tt-category {
        width: 100%;
        height: auto;
        gap: 3px;
        padding: 2px;
        flex-direction: column;
    }

    .book-image {
        width: 75%;
        height: auto;
        gap: 3px;
        padding: 2px;
    }

    .navigation {
        flex-direction: column;
        width: 100%;
        gap: 0.64em;
        text-align: center;
        background-color: transparent;
    }

    .footer {
        flex-direction: column;
        width: 100%;
        gap: 0.64em;
        float: left;
        background-color: transparent;
    }

    .banner {
        width: 100%
    }  

    .video {
        height: 800px;
        width: 620px
    }

    .book-detail {
        flex-direction: row;
        margin-bottom: 20em;
        height: 50em;
    }

    .cover-image {
        width: 80%;
        height: auto;
    }

    .preview-image {
        width: 35%;
        height: auto;
    }
}