* {
    box-sizing: border-box;
}

/* Center website */
.main {
    max-width: 1000px;
    margin: auto;
    background-color: #fdf5e6;
}

.siteOwner {
    color: grey;
    text-align: center;
    font-size: 0.6em;
    font-family: Roboto, Arial;
}

.BJT {
    font-family: 'Aboreto';
    font-size: 50px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: #696969;
}

.blessing {
    width: 200px;
    height: auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.portrait {
    width: 200px;
    height: auto;
    border-radius: 75%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.tf {
    width: 30px;
    height: auto;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bodyText {
    font-family: "AlegreyaSans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    text-align: center;
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5em;
    color: #808080;
}

.titleText {
    font-family: 'Alegreya', serif;
    font-weight: 600;
    font-size: 30px;
    text-align: center;
    font-variant: small-caps;
    color: #CD853F;
}

.smicon {
    width: 32px;
    height: 32px;
}

.colBookCover {
    float: left;
    width: 35%;
    padding: 5px;
    margin-left: 5px;
}

.colBookBlurb {
    width: 60%;
    padding: 5px;
    display: block;
    margin-left: auto;
    margin-right: 5px;
    line-height: 1.5em;
}

.rowBook {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
}

.rowContact {
    display: block;
    margin-left: 30px;
    margin-right: auto;
    padding: 20px;
    width: 80%;
}

.bookText {
    font-family: "AlegreyaSans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    width: 100%;
    color: #808080;
}

.bookTitle {
    font-family: 'Alegreya', serif;
    font-weight: 600;
    font-size: 30px;
    text-align: left;
    font-variant: small-caps;
    color: #CD853F;
}

@media screen and (max-width: 950px) {
    .rowBook {
        width: 65%;
    }
}

@media screen and (max-width: 850px) {
    .rowBook {
        width: 70%;
    }
}

@media screen and (max-width: 780px) {
    .rowBook {
        width: 80%;
    }
}

@media screen and (max-width: 690px) {
    .rowBook {
        width: 90%;
    }
}

@media screen and (max-width: 650px) {
    .rowBook {
        width: 100%;
    }
    .colBookCover {
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        top: -10px;
    }
    .colBookBlurb {
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
        position: relative;
    }
    .BJT {
        font-size: 40px;
    }
    .blessing {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .portrait {
        display: block;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        top: -10px;
    }
    .bookTitle {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .bookText {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

.parallax {
    /* The image used */
    background-image: url("../media/typewriter.jpg");
    /* Set a specific height */
    min-height: 400px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax2 {
    /* The image used */
    background-image: url("../media/book.jpg");
    /* Set a specific height */
    min-height: 400px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Turn off parallax scrolling for all tablets and phones. Increase/decrease the pixels if needed */
@media only screen and (max-device-width: 650px) {
    .parallax {
        background-attachment: scroll;
    }
    .parallax2 {
        background-attachment: scroll;
    }
}

/*Form Styles*/
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;
    resize: vertical;
}

input[type=submit] {
    background-color: #BB933D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #a07f34;
}

.container {
    border-radius: 5px;
    padding: 20px;
}

.bookOrder {
    color: gray;
    font-weight: normal;
    text-align: center;
    font-family: Roboto, Arial;
    font-size: 0.7em;
}

.bookCard {
    background-color: #F5F5DC;
    padding: 20px;
    margin: 40px auto;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.publisherBlock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    font-size: 0.75em;
    font-family: Roboto, Arial;
    color: #555;
}

.publisherIcon {
    height: 20px;
    width: auto;
    opacity: 0.8;
}

.publisherText a {
    color: #CD853F;
    text-decoration: none;
}

.publisherText a:hover {
    text-decoration: underline;
}


.orderFrom,
.orderDigital {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: white;
    padding: 20px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
    width: 100%;
    max-width: 560px;
    margin: 20px auto;
}



/* Individual digital item */
.digitalItem {
    text-align: center;
    width: 90px;
}

/* Icon sizing */
.digitalIcon {
    height: 24px;
    margin-bottom: 4px;
}

/* Label styling */
.digitalLabel {
    font-size: 0.7em;
    color: #555;
    font-family: Roboto, Arial;
}

.bslAmazon {
    height: 14px;
    top: 10px;
    position: relative;
}

.bslBlackwells {
    height: 9px;
    top: 4px;
    position: relative;
}

.bslFoyles {
    height: 7px;
    top: 3px;
    position: relative;
}

.bslHatchards {
    height: 22px;
    top: 4px;
    position: relative;
}

.bslWaterstones {
    height: 10px;
    top: 3px;
    position: relative;
}

form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: #555;
}

.hp {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

input[type=text],
input[type=email],
input[type=submit],
textarea {
    width: 120%;
    display: block;
}

input[type=hidden] {
    display: none !important;
}

