body {
    width: 100%;
    margin: auto;
    background-color: #dbdde0;
    font-family: Optima, Segoe, "Segoe UI", Candara, Calibri, Arial, sans-serif;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
}

#warning {
    margin: auto 0;
    background-color: black;
}

#noscript {
    margin: 0;
    color: red;
    background-color: black;
    text-align: center;
    padding: 2%;
}

#noscript a {
    color: red;
}

.pointer:hover {
    cursor: pointer;
}

/* ---------- Header section -------------- */
header {
    margin: 0 auto;
    background: url("../images/open-book.jpg") center;
    background-size: 100% 100%;
    width: 100%;
    height: 300px;
    clear: both;
}

header h3 {
    width: 50%;
    margin: 20px auto;
    text-align: center;
    color: #070930;
    font-style: italic;
}

#mobile-tag {
    display: none;
}

#followButtonsMobile {
	display: none;
}

#title {
    margin: 0 auto;
    text-align: center;
    font-family: "Goudy Old Style", Garamond, "Big Caslon", "Times New Roman", serif;
	font-size: 70px;
	font-style: normal;
	font-variant: normal;
	font-weight: bold;
    text-shadow: -2px -2px #cee7f2;
    color: #1c78a3;
}

h1 {
    text-align: center;
    margin: 0 auto;
}

/* ---------- Selection section -------------- */
nav {
    display: none;
}

#flex_container {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

.one_fourth {
    min-width: 150px;
    flex: 1;
    padding: 20px;
    text-align: center;
}

#allWorks {
    background-color: #af5e56;
}

#oneWork {
    background-color: #486872;
}

#oneBook {
    background-color: #4b874e;
}

#favSection {
    background-color: #EAC67A;
}

/* ---------- Options section (4) -------------- */
/*---All Works---*/
#allWorks label, #favSection label {
    display: block;
    margin: 0 auto;
    border: 2px solid black;
    padding: 4px;
    border-radius: 4px;
    font-size: 18px;
    width: 80%;
}

label input[type="checkbox"] + span {
  opacity: 0.5;
}

label input[type="checkbox"]:checked + span {
  opacity: 1;
  font-weight: bold;
}

/*---One Work---*/
#oneWork button {
    border: 3px outset #474747;
    padding: 5px;
    margin: 3px;
    border-radius: 4px;
    width: 80%;
    font-size: 18px;
    font-weight: bold;
    filter: brightness(95%);
}

#oneWork button:hover {
    border: 3px inset #474747;
    filter: brightness(100%);
}

/*---One Book---*/
#oneBook label, select {
    margin: 5px;
    font-size: 18px;
}

#bookList, #bookListSubmit {
    display: none;
}

#bookListSubmit {
    font-size: 18px;
    font-weight: bold;
    border-radius: 3px;
}

select {
    width: 80%;
}

/*---Favorites---*/
#random_all, #random_fav {
    background-color: #c1c1c1;
    font-size: 18px;
    border-radius: 3px;
}

.fav {
    float: left;
    height: 24px;
}

#favSection h5 {
    margin: 0;
}

/*---all button colors---*/
.ot:not(h3) {
    background-color: #c61d1d;
}

.nt:not(h3) {
    background-color: #f7901b;
}

.bofm:not(h3) {
    background-color: #5569e0;
}

.dc:not(h3) {
    background-color: #2c9627;
}

.pgp:not(h3) {
    background-color: #7f3ea8;
}

/* ---------- Main section -------------- */
main {
    width: 100%;
    background-color: #91482a;
    padding-top: 20px;
    padding-bottom: 30px;
}

h3.ot {
    color: #c61d1d;
}

h3.nt {
    color: #f7901b;
}

h3.bofm {
    color: #5569e0;
}

h3.dc {
    color: #2c9627;
}

h3.pgp {
    color: #7f3ea8;
}

/* for Random section */
#tabs {
    background-color: #7f391e;
    margin: auto;
    width: 80%;
    border: 3px solid #e2ac53;
    border-radius: 12px;
    padding: 0px;
    color: black;
    display: none;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
    color: black;
}

#tabs  .ui-tabs-tab {
    background-color: #9cb2bc;
    font-weight: 600;
}

#tabs  .ui-tabs-active {
    background: #e5cd9c url("../images/paper-background.jpg");
    font-weight: 800;
}

#tabs .ui-tabs-nav {
    background: transparent; 
    border-width: 0px 0px 1px 0px; 
    -moz-border-radius: 0px; 
    -webkit-border-radius: 0px; 
    border-radius: 0px;
} 

#tabs .ui-tabs-panel { 
    margin: 0em 0.2em 0.2em 0.2em;
    background: #e5cd9c url("../images/paper-background.jpg");
    height: 250px;
    overflow: auto;
}

/* for Memorize section */
#showMemorize, #hideMemorize {
	display: block;
	margin: 5px auto;
	padding: 3px 6px;
	border-radius: 3px;
	font-size: 18px;
	background: #abbaab;  /* fallback for old browsers */
	background: -webkit-linear-gradient(to bottom, #ffffff, #abbaab);  /* Chrome 10-25, Safari 5.1-6 */
	background: linear-gradient(to bottom, #ffffff, #abbaab); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

#mastery {
	width: 200px;
}

#lizBox {
    background-color: #7f391e;
    background: #e5cd9c url("../images/ricepaper_v3.png");
    margin: 15px auto 0px auto;
    width: 80%;
	min-height: 250px;
    border: 3px solid #e2ac53;
    border-radius: 12px;
    padding: 0px;
    color: black;
}

#memorizeBox {
	display: none;
    background-color: #7f391e;
    background: #e5cd9c url("../images/ricepaper_v3.png");
    margin: 15px auto 0px auto;
    width: 80%;
	min-height: 250px;
    border: 3px solid #e2ac53;
    border-radius: 12px;
    padding: 0px;
    color: black;
}

#memorizeLoading {
	text-align: center;
	display: none;
	font-weight: bold;
}

#highlight {
	background-color: yellow;
}

#highlightError {
	background-color: red;
}

#memorizeRef, #header {
	margin-top: 10px;
	text-align: center;
}

#memorizeOptions, #duringMemorization, #whenFinished, #showKeyboard {
	display: none;
}

#seeVerse, #startEasy, #startHard, #hint, #startOver, #next, #repeat, #nextVerse {
	display: block;
	margin: 10px auto;
	padding: 5px;
    border-radius: 5px;
	background-color: #D4D4D4;
}

#memorizeVerse {
	display: block;
	margin: 10px auto;
	text-align: center;
}

#tagsMemorize {
	margin: 5px;
}

#memorizeDisplay, #verseToMemorize {
	margin: 1em auto;
	max-width: 788px;
}

#wellDone {
	font-style: italic;
	margin: 1em;
	text-align: center;
	color: #8B4224;
	font-weight: 450;
}

#memorizeInfo {
	height: 1em;
}

#dummy {
	position:absolute;
	left:-99999px;
}

.addFavMsg {
    display: inline-block;
    margin-left: 10px;
    color: green;
}

#clear {
    position: absolute;
    height: 25px;
    bottom: 20px;
    right: 59px;
    display: none;
}

#settings {
    position: absolute;
    height: 25px;
    bottom: 20px;
    right: 24px;
    display: none;
}

#settings:hover {
    cursor: pointer;
}

.ui-tooltip {
    text-align: center;
}

.ui-tooltip span {
    font-style: italic;
}

// code used from http://www.jacklmoore.com/notes/jquery-modal-tutorial/
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
  filter: alpha(opacity=50);
}

#modalMsg {
  position: absolute;
  display: none;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  padding: 8px;
}

#content {
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  max-width: 400px;
  margin: auto;
}

#close {
    position:absolute;
    z-index: 1000;
    background:url("../images/close.png") 0 0 no-repeat;
    width:27px;
    height:27px;
    display:block;
    text-indent:-9999px;
    top:-7px;
    right:-7px;
}
// end code used from http://www.jacklmoore.com/notes/jquery-modal-tutorial/

.column {
    width: 40%;
    padding: 5%;
    float: left;
}

.column img {
    height: 16px;
    width: auto;
    padding-left: 3px;
}

a, a:visited {
    color: #5b5b5b;
}

.star  {
    float: left;
    height: 24px;
}

.star:hover {
    cursor: pointer;
}

/* ---------- Ajax loading icon -------------- */
/* Modal example adapted from http://stackoverflow.com/questions/1964839/how-can-i-create-a-please-wait-loading-animation-using-jquery */
.modal {
    display:    none;
    position:   relative;
    z-index:    1000;
    height:     40%;
    width:      100%;
    background: url('../images/loadingIcon.gif') 
                50% 50% 
                no-repeat;
}

#random_tab.loading .modal {
    display: block;
}

/* ---------- Log In / Register section -------------- */
/*---Example for login/register buttons adapted from
https://dcrazed.com/css-html-login-form-templates/
DropDown Login Form--*/

#navthing {
  position: absolute;
  right: 20px;
  top: 10px;
  display: none;
}

#navthing h3 {
    margin: 0;
    color: #f7ee4f;
}

fieldset {
  border: none;
}

#forgot a {
    color: blue !important;
}

.login, .reg {
  position: absolute;
  z-index: 1000;
  width: 350px;
  display: none;
  left: -195px;
  top: 30px;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid #d9dadb;
  left: 61%;
  position: absolute;
  top: -10px;
}

.arrow-up-reg {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid #d9dadb;
  left: 82%;
  position: absolute;
  top: -10px;
}

.formholder {
  background: #d9dadb;
  width: 350px;
  border-radius: 5px;
  padding-top: 5px;
  border: 2px solid black;
}
.formholder input[type="email"], .formholder input[type="password"] {
  padding: 7px 5px;
  margin: 10px 0;
  width: 96%;
  display: block;
  font-size: 18px;
  border-radius: 5px;
  border: none;
  -webkit-transition: 0.3s linear;
  -moz-transition: 0.3s linear;
  -o-transition: 0.3s linear;
  transition: 0.3s linear;
}
.formholder input[type="email"]:focus, .formholder input[type="password"]:focus {
  outline: none;
  box-shadow: 0 0 1px 1px #d12525;
}
.formholder input[type="submit"] {
  background: #d12525;
  padding: 9px;
  font-size: 20px;
  display: block;
  width: 100%;
  border: none;
  color: #fff;
  border-radius: 5px;
  margin-top: 5px;
}
.formholder input[type="submit"]:hover {
  background: #e84a4a;
}

.randompad {
  padding: 10px;
}

.red {
  color: #e20000 !important;
}

#navthing a {
  text-decoration: none;
  color: #f7ee4f;
}
#navthing a:hover {
  color: #e20000 !important;
  cursor: pointer;
}

#logoutMobile {
    display: none;
}

#forgotForm input[type="email"] {
  padding: 7px 5px;
  margin: 10px 0;
  width: 96%;
  display: block;
  font-size: 18px;
  border-radius: 5px;
  border: 1px solid black;
}
#forgotForm input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 1px 1px #d12525;
}
#forgotForm input[type="submit"] {
  background: #d12525;
  padding: 9px;
  font-size: 20px;
  display: block;
  width: 100%;
  border: none;
  color: #fff;
  border-radius: 5px;
  margin-top: 5px;
}
#forgotForm input[type="submit"]:hover {
  background: #e84a4a;
}

/* ---------- Favorite section -------------- */
#fav_display, .fav_content, #loading_fav, #wait_fav {
    display: none;
}

#addVerse {
    text-align: center;
}

#addVerse label {
    font-style: italic;
}

#addVerse input {
    border-radius: 5px;
}

#wait_fav, #loading_fav, #fav_display .fav_header {
    text-align: center;
}

.fav_header:hover {
    cursor: pointer;
}

.fav_header img {
    height: 16px;
    width: auto;
    padding-right: 3px;
}

/* ---------- Account section -------------- */
#delete_favs, #delete_account {
    text-decoration: underline;
    color: red;
}

#loggedIn, #logoutMobile {
    text-align: center;
}

#changePassword input, #changeEmail input {
    margin: 2px 0;
    border-radius: 5px;
}

#changePassword input[type="submit"], #changeAccount input[type="submit"] {
    margin-top: 10px;
}


/* ---------- Share section -------------- */
#donateButton {
    margin: 0 auto; margin-bottom: 5px; padding-top: 5px;
}

#donateButton input:hover {
    cursor: pointer;
}

footer {
    background-color: #91482a;
    text-align: center;
    padding-bottom: 10px;
}

small, small a:link, small a:visited {
    color: white;
}

#share-buttons a:link, a:visited {
    color: #91482a;
}

#share-buttons img {
    width: 35px;
    padding: 5px;
    border: 0;
    box-shadow: 0;
    display: inline;
}

/* ---------- Reset password section -------------- */
#resetPassword {
    color: #EAC67A;
    text-align: center;
    width: 100%;
    background-color: #91482a;
    padding-top: 10px;
    padding-bottom: 10px;
}

#resetPassword a:link, #resetPassword a:visited {
    color: #e20000;
}

#resetPasswordForm input[type="password"] {
  margin: auto;
  width: 250px;
  display: block;
  font-size: 18px;
  border-radius: 5px;
  border: 1px solid black;
}
#resetPasswordForm input[type="password"]:focus {
  outline: none;
  box-shadow: 0 0 1px 1px #d12525;
}
#resetPasswordForm input[type="submit"] {
  background: #d12525;
  margin: auto;
  font-size: 20px;
  display: block;
  width: 250px;
  border: none;
  color: #fff;
  border-radius: 5px;
  margin-top: 5px;
}
#resetPasswordForm input[type="submit"]:hover {
  background: #e84a4a;
}

#adForPartnerSite {
	min-height: 84px;
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	align-items: center;
    text-align: center;
	background: #a6bf8a;  /* fallback for old browsers */
	background: -webkit-linear-gradient(to left, #a6bf8a, #c8d4ba, #a6bf8a);  /* Chrome 10-25, Safari 5.1-6 */
	background: linear-gradient(to left, #a6bf8a, #c8d4ba, #a6bf8a); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	padding: 5px;
}

#adForPartnerSite p {
	margin-top: 0px;
}

/*
#adForPartnerSite p {
	font-size: 18px;
	margin-right: 10px;
}
*/

#latest {
	font-size: 1.2em;
}

#authorPic {
    height: 80px;
	padding-right: 10px;
	margin-left: 10px;
    width: auto;
    vertical-align: middle;
}

#followButtonsDesktop {
	width: 100px;
	padding-right: 10px;
}

#ksLogo {
	height: 40px !important;
}

@media screen and (min-width: 1200px) {
	
	#adForPartnerSite p {
        font-size: 20px;
    }
	#authorPic {
		height: 80px;
	}
	#ksLogo {
		height: 50px !important;
	}
}

.partnerSite:link, .partnerSite:visited, .partnerSite:active {
    color: #dd0f0f;
	text-decoration: none;
}

.fbLink:link, .fbLink:visited, .fbLink:active {
    color: #4267b2;
	text-decoration: none;
}

.instaLink:link, .instaLink:visited, .instaLink:active {
    color: #c13584;
	text-decoration: none;
}

.lizLink:link, .lizLink:visited, .lizLink:active {
    color: black;
}

#downloadApp:link, #downloadApp:visited, #downloadApp:active {
	color: #f7ee4f;
	font-size: 1.2em;
}

#copyright {
	font-size: .7em;
}


/* ##Device = Tablets, Ipads (landscape) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    header h3 {
        background:rgba(255,255,255,0.5);
        border-radius: 20px;
        padding: 5px;
    }
    #fav_link {
        display: block;
    }
	#showKeyboard {
		display: block;
		margin: 10px auto;
		padding: 5px;
		border-radius: 5px;
		background-color: #D4D4D4;
	}
	#podcastAd {
		width: 600px;
	}
}

/* ##Device = Mobiles (Landscape and Portrait) */
@media screen and (max-width: 768px) {
	#showKeyboard {
		display: block;
		margin: 10px auto;
		padding: 5px;
		border-radius: 5px;
		background-color: #D4D4D4;
	}
	
    header h3 {
        display: none;
    }
    #title {
        position: relative;
        top: 10%;
        font-size: 60px;
    }
    #mobile-tag {
        margin: 0;
        display: block;
        width: 100%;
        background: #7e90af; /* For browsers that do not support gradients */
        background: -webkit-linear-gradient(#e2e2e2, #7e90af); /* For Safari 5.1 to 6.0 */
        background: -o-linear-gradient(#e2e2e2, #7e90af); /* For Opera 11.1 to 12.0 */
        background: -moz-linear-gradient(#e2e2e2, #7e90af); /* For Firefox 3.6 to 15 */
        background: linear-gradient(#e2e2e2, #7e90af); /* Standard syntax */
        text-align: center;
    }
    #mobile-tag h3 {
        margin: 0 auto;
        font-style: italic;
        color: #070930;
        padding: 2%;
    }
	#followButtonsMobile {
		display: block;
		padding-top: 5px;
	}
	#followButtonsDesktop {
		display: none;
	}
    nav {
        display: flex;
        width: 100%;
    }

    nav div {
        width: 25%;
        height: 90px;
    }
    
    nav .active {
        height: 75px;
        border-top: 15px solid #230800;
        border-right: 3px solid #230800;
        border-left: 3px solid #230800;
    }
    
    nav div:not(.active) {
        border-bottom: 3px solid #230800 !important;
    }
    
    #flex_container .active {
        border-bottom: 3px solid #230800;
    }

    #allWorksLink {
        background: #af5e56 url("../images/AllWorks.png") no-repeat center;
        background-size: 60px auto;
        border-left: none !important;
        border-bottom: 3px solid #af5e56;
    }

    #oneWorkLink {
        background: #486872 url("../images/OneWork.png") no-repeat center;
        background-size: 60px auto;
        border-bottom: 3px solid #486872;
    }

    #oneBookLink {
        background: #4b874e url("../images/OneBook.png") no-repeat center;
        background-size: 60px auto;
        border-bottom: 3px solid #4b874e;
    }
    
    #favLink {
        background: #EAC67A url("../images/star-on.png") no-repeat center;
        background-size: 60px auto;
        border-right: none !important;
        border-bottom: 3px solid #EAC67A;
    }
    
    #oneBook {
        min-height: 340px;
    }

    main {
        padding: 5px 0px;
    }
    
    #tabs, #memorizeBox {
        width: 97%;
    }
    
    #tabs .ui-tabs-panel { 
        height: 225px;
    }
    
    .formholder {
        width: 80%;
        position: absolute;
        right: 1%;
    }
    
    .formholder input[type="email"], .formholder input[type="password"] {
        margin: 2px 0;
    }
    
    .formholder input[type="submit"] {
        margin-top: 10px;
    }
    
    #clear {
        position: absolute;
        top: 50px;
        right: 20px;
    }
    
    #oneWork {
        display: none;
    }
    
    #oneBook {
        display: none;
    }
    
    #favSection {
        display: none;
    }
    
    #logout {
        display: none;
    }
    
    #logoutMobile {
        display: block;
        color: #e20000;
        text-decoration: none;
    }
    /*
    #adForPartnerSite {
        width: 95%;
		display: flex;
		justify-content: space-around;
		align-items: center;
    }
    */
	/*
    #adForPartnerSite p {
        font-size: 16px;
    }
	*/
	
	#latest {
		font-size: .8em;
	}

    #authorPic {
        height: 80px;
    }
	
	#podcastAd {
		width: 300px;
	}
}
/* ##Device = very small Mobiles (Portrait) */
@media screen and (max-width: 340px) {
	
	#adForPartnerSite p {
        font-size: 11px;
    }
	
    .ui-tabs .ui-tabs-nav li {
        width:31%;
    }
    .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
        padding: .5em !important;
    }
	#podcastAd {
		width: 300px;
	}
}

@media screen and (max-width: 1024px) {
	#memorizeDisplay, #verseToMemorize {
		margin: 1em;
	}
}

#podcastAd {
	max-width: 450px;
	max-height: 200px;
}