/* 
Extra small devices (portrait phones, less than 544px)
No media query since this is the default in Bootstrap
 */

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
main h3{
    color: #5b737f;
    font-weight:bold;
}
body, html{
   height: 100%;
    background-image: url(../images/lightpaperfibers.png);
}
header {
    text-align: center;
    background-color: #7F675B;
    height: 90px;
    padding: 20px;
}
footer {
    text-align: center;
    background-color: #7F675B;
    height: 25px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
footer h5{
    font-size: 16px;
    margin: 0;
}
h1,h2,h3,h4,h5,li,p, footer h5{
    font-family: "shahd";
}
/*
Nav Bar
*/
nav {
top: 90px;
width: 100%;
}
ul.topnav {
	list-style-type: none;
	margin: 0;
	padding: 5px 0 0 0;
	overflow: hidden;
	background-color: #7F675B;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
ul.topnav li {
	height: 50px;
    padding: 0 8px;
}
ul.topnav li a {
	color: white;
	font-size: 17px;
	text-align: center;
	text-decoration: none;
	padding: 8px 16px;
	display: inline-block;
	transition: 0.3s;
}
ul.topnav li a.active {
	border: 2px solid #A29088;
}
ul.topnav li a:hover {
	background-color:  #A29088;
}
header h1 {
    font-family: 'kufi';
    color: white;
}
footer h5{
    color: white;
}
main {
    min-height: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    background-image: url(../images/lightpaperfibers.png);
    }
#dispblock {
    display:block;
}
img {
    max-height: 350px;
    display: block;
    margin: auto;
}
main h2 {
    text-align: center;
    margin: 15px;
    color: #5b737f;
    font-weight: bold;
}
#bookdiv {
   max-width: 300px;
    text-align: center;
}
#bookdiv a{
    color: #EFBC9B; 
    text-decoration: none;
}
#bookdiv a:hover h2, #bookdiv a:hover img{
    opacity: 0.7;
}
.intro{
    margin: 30px;
    background-color: #ffffff;
    border: 10px solid white;
    opacity: 0.6;
    border-style: outset;
    position: absolute;
    right: 0;
    }
.intro h3{
    margin: 5%;
    color: black;
    text-align: center;
    line-height: 150%;
    font-size: 16px;
}
hr{
    margin: 1.5rem;
}

main h4{
    font-size: 20px;
}
.audioh2{
    margin: 30px auto;
    margin-bottom: 20px;
}
.mainol{
    list-style-position: inside;
    padding-right: 10%;
}
.mainol li{
    margin: 5px auto;
    padding-left: 15px;
    text-align: center;
}
#bookdiv h2{
    font-size: 25px;
}
#lightgallery{
    margin: 50px auto;
    background-color: #333333;
    overflow: auto;
    padding: 50px 20px;
    border-radius: 2%;
}
#lightgallery img{
    display: inline-block;
    border: 5px solid white;
    margin: 5px;
}
.nav-tabs > li {
    float:none !important;
    display:inline-block;
    zoom:1;
}
.nav-tabs {
    text-align:center;
}
.poet{
    margin-top:20px;
}
/* Create two equal columns that floats next to each other */
.column {
    float: right;
    width: 50%;
    padding: 10px;
}
.poem{
    padding: 20px;
    text-align: center;
}
.writer{
    color: #5b737f;
    font-style: oblique;
}
.poet h3{
    font-size: 16px;
}
.poet p{
    font-size: 12px;
}
.khalid p{
    font-size: 10px;
}
.mainol audio{
    width:92%;
    padding-right: 10px;
    padding-left: 10px;
    margin-top:20px;
    margin-left:5px;
}
.intro > p{
    float:left;
}
.nav-tabs>li.active>a,
.nav-tabs>li>a:active,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover{
    border: 1px solid #ddd;
    background-color: white;
    border-bottom: 1px solid white;
}
.tab-content {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-top-style: none;
}
.bkorder, .bkp{
    flex-basis: 100%;
    text-align: center;
}
.bkp{
    margin-top: 30px;
}
.txtleft{
    text-align: left;
}
.recordintro{
    padding-right: 20px;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}
.margtop{
    margin-top:15px;
}

/*Max width for small devices*/
@media (max-width: 544px) {
    /*Background*/
    #homebk{
        background: url(../images/bk1.jpg) no-repeat left top; 
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        filter: sepia(40%);
    }   
    nav ul.topnav li {
		display: none;  /* hide */
        width: 100%;
	}
	header div.icon {
		display: inline-block;
        float: right;
        height: 50px;
	}
 
	header div.icon a {
        font-size: 30px;
        text-decoration: none;
        color: white;
	}
     /* The "responsive" class is added to topnav with JS when the user clicks on the icon.
    This turns on the menu and changes the other menu items into "dropdown" items. */
    nav ul.topnav.responsive { position: relative; }
    header div.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    nav ul.topnav.responsive li {
        float: none;
        display: inline;   /* show */
    }
    nav ul.topnav.responsive li a {
        display: block;   /* stack, where as before these were inline */;
    }   
    #bookdiv {
        margin:35px 0;
    }
    .intro{
        margin: 5px;
        transform: translateY(10%);
    }
    ul.topnav{
        padding-top: 0;
    }
    
    .hideAbout{
        color: #5b737f;
        font-weight:800;
    }
    .nav-tabs > li > a{
        padding: 5px;
        font-size: 14px;
    }
    .nav-tabs{
        padding-right: 0;
    }
    .audioh2{
        font-size: 27px;
        padding: 2px;
    }
    .poet audio{
        width: 90%;
    }
    .about h3{
        font-size: 21px;
    }
    .bk1{
        order:2;
    }
    .bk2{
        order:4;
    }
    .bkorder{
        order: 3;
    }
    .bkp{
        order: 1;
    }
}

@media (max-width: 526px){
    .mainol audio{
        width:86%;
    }
    .mainol .fxt{
        width:87%;
    }
}

/* Small devices (landscape phones, 544px and up) */
@media (min-width: 544px) {
    /*Background*/
    #homebk{
        background: url(../images/bk1.jpg) no-repeat left top; 
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        filter: sepia(40%);
    }   
    header div.icon {
		display: none;
	}
    .intro{
        width: 50%;
        line-height: 200%;
        transform: translateY(-20%);
    }
    ul.topnav li a{
        font-size: 19px;
    }
    ul.topnav li{
        height: 52px;
    }
    header h1{
        font-size: 45px;
    }
    .hideAbout{
        visibility: hidden;
        height: 0;
    }
    .poet h3{
        font-size: 20px;
    }
    .poet p{
        font-size: 16px;
    }
    .bkorder a{
        font-size: 18px;
    }
    .recordintro{
    padding-right: 10%;
    padding-left: 10%;
    margin-bottom: 30px;
    font-size: 18px;
    }
    .bkmain{
        min-height: 570px;
    }
    #bookdiv {
        margin-top: 50px;
        margin-bottom: 20px;
    }
    
    /* Firefox only */
    @-moz-document url-prefix() {
    .intro{
        transform: translateY(-50%);
    }
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    #bookdiv {
        margin:50px 20px; 
    }
    ul.topnav li a{
        font-size: 22px;
    }
    ul.topnav li{
        height: 57px;
        padding: 0 20px;
    }
    header h1{
        font-size: 50px;
    }
    footer{
        height: 27px;
    }
    footer h5{
        font-size: 18px;
    }
    #bookdiv h2{
    font-size: 30px;
    }
    .poet{
    margin-top:40px;
    }
    .poet h3{
        font-size: 22px;
    }
    .poet p{
        font-size: 18px;
    }
    .mainol audio{
        width: 30%;
        margin-right: 0;
    }
    .mainol li{
        text-align: inherit;
    }
    .intro h3{
        font-size: 18px;
    }
}


/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #bookdiv {
        margin:50px 40px; 
    }
    footer{
        height: 30px;
    }
    footer h5{
        font-size: 20px;
    }
    #dispblock p, #dispblock li{
        font-size: 18px;
    }
    .column{
        width:30%;
    }
    .c1{
        margin-right: 20%;
    }
    .recordintro{
        font-size: 20px;
    }
}

/* Landscape phones only */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 812px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 
      .intro{
          line-height: 150%;
          transform: translateY(-5%);
          margin: 15px;
      }
      #homebk{
          min-height: 550px;
      }
}

/* Tablets only */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1112px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 1) {
      .bkfooter{
        position: absolute;
        width:100%;
        bottom: 0;
    }
}

