.navbar {
    display: flex;
    flex-flow: column nowrap;
    font-family: 'Oswald', sans-serif; 
    color: white;
    background-color: darkblue;
    font-size: 1.4em;
    max-height: 0px;
    overflow-y: hidden;
    transition: max-height 0.5s ease-out;    
}
.navbar>div {
    padding: 10px;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: inherit;
  border: none;
  outline: none;
  color: white;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}


.navbar>div:hover {
    background-color: blue;
}
.navbar a {
    color: white;
    text-decoration: none;
}

.dropdown-content {
    display: flex;
    flex-flow: column nowrap;
    max-height: 0px;
    overflow-y: hidden;
    transition: max-height 0.5s ease-out;
}
.dropdown-content a {
    padding: 10px;
}

.dropdown:hover .dropdown-content {
    max-height: 1500px;
}
.mobilenavbtn {
    cursor: pointer;
}
.navmobiletop {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Oswald', sans-serif; 
    color: white;
    background-color: darkblue;
    font-size: 1.4em;
    padding: 10px;
}

.header {
    background-color: white;
}

.maintitle {
    display: none;
}

.logo {
    text-align: center;
    padding: 20px 20px 0px;
}

.logo img {
    max-width: 100%;
}

.subtitle {
    color: darkblue;
    font-style: italic;
    margin: 0 auto 10px;
    text-align: center;
}

.address {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-around;
    color: darkblue;
    font-size: 0.9em;
}

.slogan {
    display: none;
    color: darkblue;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    margin: 10px;
}


.test {
    display: none;
}

.facebook {
    display: none;
}

.bookad {
    background-color: #dbe8ff;
    display: flex;
    justify-content: center;
}

.book {
    display: grid;
    background-color: #dbe8ff;
    padding: 10px;
    gap: 5px; 
    max-width: 900px;
    align-items: center;    
}

.book .cover {
    grid-row: 3;
    grid-column: 1;
}

.book .cover img {
    width: 100px;
    padding: 10px;    
}

.book .btndiv {
    grid-row: 3;
    grid-column: 3;
}

.book button {
    border-radius: 5px;
    background-color: green;
    color: white;
    font-weight: bold;
    padding: 10px;
    font-size: 20px;
    border-color: silver;
    border-width: 5px;
    border-style: solid;
    cursor: pointer;
    transition: all 0.5s ease; 
    margin: 10px;
}

.book button:hover {
    filter: brightness(120%);
}

.book .title {
    grid-row: 1;
    grid-column: 1 / span 3;    
    color: green;
    font-weight: bold;
    font-size: 18pt;
    text-align: center;
}

.book .author {
    grid-row: 2;
    grid-column: 1 / span 3;       
    color: green;
    font-weight: bold;
    font-size: 12pt;
    text-align: center;
}

.book .desc {
    grid-row: 3;
    grid-column: 2;
    font-size: 10pt;
}


@media (min-width: 560px) {
    
    .header {
        display: grid;
        max-width: 100%;
        width: 100%;
        grid-template-columns: 3fr 4fr 3fr;
        align-items: center;
        justify-content: center;
    }
    
    .logo-subtitle {
        grid-row: 1 / span 2;
        grid-column: 1;
        font-size: 1vw;
    }
    .logo-subtitle img {
        max-width: 100%;
    }
    
    .maintitle {
        display: block;
        grid-row: 1;
        grid-column: 2;
        font-weight: bold;
        font-size: 3vw;
        color: darkblue;
        text-align: center;
    }
    

    .test {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        color: darkblue;
        font-weight: bold;
        grid-row: 1;
        grid-column: 3;
        font-size: 1vw;
    }
    
    .test button {
        background-color: red;
        color: white;
        font-size: 1.7em;
        font-weight: bold;
        border: 3px solid black;
        border-radius: 5px;
        cursor: pointer;
    }      

    .navmobiletop {
        display: none;
    }
    .slogan {
        display: block;
        grid-row: 2;
        grid-column: 2;
        font-size: 1.4vw;
    }
    .facebook {
        display: block;
        grid-row: 2;
        grid-column: 3;
    }
    .navbar {
        flex-flow: row wrap;
        max-height: none;
        grid-row: 3;
        grid-column: 1 / span 3;
        font-size: 1.1em;
        justify-content: space-around;
    }
    .dropdown-content {
        position: absolute;
        margin-top: 10px;
        padding: 0px;
        background-color: white;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
    }
    .dropdown-content a {
        color: darkblue;
    }
    .dropdown-content a:hover {
        background-color: lightblue;
    } 

    .bookad {
        grid-row: 4;
        grid-column: 1 / span 3;
    }
    
    .book {
        margin: 0;
        font-size: 1.0vw;
        display: grid;
        background-color: #dbe8ff;
        padding: 10px;
        gap: 20px; 
    }
    
    .book .title {
        grid-row: 1;
        grid-column: 2;
    }
    
    .book .author {
        grid-row: 2;
        grid-column: 2;
    }
    
    .book .cover {
        grid-row: 1 / span 3;
        grid-column: 1;
        justify-content: end;
    }
    
    .book .desc {
        grid-row: 3;
        grid-column: 2;
    }
    
    .book .btndiv {
        grid-row: 1 / span 3;
        grid-column: 3;
    }

    .address {
        grid-row: 5;
        grid-column: 2;
        margin-top: 5px;
        font-size: 1.2vw;
    }
    
}