/* 
    CSS for Gugu Badhun Login page
    Version: 1.0
*/

/* general */
* {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
html {
    scroll-behavior: smooth;
  }
.test{
    border: solid 2px red;
}
.ggb-bordershadow{
    border-radius: 0.3em;
    box-shadow:
        1.5px 2.6px 3.1px -8px rgba(0, 0, 0, 0.073),
        3.7px 6.2px 7.4px -8px rgba(0, 0, 0, 0.105),
        7px 11.6px 13.9px -8px rgba(0, 0, 0, 0.13),
        12.5px 20.8px 24.8px -8px rgba(0, 0, 0, 0.155),
        23.4px 38.9px 46.4px -8px rgba(0, 0, 0, 0.187),
        56px 93px 111px -8px rgba(0, 0, 0, 0.26); 
}

/* login page */
.ggb-logbox{
    position: absolute;
    max-width: 600px;
    min-width: 300px;
    background-color: #324444;
    color: white;
}
.ggb-logintitle{
    font-size: x-large;
}
.ggb-forminput{
    outline: none;
    border: white;
}
.btnlogin{
    font-size: large;
    font-weight: bold;
    background-color: black;
    border: solid 2px black;
    color: white;
    cursor: pointer;
}
.btnlogin:hover{
    border: solid 2px #324444;
}

/* header */
.ggb-bg-dark{
    background-color: #324444;
    /* border-bottom: solid 2px black;*/
}
.nav-item:hover{
    text-decoration: underline solid 3px white;
}

/* welcome [home] page */
.ggb-wimage{
    width: 100%;
    height: auto;
}
.ggb-bg{
    position: relative;
    z-index: 0;
}
.ggb-welcomelayer{
    position: absolute;
    z-index: 1;
}
.ggb-welcomebox{
    border-radius: 0.3em;
    background-color: #324444;
    color: white;
}

/* Dictionary */
.menucontainer{
    background-color: #324444;
    width: 100%;
    margin: 0 0;
    padding: 3px;
}
.logo{
    width: 100%;
}
.img-test{
    width: 35%;
    display: block;
    margin: 0 auto;
}

/* Dictionary - Alphabetical sort */
.AlphaBox{
    padding: 0 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}
.abtn{
    box-sizing: border-box;
    border: solid 2px #324444;
    appearance: none;
    border-radius: 0.3em;
    background-color: #324444;
    font-size: 110%;
    font-weight: bold;
    color: white;
    padding: 10px;
    cursor: pointer;
}
.abtn:hover{
    border: solid 2px white;
}
.anobutton{
    box-sizing: border-box;
    border: solid 5px grey;
    appearance: none;
    border-radius: 0.3em;
    background-color: grey;
    font-size: 110%;
    font-weight: bold;
    color: white;
    padding: 10px;
}

/* Dictionary - Categories */
.CatTitle{
    padding: 0 auto;
    height: auto;
}
.CatBox{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 5%;
}
.cbtn{
    box-sizing: border-box;
    border: solid 2px #324444;
    appearance: none;
    border-radius: 0.3em;
    background-color: #324444;
    font-size: 110%;
    font-weight: bold;
    color: white;
    padding: 10px;
    cursor: pointer;
    width: 180px;
    margin: 5px 2px 2px 5px;
}
.cbtn:hover{
    border: solid 2px white;
}

/* Dictionary - Categories Family */
.ggb-family-img{
    width: 100%;
}
.img-familytree{
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Dictionary - Search slider switch */
.switch{
    position: sticky;
    display: inline-block;
    width: 70px;
    height: 40px;
}
/* Dictionary - Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
/* Dictionary - The slider */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #324444;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 35px;
    width: 35px;
    left: 4px;
    bottom: 2px;
    background-color: black;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider {
    background-color: #dcdde1;
}
input:focus + .slider {
    box-shadow: 0 0 1px ;
}
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
/* Dictionary - Rounded sliders */
.slider.round {
    border-radius: 40px;
}
.slider.round:before {
    border-radius: 50%;
}

/* Dictionary - Search box and buttons*/
.SearchBtns{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
}
.switchlabel{
    font-size: small;
    font-weight: bold;
    padding: 1px;
    width: 100px;
    flex-grow: 0;
}
.seekbox{
    outline: none;
    border: 4px solid #324444;
    border-right: none;
    border-radius: 0.3em 0 0 0.3em;
    background: white;
    color: black;
    font-size: 130%;
    padding: 10px;
    cursor: pointer;
    flex-grow: 2;
}
.seekbox::-webkit-search-cancel-button{
    color: lightgray;
    /* need to correct by removing and recreating
        /* Remove default
        -webkit-appearance: none;
        /*Your new styles
        height: 10px;
        width: 10px;
        background: red;
    */
}
.seekbtn{
    box-sizing: border-box;
    appearance: none;
    border-radius: 0 0.3em 0.3em 0;
    border: solid 5px #324444;
    background-color: #324444;
    font-size: 130%;
    padding: 9px;
    color: white;
    width: 70px;
    cursor: pointer;
    flex-grow: 1;
    margin: 0 10px 0 0;
}
.seekbtn:hover{
    border: solid 5px black;
}
.clearbtn{
    box-sizing: border-box;
    appearance: none;
    background-color: black;
    border: 5px solid black;
    border-radius: 0.3em;
    color: white;
    font-size: 110%;
    font-weight: bold;
    padding: 10px;
    width: 180px;
    text-decoration: none;
    text-align: center;
    transition: box-shadow 100ms ease-in-out, color 100ms ease-in-out;
    cursor: pointer;
    flex-grow: 1;
    margin: 0 0px 0px 10px;
}
.clearbtn:hover {
    box-shadow: 0 0 40px 40px white inset;
    color: black;
  }
.clearbtn:focus {
        color: #fff;
        outline: 0;
}

/* Dictionary - Search results */
.resultsbox{
    width: 90%;
    margin:10px auto;
}
.ResultsTitle{
    color: #324444;
}
.results-3box-frame{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    height: auto;
}
.results-3box{
    box-shadow:
    1.5px 2.6px 3.1px -8px rgba(0, 0, 0, 0.073),
    3.7px 6.2px 7.4px -8px rgba(0, 0, 0, 0.105),
    7px 11.6px 13.9px -8px rgba(0, 0, 0, 0.13),
    12.5px 20.8px 24.8px -8px rgba(0, 0, 0, 0.155),
    23.4px 38.9px 46.4px -8px rgba(0, 0, 0, 0.187),
    56px 93px 111px -8px rgba(0, 0, 0, 0.26);
    border-radius: 0.3em;
    background-color: white;
    color: black;
    padding: 1%;
    margin: 1%;
    width: 31%;
}
.result-image{
    width: 95%;
    margin: 2% 3%;
    border-radius: 15px;
}
.resulticon{
    width: 4%;
    margin: 0 1% 0 1%;
    cursor: pointer;
}
.summarytext{
    font-style: italic;
    font-size: small;
}
.box3bold{
    font-weight: bold;
}
.box3text{
    font-weight: normal;
}
.box3cat{
    font-style: italic;
    text-align: center;
    color: darkgray;
}
#box-sound{
    width:90%;
    margin-left: 5%;
}
audio::-webkit-media-controls-mute-button, audio::-webkit-media-controls-volume-slider, audio::-webkit-media-controls-volume-slider-container{
    display: none !important;
}
audio::-webkit-media-controls-time-remaining-display, audio::-webkit-media-controls-current-time-display{
    display: none !important;
}

.readysearch{
    font-weight: bold;
    text-align: center;
    font-size: large;
    color: black;
}
/* Phrases page */
.phrases-frame{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    height: auto;
}
.phrases-1box{
    box-shadow:
    1.5px 2.6px 3.1px -8px rgba(0, 0, 0, 0.073),
    3.7px 6.2px 7.4px -8px rgba(0, 0, 0, 0.105),
    7px 11.6px 13.9px -8px rgba(0, 0, 0, 0.13),
    12.5px 20.8px 24.8px -8px rgba(0, 0, 0, 0.155),
    23.4px 38.9px 46.4px -8px rgba(0, 0, 0, 0.187),
    56px 93px 111px -8px rgba(0, 0, 0, 0.26);
    border-radius: 0.3em;
    background-color: white;
    color: black;
    padding: 1%;
    margin: 1%;
    width: 95%;
}
.text5x2grid{
    width: 95%;
    padding-left: 10%;
    display: grid;
    border: solid black 1px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    align-items: start;
    row-gap: 5px;
}
.text52aa{
    grid-column: 1 / span 1;
}
.text52ab{
    grid-column: 2 / span 1;
}
.text52ac{
    grid-column: 3 / span 1;
}
.text52ba{
    grid-column: 1 / span 1;
    grid-row: 2;
}
.text52bb{
    grid-column: 2 / span 1;
    grid-row: 2;
}
.text52bc{
    grid-column: 3 / span 1;
    grid-row: 2;
}
.text6x2grid{
    width: 95%;
    padding-left: 10%;
    display: grid;
    border: solid black 1px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    align-items: start;
    row-gap: 5px;
}
.text62aa{
    grid-column: 1 / span 1;
    border: solid black 1px;
}
.text62ab{
    grid-column: 2 / span 1;
}
.text62ac{
    grid-column: 3 / span 1;
}
.text62ba{
    grid-column: 1 / span 1;
    grid-row: 2;
}
.text62bb{
    grid-column: 2 / span 1;
    grid-row: 2;
}
.text62bc{
    grid-column: 3 / span 1;
    grid-row: 2;
}

/* About page */
.accordion-item{
    border-bottom: solid 1px #d4dbcf;
    outline: none;
}
.accordion-button:not(.collapsed){
    background-color: #d4dbcf;
    color: black;
    box-shadow: none;
}
.accordion-button:focus{
    border-color: none;
    box-shadow: none;
    outline: none;
}
.ggb-accordion{
    font-weight: bold;
    font-size: x-large;
}
.accordion-header{
    background: red;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23333' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' d='M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 0 1 0-2h6V1a1 1 0 0 1 1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
    transform: scale(.7) !important;
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23333' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' d='M0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
}
.text3x3grid{
    width: 90%;
    padding-left: 10%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: start;
    row-gap: 5px;
}
.text33aa{
    grid-column: 1 / span 1;
    font-weight: bold;
}
.text33ab{
    grid-column: 2 / span 1;
}
.text33ac{
    grid-column: 3 / span 1;
    font-weight: bold;
}
.text33ba{
    grid-column: 1 / span 1;
    grid-row: 2;
    font-weight: bold;
}
.text33bb{
    grid-column: 2 / span 1;
    grid-row: 2;
}
.text33bc{
    grid-column: 3 / span 1;
    grid-row: 2;
    font-weight: bold;
}
.text33ca{
    grid-column: 1 / span 1;
    grid-row: 3;
    font-style: italic;
}
.text33cb{
    grid-column: 2 / span 1;
    grid-row: 3;
}
.text1x3grid{
    width: 90%;
    padding-left: 10%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    align-items: start;
    row-gap: 5px;
}
.text13a{
    grid-column: 1 / span 1;
}
.text13b{
    grid-column: 1 / span 1;
    grid-row: 2;
}
.text13c{
    grid-column: 1 / span 1;
    grid-row: 3;
}
.text4x3grid{
    width: 100%;
    display: grid;
    grid-template-columns: 100px 100px 100px 350px;
    grid-template-rows: repeat(3, 20px);
    justify-content: center;
    align-items: start;
    row-gap: 5px;
    column-gap: 1px;
}
.text43aa{
    grid-column: 1 / span 1;
}
.text43ab{
    grid-column: 2 / span 1;
    font-weight: bold;
}
.text43ac{
    grid-column: 3 / span 1;
}
.text43ad{
    grid-column: 4 / span 1;
    font-weight: bold;
}
.text43ba{
    grid-column: 1 / span 1;
    grid-row: 2;
}
.text43bb{
    grid-column: 2 / span 1;
    grid-row: 2;
    font-weight: bold;
}
.text43bc{
    grid-column: 3 / span 1;
    grid-row: 2;
}
.text43bd{
    grid-column: 4 / span 1;
    grid-row: 2;
    font-weight: bold;
}
.text43c{
    grid-column: 1 / span 4;
    grid-row: 3;
    font-style: italic;
}

/* User management page */
.open-button{
    box-sizing: border-box;
    appearance: none;
    border-radius: 0.3em;
    background-color: black;
    border: solid 5px black;
    color: white;
    font-size: 120%;
    padding: 5px;
    width: 150px;
    margin: 0 10px 0 0;
    cursor: pointer;
}
.table-button-sm{
    border-radius: 0.3em;
    background-color: black;
    border: solid 5px black;
    color: white;
}

/* User management page - create form pop-up */
.form-popup{
  display: none;
  position: fixed;
  top: 16%;
  left: 22%;
  border-radius: 0.3em;
  background-color: white;
  border: solid 5px black;
  z-index: 4;
}
.form-container{
    max-width: 600px;
    padding: 10px;
}
.pop-subtitle{
    background-color: black;
    border-radius: 0.3em;
    font-size: 110%;
    color: white;
    position:relative;
    left: -20px;
}
.createlabel{
    margin: 10px 0;
}
.createfield{
    border-radius: 0.3em;
    background-color: lightgray;
    border: none;
    width: 300px;
    margin: 10px 0;
}
input:focus, textarea:focus{
    outline: solid 1px black;
}
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 1rem;
    height: 1rem;
    outline: solid 2px black;
    border-radius: 5px;
    vertical-align: -1px;
    color: black;
    transition: 0.5s all linear;
}
input[type="radio"]:checked{
    background-color: black;
    border-radius: 6px;
}
.form-pop-btns{
    display: flex;
    margin-right: 10%;
    justify-content: flex-end;
    gap: 20px;
}
.btnpopcreate{
    padding: 5px 10px;
    border-radius: 0.3em;
    background-color: black;
    border: solid 2px black;
    color: white;
    font-size: 110%;
}
.btnpopcreate:hover, .btnpopcancel:hover{
    border: solid 2px white;
}
.btnpopcancel{
    padding: 5px 10px;
    border-radius: 0.3em;
    background-color: lightgray;
    border: solid 2px lightgray;
    color: black;
    font-size: 110%;
}

/* Footer */
.ggb-footer{
    position: relative;
    z-index: 2;
}

/* Video Page */
.videobox{
    width: 90%;
    margin:10px auto;
}
.video-box-frame{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    height: auto;
}
.video-box{
    display: flex;
    border-radius: 0.3em;
    background-color: #d4dbcf;
    color: black;
    padding: 1%;
    margin: 2%;
    width: 45%;
}
.vid-story{
    width: 320px;
    height: 180px;
    margin-left: 10%;
}

/* Mobile devices */

@media screen
    and (device-width: 360px) 
    and (device-height: 640px) 
    and (-webkit-device-pixel-ratio: 3) 
    and (orientation: portrait) {

   
    }