/* COLORS
 * yellow: #F9E79F      (249,231,159)
 * blue: #76D7C4        (118,215,196)
 */

/* site wide */
@font-face {
    font-family: tamy;
    src: url(fonts/TaameyFrankCLM.woff);
}
@font-face {
    font-family: frank;
    src: url(fonts/FrankRuehlCLM.woff);
}
@font-face {
    font-family: vilna;
    src: url(fonts/Mekorot-Vilna.woff);
}
@font-face {
    font-family: simple;
    src: url(fonts/SimpleCLM.woff);
}
@font-face {
    font-family: hadasim;
    src: url(fonts/HadasimCLM.woff);
}
:root {
    --main-yellow: #F9E79F;
    --main-yellow-o: rgba(249, 231, 159, .4);
    --main-blue: #76D7C4;
    --main-blue-o: rgba(118, 215, 196, .4);
    --sec-yellow: #faedb7;
    --sec-blue: #eefaf8;
    --con-blue: #39c6aa;
    --main-red: rgba(215, 118, 137);
    --sec-red: rgba(215, 118, 137, .4);
    --main-dark: #111C1F;
    --sec-dark: #93a1a1;
}

/* form page */
form#newentryform{
    border: 5px solid var(--main-yellow);
}
fieldset {
    border: 5px solid var(--main-blue);
}
.dis_item:not([readonly]), .poet:enabled{
  background: var(--main-yellow);
}
:disabled, .dis_item[readonly] {
  background: #dddddd;
}
/* all pages */
body, html {
    width: 99%;
    height: 95%;
    margin:auto;
}

h1 {
    text-align: center;
}

.reading {
    text-align: center;
    padding: 3% 1% 3% 1%;
}
audio {
    width: 100%;
    margin: 0 auto;
}
img.poet:hover, img.context:hover {
    opacity: 0.5;
}
img.poet, img.context {
    width: 100%;
}
#img_popup_cap {
    text-align: center;
    padding: 10px;
    font-family: Times New Roman;
}
.poem_body.eng, .author.eng, .translator, .date.eng,
.poem_body.not_cur, .title_container.not_cur, .author.not_cur, .translator.not_cur, .date.not_cur{
    display: none;
    direction: ltr;
}
.translator.heb {
    display: none;
    direction: rtl;
}
.date {
    font-family: frank;
}
.title {
    margin-bottom: 5px;
}
.author {
    margin-top: 0;
}
.author_blurb_title.yid, .poem_context_title.yid {
    float: right;
    font-family: tamy;
    font-size: 20px;
}

.homepage.yid {
    font-size:40px;
    direction: rtl;
}
.homepage {
    font-family: tamy;
    font-size: 38px;
    color: black;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: .05em;
}
a.homepage {
    text-decoration: none;
}
hr.homepage {
    width: 40%;
    border-image: linear-gradient(to left, var(--sec-yellow), var(--main-blue), var(--sec-yellow));
    border-image-slice: 1;
    border-image-width: 3px;
}
a:visited {
    text-decoration: none;
}
h4.reader {
    padding: 2px;
    margin: 2px;
    font-size: small;
    text-align: center;
}
h3.lkup_word.yid {
    color: var(--main-blue);
    direction: rtl;
    padding: 5px;
    margin: 5px;
}

.poem_body.yid, .date.yid {
    display: block;
    direction: rtl;
    font-size: 21px;
    font-family: frank;
}
.poem_body.heb, .date.heb{
    direction: rtl;
    font-size: 21px;
    font-family: frank;
}
.title_container.yid, .title_container.heb {
    width:100%;
    direction: rtl;
    text-align: right;
    font-family: tamy;
}
.title_container.eng, .translator {
    font-family: tamy;
}
.title.yid {
    display: inline-block;
    font-size: 28px;
    margin: 10px 0px 5px 0px;
}
.title.heb {
    font-size: 28px;
    display: inline-block;
    margin: 10px 0px 5px 0px;
}
.author.yid, .author.heb{
    font-size:21px;
    margin: 0 0 20px 0;
}
.browse_btn {
    min-width: 25%;
    width: auto;
    height: 45px;
    padding-top: 5px;
    border: none;
    margin: .1em;
}
.lang_btn {
    width: 55px;
    height: 40px;
    border: none;
}
#eng_btn {
    font-size:20px;
}
.browse_btn:not(.cur_browse_btn):hover, .lang_btn:not(.cur_lang_btn):hover, .about:hover {
         background: var(--sec-red);
}
.lang_btn, .browse_btn, .about  {
    color: var(--con-blue);
    background-color: var(--sec-yellow);
    font-family: tamy;
    font-size:22px;
    font-weight: bold;
    font-variant: small-caps;
    cursor: pointer;
}
.lang_btn.dark {
    color: var(--main-blue-o);
    background-color: var(--main-yellow-o);
}
.cur_lang_btn, .cur_browse_btn {
    background-color: var(--main-blue);
    color: var(--main-yellow);
}
.cur_lang_btn.dark {
    background: var(--main-blue-o);
	color: var(--main-yellow-o);
}

.date.yid, .date.heb {
    text-align: left;
    padding-bottom: 15px;
    margin-left: 15px;
    direction: rtl;
}
.date {
    text-align: right;
    padding-bottom: 15px;
    margin-right: 15px;
}

.poem_body {
    font-size: 21px;
    font-family: frank;
    padding-bottom: 3%;
}

.author_blurb, .poem_context {
    width: 22%;
    min-width: 150px;
    padding-left: 1.5%;
    padding-right: 1.5%;
    float: left;
    border: 5px solid var(--main-blue);
    font-family: tamy;
    font-size: 18px;
}

.resources {
    border: 5px solid var(--main-blue);
    width: 91.5%;
    float: left;
    margin: 1%;
    padding-right: 3%;
    padding-left: 3%;
    padding-bottom: 1.5%;
    text-align: center;
    font-family: tamy;
    font-size: 18px;
}

.resource_title {
}

.resource_subtitle {
    font-weight: bold;
}

.poem_context {
    margin-left: 1%;
}

.poem_wrapper {
    min-width: 250px;
    width: 38%;
    margin: 0 1%;
    border: 5px solid var(--main-yellow);
    float: left;
    padding-right: 3%;
    padding-left: 3%;
}

.graph_wrapper {
    width: 600px;
    margin: auto;
    text-align: center;
    border: 5px solid var(--main-yellow);
    padding-right: 3%;
    padding-left: 3%;

}

.browse_btns {
    margin: 5px auto;
    width: 60%;
    /* min width until size adjustments are made */
    min-width: 370px;
    text-align: center;
}
.lang_btns {
    text-align: center;
    width: 120px;
    margin: 5px auto;
}

/* @media styles */
@media (min-width: 1100px) {
    .author_blurb, .poem_context {
    }
}
@media (max-width: 1100px) {
    .author_blurb, .poem_context {
        border: 2px solid var(--main-blue);
    }
    .resources {
        border: 2px solid var(--main-blue);
    }
    .poem_wrapper {
    }
}
@media (max-width: 890px) {
    .author_blurb, .poem_context, .resources {
        display: none !important;
    }
    .poem_wrapper {
        width: 60% !important;
        margin-right: 17% !important;
        margin-left: 17% !important;
        padding-right: 3% !important;
        padding-left: 3% !important;
    }
}
@media (max-width: 480px) {
    .author_blurb, .poem_context {
        display: none !important;
    }
}

/* Tooltip container */
.tooltiptext{
	width: 24.5%;
	min-width: 200px;
	max-height: 75%;

	z-index: 100;
	position: fixed;
	top: 20%;
	left:2%;
	overflow-y: auto;

	background-color: var(--sec-blue);
	color: var(--con-blue);
	text-align: center;
	padding: 10px 0;
	border-radius: 6px;
	border: solid var(--main-blue) 5px;

	font-family:tamy;
	font-size:20px;
	visibility:hidden;
}
.tooltip_btn:hover, .about_btns:hover, .clr_tokens:hover {
    background: var(--sec-red);
}
.tooltip_btn, .about_btns, .clr_tokens {
	display: inline-block;
	margin:4px 4px;
	padding: 5px 10px;
	
	background-color: var(--sec-yellow);
	color: var(--con-blue);
	cursor: pointer;
	border: none;
	font-family: tamy;
	font-size: 18px;
}
.about {
    text-align: center;
    text-decoration: none;
    margin: 5px auto;
    padding: 10px 10px 5px 10px;
    display:inline-block;
    /* 
    border-image: linear-gradient(to top left,var(--main-yellow), var(--main-blue),var(--main-yellow));
    border-image-slice: 1;
    border-image-width: 3px;
    */
}
.about_header {
    margin:auto;
    width: 90%;
    text-align: center;
    padding: 5px 0 5px 0;
}
header {
    text-align: center;
}
input.token {
	width: 70%;
	margin: 1px 3px;
	font-size: 16px;
	font-family: tamy;
	border: none;
}

#close_tt {
	float:right;
}

.poem_body.yid::selection {
    background-color: var(--sec-yellow);
    color: var(--con-blue);
}
.img_popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    margin: 0;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(118,215,196); /* Fallback color */
    background-color: rgba(118,215,196,0.9); /* Fallback color */
}
.img_popup_cnt {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--main-yellow);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover, .close:focus,
#close_tt:hover, #close_tt:focus {
    text-decoration: none;
    cursor: pointer;
}


[dir='ltr'], [dir='rtl'] {
    unicode-bidi: -webkit-isolate;
    unicode-bidi: -moz-isolate;
    unicode-bidi: -ms-isolate;
    unicode-bidi: isolate;
}
bdo[dir='ltr'], bdo[dir='rtl'] {
    unicode-bidi: bidi-override;
    unicode-bidi: -webkit-isolate-override;
    unicode-bidi: -moz-isolate-override;
    unicode-bidi: -ms-isolate-override;
    unicode-bidi: isolate-override;
}

/* for browse page */
.frame{
    border: 5px solid var(--main-yellow);
    width: 70%;
    margin: 0 auto;
    /* min width until size adjustments are made */
    min-width: 500px;
    margin-bottom: 20px;
}
.browse_hdr {
    text-align: center;
    font-family: tamy;
    font-weight: bold;
    font-size: 28px;
    text-decoration: underline var(--main-blue);
}
.browse_hdr.default, .link_list.default {
    display: block;
}
.browse_em {
    color: var(--main-yellow);
}
#poet_hdr_eng, #poet_hdr_yid, #poem_hdr_eng,
#poet_list_yid, #poet_list_eng, #poem_list_eng,
#work_list_eng, #work_hdr_eng, #year_hdr_eng,
#year_hdr_yid, #year_list {
    display: none;
}


.poem_link {
 /*   padding-bottom: 5px; */
    display: block;
    vertical-align: middle;
    text-decoration: none;
    text-align: center;
    color:var(--con-blue);
    float: right;
    width: 100%;
}
button.poem_link {
    border: inherit;
    background: inherit;
    font-family: vilna;
    font-size: 1.3em;
    padding: inherit;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link_box {
    height: 75px;
    max-width: 95%;
    margin: 5px auto;
    border: 5px solid var(--main-blue);
}
.thumb {
    height: 75px;
    width: 75px;
    float: right;
}
.link_title {
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 25px auto;
    padding: 0px 5px;
}
ul.link_list, li.link_list{
    text-align: center;
    margin: 0 auto;
    vertical-align: middle;
    list-style-type: none;
    list-style-position: outside;
    padding: 5px;
}
div#alpha, div#alpha_eng, div#alpha_poet, div#alpha_poet_eng {
    z-index: 100;
    position: fixed;
    right: 5%;
    padding: 5px 0;
    width: 50px;
    max-height: 93%;
    margin: auto;
    text-align: center;
    overflow-y: auto;
    word-break: break-all;
    
    background-color: var(--sec-blue);
    color: #fff;
    border-radius: 6px;
    border: solid var(--main-blue);
}
div#alpha_eng, div#alpha_poet_eng {
    left: 5%;
    right: unset;
}
button#alpha_accordion, button#alpha_accordion_eng, button#alpha_accordion_poet, button#alpha_accordion_poet_eng, button.topper {
    display: inline-block;
    width: 80%;
    margin: 1px;
    padding: 0 2px;
    
    border: solid var(--sec-yellow);
    background-color: var(--sec-yellow);
    outline: none;
    
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}
div#alpha a, div#alpha_eng a, div#alpha_poet a, div#alpha_poet_eng a{
    display: inline-block;
    width: 10px;
    margin: 1px;
    padding: 0 3px;
    
    border: solid var(--main-yellow);
    background-color: var(--sec-yellow);
    color: var(--con-blue);
    border-radius: 6px;
    
    text-decoration: none;
    text-align: center;
    
    font-variant: all-small-caps;
    font-size: 22px;
    font-family: vilna;
    font-weight: bold;
}
a:target li div{
    background-color: rgba(215, 118, 137, .4);
}
button.clk_poet {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    font: inherit;
    padding: 0;
}
button.clk_poet:hover {
    color: var(--main-blue) !important;
}
img.rec_img {
    margin: auto;
    width: 50px;
    height: 50px;
}
.tippy-tooltip.oytser-theme {
    background-color:  var(--sec-blue);
    border: 2px solid var(--main-blue);
    font-weight: bold;
    font-size: medium;
    color: #333;
}
.tippy-tooltip.oytser-theme .tippy-roundarrow {
    fill: var(--main-blue);
}
#submit_poem_btn {
    width: 80%;
    height: 45px;
    background-color: var(--sec-blue);
    font-weight: bold;
    font-size: larger;
    margin: 5px;
    border: 5px solid var(--main-blue);
    font-family: times new roman;
    cursor: pointer;
    border-radius: 10px;
    margin: 6px auto;
    display: block;
}
.styles {
    margin: auto;
    padding: 10px;
}
.styles span {
    margin: 5px;
    width: 15px;
    height: 15px;
    display: inline-block;
    border-radius: 50%;
    border: solid var(--main-blue) 1px;
}
.dark_poem {
    background: #93a1a1;
}
.font_poem {
    background: var(--sec-yellow);
}
.expand_poem {
    background: var(--sec-red);
}
.styles span:active{
        box-shadow: 0 0 3px 3px var(--main-blue);
}
