/* The Modal (background) */
html {
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape while allowing user zoom */
}

#modal-wrapper {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 999;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /*Fallback color */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    opacity: 1;
}

.modal-body {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /*font-family: Roboto;*/
}

.highcharts-container {
    display: flex;
    justify-content: left;
    align-content: center;

}

#modal-wrapper.show {
    display: table;
    table-layout: fixed;
    opacity: 0;
}

#modal-wrapper>div {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

#modal-wrapper>div>* {
    text-align: left;
}

.tippy-popper {
    max-width: 235px;
    margin-right: 15px;
}

/* Modal Content/Box */
.modal {
    display: none;
    background-color: #ffffff
        /*rgb(82, 84, 80);*/
        /*background-image: linear-gradient(#525450, #545652, #575954, #5d6053)*/
    ;
    margin: 0 auto;
    /* 15% from the top and centered */
    padding: 0.938em;
    max-width: 28.875em;
    /* Could be more or less, depending on screen size */
    /*box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);*/
    font-size: 0.875em;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    max-height: 100vh;
    overflow: auto;
}

#modal-share.modal,
#modal-hist.modal {
    margin-top: 35px;

}

.modal.active-modal {
    display: block;
}

.modal-header {
    color: #2b8815;
    font-size: 18px;
    /*margin-bottom: 1em;*/
    /*text-shadow: 1px 2px 2px rgba(0,0,0,.3);*/
    /*padding-left:0.750em;*/
    display: flex;
    justify-content: space-between;
    padding-left: 10px;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 8px;
}

.modal-body {
    background: #fff;
    padding: 0.750em;
    border-radius: 2px;
    max-height: 40.625em;
    max-width: 100%;
    overflow: auto;
}

a.mobile-hist {
    border-bottom: 1px solid #edbf26;
    padding: 3px;
    padding-bottom: 0%;
    margin-right: 5px;
    transition: color 500ms ease-in-out;
    transition: transform 250ms ease-in-out;
}



/* The Close Button */
#close-modal {
    color: #4E992E;
    float: right;
    font-size: 22px;
    font-weight: bold;
    /*text-shadow: 1px 2px 2px rgba(0,0,0,.3);*/
    margin: -9px -10px -9px auto;
    padding: 6px 10px;
    transition: all 0.3s ease-in-out;
}

#close-modal:hover,
#close-modal:focus {
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.2);
}

.modal-header>a {
    color: #a8a8a8
        /*#cccccc*/
    ;
    margin-right: 0.625em;

}

.modal-header>a:hover {
    text-decoration: none;
    cursor: pointer;
    /*text-shadow:2px 7px 5px rgba(0,0,0,0.3), 
    0px -4px 10px rgba(255,255,255,0.3);*/
    color: #2b8815;


}

.modal-header>a.active-modal-tab {
    color: #2b8815;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}
#modal-share > .modal-header a, #modal-cite > .modal-header a {font-size:18px;}
a.mobile-hist.active-modal-tab {
    border: 1px solid #edbf26;
    background-color: #edbf26;
    color: #525450;
}

/* Histogram modal */
#modal-hist.active-modal {
    max-width: 95%;
    display: inline-block;
}

rect.highcharts-point-hover {
    cursor: pointer;
}

svg.histLegend>text {
    cursor: pointer;
}


/* Share modal */
#share-form #share-tip {
    /*margin-bottom:0.938em;*/
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

#share-form input[type='text'],
#share-form input[type='email'],
#share-form textarea {
    border: 1px solid lightgray;
    padding: 7px 10px;
    border: 1px solid #cccccc;
    transition: background .35s ease-in;
    /*margin-top:7px;*/
    margin-bottom: 7px;
    width: 100%;
    font-size: 0.875em;
}

#share-form label {
    font-size: 1em;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
    display: inline-block;
}

#cc-label {
    padding-bottom: 0.938em;
}

#share-form input:focus,
#share-form textarea:focus {
    border: 1px solid #747474;
    -webkit-box-shadow: 0px 0px 3px 0px rgb(132, 132, 132);
    -moz-box-shadow: 0px 0px 3px 0px rgb(132, 132, 132);
    box-shadow: 0px 0px 3px 0px rgb(132, 132, 132);
}

#share-form button {
    background-color: rgba(78, 153, 46, 1);
    border: 2px solid transparent;
    color: #fff;
    /*background-color:#edbf26;*/
    padding: 5px 15px;
    /*color:#fff;*/
    width: 35%;
    text-align: center;
    font-size: 18px;
    margin-bottom: 0.5em;
    margin-top: 1em;
}

#share-form button:hover {
    /*box-shadow:0 8px 10px 0 rgba(0,0,0,0.2);
	color: #525450;*/
    background-color: #fff;
    border: 2px solid #4E992E;
    color: #488D2A;
}

#share-form .cc-wrapper {
    display: flex;
    width: 100%;
    margin-top: 7px;
}

#share-form .cc-wrapper button {
    background: none;
    padding: 5px 15px;
    color: tomato;
    font-weight: bold;
}

#share-form .cc-wrapper input {
    margin: 0;
}

#share-cc {
    font-size: 0.750em;
    padding: 3px 5px !important;
    float: right;
    font-family: "Roboto";
}

#share-form label>sup {
    color: tomato;
    padding-left: 2px;
}

#share-form sup {
    color: tomato;
    padding-left: 2px;
}

#copy-link-url {
    width: 100%;
    border: none;
    padding: 5px 0;
    font-size: 1em;
}

#id_user_message {
    font-family: "Open Sans";
    font-size: 0.750em
}

/* Cite modal */
.MLA,
.Chicago,
.APA {
    font-size: 14px;
}

/* Biblio modal */
div.biblio-bibEntry {
    padding: 1em;
    padding-left: 3.5em;
    text-indent: -3.5em;
}

div.biblio-hanging-indent {
    text-indent: -3.5em;
}

div.biblio-align-right {
    text-align: right;
}

span.biblio-repeating-author-dash {
    font-family: Arial
}

.modal-body .biblio-bibEntry {
    background: #fff;
    padding: 5px 10px 10px 80px;
    border-radius: 2px;
    text-indent: -5.5em;
    font-size: 14px;
    line-height: 1.8;
}

.modal-body .biblio-author {
    font-variant: small-caps;
}


/*  IPA modal */
#modal-IPA {
    font-family: Arial;
    font-size: 16px;
}

#modal-IPA>div.modal-header {
    color: #B22222;
}

.IPA-row {
    color: #999999;
}

.IPA-example {
    color: #2a2a2a;
    font-size: 16px;
}

.modal-body .IPA-cell {
    padding-right: 5px;
    padding-bottom: 2px;
    padding-left: 0px;
    line-height: 1.8em;
    vertical-align: text-top;
}

/*width of the IPA-cell column*/
tr.IPA-row:nth-child(1)>td:nth-child(1) {
    width: 2.5em;
}

.go-to {
    font-size: 14px;
    margin-top: 5px;
    text-align: right !important;
    padding-right: 10px;
}

#id_user_message {
    resize: none;
}

#show-more {
    fill: #A30434;
    font-size: 13px;
}

.show-more:hover {
    text-decoration: underline;
}

/*border*/
.tippy-tooltip {
    background: rgba(247, 247, 247, 0.85);
    border-radius: 2px;
    color: #333;
    box-shadow: 0 3px 14px -.5px rgba(0, 8, 16, .1);
    text-align: left;
    font-family: Lucida Grande, Lucida Sans Unicode, Arial, Helvetica, sans-serif;
    font-size: 12px;
    padding-top: 0.4em;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 10px;
    left: 8px;
    top: 8px;
}

.tippy-tooltip .tippy-backdrop {
    border: 4px solid #000;
}

.tippy-tooltip .tippy-roundarrow {
    fill: rgba(247, 247, 247, 0.85);
}

.tippy-tooltip[data-animatefill] {
    background-color: transparent
}

.tippy-tooltip .tippy-arrow {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d
}

.tippy-tooltip .tippy-arrow:after {
    content: "";
    position: absolute;
    left: -8px;
    -webkit-transform: translateZ(-1px);
    transform: translateZ(-1px);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent
}

.tippy-popper[x-placement^=top] .tippy-tooltip .tippy-arrow {
    border-top-color: rgba(247, 247, 247, 1);
}

/*border*/
.tippy-popper[x-placement^=top] .tippy-tooltip .tippy-arrow:after {
    top: -7px;
    /*border-top:8px solid blue;*/
}

#headword {
    text-align: center;
    margin-top: 0px;
    /* this font-size controls the size of the comma */
    font-size: 24px;
    color: #B22222;
    line-height: 120%;
    margin: 0 auto;
}

/* this controls the headword */
#headword>span.hw {
    font-size: 1.250rem;
}

#headword>span.ps {
    font-style: italic;
}

#headword>span.gr {
    font-style: italic;
}

#headword>span.grGroup {
    font-style: normal;
}

/* this controls the parts of speech */
#headword>span.hg-ps,
#headword>span.hg-psGroup>span.hg-ps {
    font-size: 1rem;
    font-style: italic;
}

#headword>span.hg-gr {
    font-style: italic;
}

/* this controls the homonym numbers */
#headword>span.hg-homonym,
#headword>span.hg-psGroup>span.hg-homonym {
    font-size: small;
    vertical-align: super;
    font-weight: normal;
    font-style: normal;
}

/* this controls the conjunctions */
#headword>span,
#headword>span.hg-psGroup>span {
    font-size: 16px;
}

/* this lays out the histogram in desktop view */
.instructions {
    font-size: 0.875rem;
    padding-left: 0.750rem;
    padding-top: 1em;
    padding-bottom: 1em;
}

.instructions-mobile {
    display: none;
}

/* styling for mobile view of histogram */
.mobile-hist {
    display: none;
}

#legend {
    width: 98px;
    /*display: inline-block;
    vertical-align: middle;*/
}

.legend-rect {
    stroke: #808080;
}

.legend-label {
    fill: #808080;
    font-size: 14px;
    border: none;
}

div.desktop-hist {
    /*    display: inline-block;
    vertical-align: middle;*/
    display: inline-block;
}


.legend-container {
    width: 96px;
    height: 22px;
}

#modal-hist>.modal-body {
    padding-bottom: 0.5em;
    padding-top: 0.1em;
    padding-right: 0.1em;
    padding-left: 0em;
}

.hist-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
    overflow-x: hidden;
}

/* .highcharts-container {
    margin-right: 10px;
} */

.legend-container {
    width: 98px;
    height: 22px;
}


#modal-hist>.modal-body {
    padding-bottom: 0.5em;
    padding-top: 0.1em;
    padding-right: 0.1em;
    padding-left: 0em;
}

/*Start of offensive modal css*/


.modal_pop{
	
	display: flex;
	flex-direction: column;
	/*justify-content: center;*/
	gap: 1rem;
	/*width: 420px;*/
	padding: 2rem;
	min-height: 250px;
	
	top: 30%;
	right: 50%;
   	background-color: #fff;
	border-radius:2px;
	margin: 0 auto;
	/*box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);*/
	box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
	/*box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;*/
    font-size:0.875em;
	z-index: 999 !important; /* Sit on top */
    left: 30%;
    
}

.off_Model{

	display: none;
}
.disable_link{
	pointer-events: none;
    opacity: 0.5;
}

.modal_btm{
	display: flex;
	justify-content: space-between;
	margin-left:1em;
	margin-right:1em;
}
.modal_go_to{
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Roboto';
	font-size:14px;
}
.modal_go_to,.close-modal{
	float: left ;
	text-decoration:none;
}

.modal_pop p {
	font-size:14px;
	background:#fff;
    border-radius:2px;
    max-height:40.625em;
    max-width:100%;
    overflow:auto;
    margin-top:0em;
  }
.offensive_modal >.modal_btm> button{
  	font-size:16px; /*18px*/
  	width: 40%;
  	line-height:3;
   }

.close-modal{
	font-size: 14px;
	font-family:'Roboto';
    /*text-shadow: 1px 2px 2px rgb(0 0 0 / 30%);*/
    padding: 6px 10px;
    border-radius: 5px;
    border: 2px solid transparent;
	box-sizing: border-box;
 	color: #ffff /*#007f00 #367C2B*/;
 	background-color: rgba(78, 153, 46, 1);
    cursor: pointer;
    display: inline-block;
	/*font-size: 13px;*/
    line-height: 3;
    padding: 0 10px 0 11px;
    text-decoration:none;

}
.modal_btm>.close-modal:hover,
.modal_btm>.close-modal:focus {
    text-decoration: none;
    cursor: pointer;
    background-color: #fff;
	border:2px solid #4E992E;
	color:#488D2A;
}

.header-modal-offensive {
	color: #2b8815 /*#4E992E*/;
	font-family:Roboto;
    font-size: 18px;
    /*margin-bottom: 0.625em; /*10px*/
    /*text-shadow: 1px 2px 2px rgb(0 0 0 / 30%);*/
    display: inline-block;
    justify-content: center;
    padding-left:10px;
    border-bottom:1px solid #cccccc;
    padding-bottom:8px;
}



/*end of offensive modal css*/



/* this controls the layout and styling of histogram in mobile view */
/* breakpoint at 1000px because this is where we are guaranteed to fit in desktop histogram */
@media only screen and (max-width: 1080px) {

    a.mobile-hist {
        display: inline;
    }

    div.active-modal-tab {
        display: initial;
        /*vertical-align: middle;*/
    }

    div.desktop-hist {
        display: none;
    }

    .instructions.desktop-hist {
        display: none;
    }


    .instructions-mobile {
        display: flex;
        justify-content: center;
        margin-top: 1em;
        font-size: 0.875rem;
            /*0.750rem;*/
        padding-left:0.750rem;
    }
    .all_centuries.active-modal-tab ~  #legend{
       top: 95%;
       display: flex;
       flex-direction: row;
       flex-wrap: wrap;
       width: 200%;
       justify-content: center;
       padding-bottom: 5px;
       padding-top: 10px;

   }
   .all_centuries.active-modal-tab ~  #headword > span.hw{
       font-size: 1rem;
   }
    .modal-header > a {
        margin-right: 0px;
        font-size: 16px;
    }
    #modal-share > .modal-header a,
    #modal-cite > .modal-header a  {
        margin-right: 26px;
        font-size: 16px
    }
    .modal-body {
        position: relative;
    }


/*    .modal-body > div:not(.instructions) {
        text-align: center;
    }*/

            /* N.B. Important that this rule is below rule for a.mobile-hist
    in media query to make sure it overrides. */
     a.mobile-hist.disabled-modal-tab {
            display: none;
        }

    #headword {
            position: relative;
            margin-bottom: 1rem;
        }
    }

    @media only screen and (min-width:360px) {
        a.mobile-hist {
            flex-grow: 1;
            padding: 7px;
            text-align: center;
            max-width: 80px;
        }

        @media only screen and (min-width:360px) and (max-width: 1115px) {
            #modal-wrapper>#modal-inner-wrapper {
                display: flex;
                width: 100%;
                align-items: center;
                justify-items: center;
            }

            #modal-hist.modal {
                flex-grow: 1;
            }

            #modal-wrapper.show {
                display: flex;
                align-items: center;
                justify-items: center;
            }

            div.active-modal-tab {
                display: flex;
                justify-content: left;
                flex: 1;
                width: 100%;
            }

            .highcharts-container {
                width: 100%;
            }

            div.active-modal-tab {
                display: flex;
                justify-content: left;
                flex: 1;
                width: 100%;
            }

            .modal_pop {

                width: 420px;
            }

            .highcharts-container {
                width: 100%;
            }

        }
    }

    @media only screen and (min-width: 1200px) {
        .hist-container {
            justify-content: center;
        }

        .instructions {
            text-align: center;
        }

        .modal_pop {

            width: 420px;
        }
    }

    .instructions {
        text-align: center;
    }
}

@media only screen and (min-width: 1200px) {
    .hist-container {
        justify-content: center;
    }

    .instructions {
        /*text-align: center;*/
    }

    .modal_pop {
        margin-left: 5%;
        width: 420px;
    }
}

.instructions {
    /*text-align: center;*/
}
@media only screen and (min-width: 1115px){
    .modal_pop {

        width: 420px;
    }

}
@media only screen and (max-width: 359px) {

    /*     div#legend {
        display: none;
    } */
    .modal-body {
        display: flex;
        flex-direction: column;
        /*   justify-content: center; */
    }

    .modal_pop {
	
        width: 95%;
    }

    .highcharts-container {
        display: flex;
        justify-content: left;
        align-content: center;

    }

    div.instructions {
        display: none;
    }

    /*
    position: absolute;
left: 8%;
top: 83%;
    */
}

@media only screen and (min-width: 1280px) {
    div.desktop-hist {
        display: inline-block;
        vertical-align: middle;
    }
    .modal_pop {

        width: 420px;
    }

}

@media only screen and (max-width: 480px) {

    #modal-share.modal,
    #modal-hist.modal {
        margin-top: 26px;
    }
    .modal_pop {
		padding:1em;
        width: 95%;
    }
}

@media only screen and (max-width: 360px) {

    #modal-share.modal,
    #modal-hist.modal {
        margin-top: 30px;
    } 
    .offensive_modal >.modal_btm> button{
  	font-size:14px; /*18px*/
 
}