/*
    Custom style sheets for the GEPHRAS project.
*/

/************************************************
*       Print styles                            *
************************************************/
@media print {
    body {
    	background-color: #FFFFFF!important;
    }

    body > div.nav-and-content-container > div:nth-child(-n+2) {
    	display: none;
    }

    body > div.nav-and-content-container > hr {
    	display: none;
    }

    i.fas.fa-volume-up {
    	visibility: hidden;
    }
}


/************************************************
*       Hiding Elements                         *
************************************************/
@media (max-width: 767px) {
    .hidden-on-phone {
        display: none;
    }
}
@media (min-width: 768px) {
    .hidden-on-desktop {
        display: none;
    }
}

/************************************************
*       General Styles                          *
************************************************/
.centered {
    text-align: center;
    justify-content: center;
}

.edit-control {
    color: red;
}

.inlined {
    display: inline !important;
}

/************************************************
*       Whole Page Styles                       *
************************************************/
body {
    background-color: #EEEEEE;
    height: 100%;
    min-height: 100%;
}

.nav-and-content-container {
    /*We have to subtract the height of the footer here,
    including padding and border size.*/
    min-height: calc(100vh - 76px); 
}

.fas {
    cursor: pointer;
}


/************************************************
*       Entry text styles                       *
************************************************/
.entry-text-remark {
    font-style: normal;
    color: #666666;
}

.lemma-translation-comment {
    color: #666666;
}

/************************************************
*       Buttons                                 *
* (taken from the PureCSS documentation)        *
************************************************/
.button-success,
.button-error,
.button-warning,
.button-secondary {
    color: white;
    border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.button-success {
    background: rgb(28, 184, 65);
}

.button-error {
    background: rgb(202, 60, 60);
}

.button-warning {
    background: rgb(223, 117, 20);
}

.button-secondary {
    /*background: rgb(202, 60, 60);*/

    background: rgb(66, 184, 221);
}

/************************************************
*       Navigation                              *
************************************************/
.navigation-container {
    min-height: 37px;
    background-color: #ADD8E6;
    /*background-color: #FFD8DC*/;
    border-style: none none solid none;
    border-width: 3px;
    border-color: #6495ED;
    /*border-color: #CE1124;*/
}

.navigation-container input[type="checkbox"] {
    display: none;
}

.navigation-item {
    font-weight: bold;
}

.nav-toggle-label {
    display: block;
    font-weight: bold;
    
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease-out;
}

.nav-toggle-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
}

.nav-toggle:checked + .nav-toggle-label + .nav-toggle-content {
    max-height: 350px;
}

.nav-link {
    color: #282828 !important;
}

.nav-language-flag {
    margin-left: 10px;
    height: 30px;
    cursor: pointer;
}

/************************************************
*       Search Bar                              *
************************************************/
.search-bar-text {
    min-width: 190px;
}

.search-bar-filter {
    min-width: 160px;
    max-width: 200px;
}

.special-keyboard-row {
    padding-bottom: 5px;
}

/************************************************
*       Main Content                            *
************************************************/
.content-container {
    padding-top: 16px;
    padding-left: 5px;
    padding-right: 5px;
}

/************************************************
*      Footer                                   *
************************************************/
.footer-row {
    height: 65px;
    width: 100%;

    padding-top: 10px;

    border-style: solid none none none;
    border-width: 1px;
    border-color: #6495ED;
    /*border-color: #CE1124;*/

    text-align: center;
    justify-content: center;

    color: #555555;
    background-color: #C9C9C9;
}

.footer-line {
    font-size: .8em;
}

/************************************************
*     Messages                                  *
************************************************/
.message {
    width: 100%;
    border-style: solid solid solid solid;
    border-width: 1.5px;
    padding: 5px;
}

.message-error {
    background-color: rgb(250, 150, 150);
    border-color: red;
    color: rgb(156, 4, 4);
}

/************************************************
*      Lemma details page                       *
************************************************/
.lemma-detail-table {
    min-width: calc(100% - 10px);
    table-layout: fixed;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 25px;
    /*display: flex;
    flex-flow: column;*/
}

.lemma-detail-table-search {
    min-width: calc(100% - 10px);
    table-layout: fixed;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.lemma-detail-audio-col {
    width: 50px;
}

.lemma-header {
    margin-bottom: 0;
}

.lemma-pronunciation {
    margin: 0;
    color: #666666;
}

.lemma-edit {
    margin-top: 0;
}

.lemma-detail-text-col {
    line-height: 125%;
    display: flex;
    flex-flow: column;
    flex: 0 0 25em;
    
}

.lemma-detail-and-translation-col-heading {
    margin-bottom: 0px;
}

.lemma-detail-example {
    margin-top: auto;
    margin-top: auto;
    padding-top: 5px;
    color: #666666; /* better would be gray like #696969 or even #464646 */
    font-size: 95%;
}

.lemma-detail-text {
    margin-top: auto;
    margin-bottom: auto;
}

.lemma-detail-translation {
    margin-top: auto;
    margin-bottom: auto;
}

.lemma-detail-translation-col {
    line-height: 125%;
    display: flex;
    flex-flow: column;
    flex-grow: 1;

}

.lemma-phrase-list {
    /*margin: 5px;*/
}

.lemma-type-description {
    margin-left: 5px;
    padding-left: 5px;
}

.image-description {
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: left;
    font-style: italic;
}

/************************************************
*      Toggles                                  *
************************************************/
.toggle-container {
    border-style: solid solid solid solid;
    border-radius: 5px;
    border-width: 1px;
    border-color: #AAAAAA;
    /*background-color: #f2f2f2;*/

    margin-bottom: 10px;
}

.toggle {
    display: none;
}

.toggle-label {
    display: block;
    font-weight: bold;
    font-size: large;
    
    text-align: left;
    cursor: pointer;

    background-color: #AAAAAA;

    padding: 5px;

    transition: all 0.25s ease-out;
}

.toggle-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
    background-color: #F5F5F5;
}

.toggle:checked + .toggle-label + .toggle-content {
    max-height: 20000px;
}

/************************************************
*      Modal Popups                             *
************************************************/
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    width: 50%;
    background-color: #C3DDE5;
}

.popup-controls {
    width: 100%;
}

.popup-close-button {
    right: calc(-100% + 20px);
    position: relative;
    font-size: 150%;
}

.popup-form-field {
    width: 100%;
}

.popup-form-field-shared {
    display: inline !important;
    min-width: 50%;
    max-width: 50%;
}
.popup-form-field-shared-sort {
    display: inline !important;
    min-width: 7%;
    max-width: 7%;
}
.popup-form-field-shared-file {
    display: inline !important;
    min-width: 25%;
    max-width: 25%;
}
.popup-form-field-shared-checkbox {
    display: inline !important;
    min-width: 25%;
    max-width: 25%;
}

.popup-form-legend {
    font-size: 150%;
    border-bottom: 1px solid #555555 !important;
}

/************************************************
*      Pagination                               *
************************************************/

.pagination {
    display: flex;
    justify-content: center;
    margin: 10pt;
  }
  
  .pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
  }
  
  .pagination-active {
    background-color: grey;
    color: white;
  }
  
  .pagination a:hover:not(.active) {background-color: #ddd;}
