/*         -----     start     -----         */

*{
    margin: 0;
}

:root{
    font: 16px Roboto;
    color: #3c3c3c;

    /* --text-color: #212529; */
    --text-color: #3c3c3c;
    --title-color: #212529;
    --header-color: #863232;
    --box-bg-color: rgba(163, 143, 119, .3);
    --box-bg-solid: rgb(196, 169, 134);
}


/*         -----     fonts     -----         */


@font-face {
    font-family: FakeSerif;
    src: url(../fonts/FakeSerif/Fake\ Serif.ttf);
}

@font-face {
    font-family: typewriter;
    src: url(../fonts/Leorio/Leorio.ttf);
}


/*         -----     main template -- header    -----         */


html, body{
    height:100%;
}

body{
    background-color:tan !important;
}

h1, h2, h3{
    color: var(--title-color);
}

header {
    position: relative;
    height: 200px;
    background-color: transparent;
    background-size: 100% auto; /* Ensure the entire image is visible */
    background-position: top; /* Center it horizontally and vertically */
    background-repeat: no-repeat;
    width: 100%;
    z-index: 9;
}

#bg2 {
    position: absolute;
    width: 100%;
    height: 100%;
}

#bg {
    display: none;
    position: absolute;
    width: 100%;
    height: 480px;
    object-fit: fill;
    z-index: 9;
}

#logo {
    position: relative;
    height: 100%;
    z-index: 10;
}

.sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100vh;
    width: 10px; 
    background-color: var(--header-color);
    z-index: 1000;
}


/*         -----     navigation menu     -----         */


.p-menu1{
    height: 100%;
}

.hamdiv{
    position: relative;
    float: right;
    margin-right: 7px;
    z-index: 120;
    cursor: pointer;
}

.hamburger1 {
    cursor: pointer;
    float: right;
    height: 45px;
    width: 45px;
    margin: 5px;
    display: -ms-grid;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    justify-items: center;
    z-index: 120;
}

.hamburger1 div {
    background-color: rgb(61, 61, 61);
    position: relative;
    width: 40px;
    height: 5px;
    margin-top: 7px;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

#toggle1 {
    display: none;
}

#toggle1:checked + .hamburger1 .top {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    margin-top: 22.5px;
}

#toggle1:checked + .hamburger1 .meat {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-top: -5px;
}

#toggle1:checked + .hamburger1 .bottom {
    -webkit-transform: scale(0);
    transform: scale(0);
}

#menu{
    position: relative;
}

.navdiv{
    text-align: center;
    font-size: 1.3em;
    position: absolute;
    border: 2px solid var(--header-color);
    border-radius: 2px;
    background-color: var(--box-bg-color);
    width: 85px;
    height:0px;
    left: 90%;
    top: -190px;
    -webkit-transition: top 0.5s ease-in-out, transform 0.3s ease-in-out;
    transition: top 0.5s ease-in-out, transform 0.3s ease-in-out;
    z-index: 1;
}

.navdiv:nth-of-type(1):hover{
    transform: rotate(-3deg) scale(0.9) !important;
}

.navdiv:nth-of-type(2):hover{
    transform: rotate(6deg) scale(0.9) !important;
}

.navdiv:nth-of-type(3):hover{
    transform: rotate(-8deg) scale(0.9) !important;
}

.navdiv .link{
    line-height: 40px;
}

.link{
    display: block;
    height: inherit;
    color: var(--text-color);
    text-decoration: none;
}


/*         -----     main template -- main     -----         */


main{
    background-color:tan;
}

.full-height{
    min-height: calc(100vh - 200px - 15.2px - 14px);
}

#accountlinkdiv{
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    font-size: 0.8em;
    position: fixed;
    background-color: var(--header-color);
    right: 0px;
    bottom: 0px;
    width: 120px;
    height: 15px;
    padding-left: 15px;
    z-index: 10;
    border-top-left-radius: 8px;
}


/*         -----     landing page     -----         */


#intro{
    border: 3px solid var(--header-color);
    border-radius:20px;
    padding: 30px 30px;
    background-color: var(--box-bg-color);
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;
    width: 70%;
}

.pb-3{
    padding-bottom: 1rem !important;
}

.pt-3{
    padding-top: 1rem !important;
}


/*         -----     .erin     -----         */


.button-bar{
    display: flex;
    justify-content: center;
    height: 30px;
    gap: 13px;
}

.button{
    padding: 2px 16px;
    width: 100px;
    align-self: center;
    border: 2px solid #d0d0d0;
    outline: none;
    border-radius: 10px;
    color:#3c3c3c;
    font-weight: 400;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.a-button{
    text-decoration: none;
    text-align: center;
    margin-bottom: 7px;
}

#erinnen{
    padding: 20px;
    width: 70%;
    margin: 0 auto;
    background-color: var(--box-bg-color);
    border: 3px solid var(--header-color);
    border-radius: 5px; 
}


/*         -----     .erin detailed view     -----         */


.info-bar{
    display: flex;
    justify-content: center;
    position: relative;
}

.info-for-in-bar{
    display: flex;
    justify-content: center;
    flex: 1; /* take available space so it stays centered */
    gap: 4px;
}

.dv-button{
    position: absolute;
    right: 0;
}

.form-bar{
    display: flex;
    justify-content: center;
    height: 30px;
}

.form-bar select{
    height: 20px;
}

.pagbar nav{
    min-height: 35px;
    margin-top: 0px !important;
}

#dv-table{
    border-spacing: 0;
    width: 100%;
    height: 100%;
}

#dv-table thead{
    background-color: var(--header-color);
    color: var(--title-color);
}

#dv-table td{
    height: 40px;
    padding: 3px;
    padding-left: 0.4em;
}

#dv-table .grapje{
    width: 420px;
}

#dv-table tr:nth-child(even){
    background-color: rgba(163, 143, 119, .4);
}


/*         -----     pagination     -----         */


.pagination{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a, .pagination .disabled{
    text-align: center;
    padding: 0 2px;
    min-width: 20px;
    height: 24px;
    margin: 0 2px 2px 2px;
    display:block;
    text-decoration: none;
    align-self: center;
    border: 2px solid #d0d0d0;
    outline: none;
    border-radius: 4px;
    color:#3c3c3c;
    font-weight: 400;
    background: white;
    cursor: pointer;
    line-height: 24px;
}

.next, .prev, .last, .first{
    font-size: 1.3em;
}

.pagination .disabled{
    pointer-events: none;
    color:#d0d0d0 !important;
}

.pagination .ellipsis {
    padding: 8px 12px;
    color: #555;
}

.active{
    border: 2px solid var(--header-color) !important;
    pointer-events: none; 
}


/*         -----     phrases     -----         */


#phrase-button{
    width: 125px;
}

.phrase{
    width: 75%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.p-title-box{
    display: flex;
    justify-content: space-between;
}

.phrase h2{
    width: 90%;
    font-family: FakeSerif;
    font-size: 2.7em;
    padding-top: 7px;
    padding-left: 2%;
    border-top: 1px solid rgb(61, 61, 61);
    border-top-left-radius: 14px;
}

.phrase .edit-button{
    height: fit-content;
    place-content:center;
    margin: auto 0;
    margin-right: 1%;
}

.phrasebox{
    min-height: 100px;
    border: 2px solid var(--header-color);
    background-color: var(--box-bg-color);
    border-radius: 5px;
    padding: 5px;
}

.bodybox{
    font-family: typewriter;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.count{
    text-align: right;
    padding-right: 6px;
}


/*         -----     forms     -----         */


.feedback{
    text-align: center;
}

.error{
    margin-bottom: 20px;
    text-align: center;
    color: #c83a3a; 
    font-size: 1.2em;
    text-decoration: underline;
}

#nomoji{
    display: none;
}

#nomoji.unhide{
    display: block;
}

#invalid-box{
    width: 90%;
    margin: 0 auto;
}

.invalid{
    text-align: center;
    display: none;
    color:#c83a3a;
}

.invalid.unhide{
    display: block;
}

#inv-po{
    font-size: 0.7em;
}

#form-div{
    width: 70%;
    margin: 0 auto;
}

#form-div.phrase-form-div{
    width: 75%;
}

.backlink{
    display: block;
    height: inherit;
    color: var(--text-color);
    text-decoration-color: var(--text-color);
    width: fit-content;
}

#form-div h1{
    text-align: center;
}

#form-div input{
    box-sizing: border-box;
    border: 1px solid var(--header-color);
    border-radius: 3px;
    background-color: var(--box-bg-solid);
    color: var(--title-color)
}

#form-div input:-webkit-autofill,
#form-div input:-webkit-autofill:hover,
#form-div input:-webkit-autofill:focus{
    -webkit-box-shadow: 0 0 0 1000px var(--box-bg-solid) inset !important; /* your background */
    box-shadow: 0 0 0 1000px var(--box-bg-solid) inset !important;
    -webkit-text-fill-color: var(--title-color) !important; /* text color */
    caret-color: var(--title-color) !important;
}

#form-div input:focus {
    outline: none;
    border: 1px solid #370000;
}

#form-div select{
    padding-inline: 3px;
    border: 1px solid var(--header-color);
    border-radius: 2px;
    background-color: var(--box-bg-solid);
    appearance: none;
    background-image: url(../images/arrows.svg);
    background-repeat: no-repeat;
    background-position: 100%;
    background-size: 20px; 
}

#form-div select:focus {
    outline: none;
}

.pageform{
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    width: 60%;
}

#phrase-form{
    width: 100%;
}

#phrase-form .inputpair{
    width: 60%;
}

.erinputpair{
    justify-content: center !important;
    gap: 5px;
}

#erinput{
    width: 80%;
}

.body-inputpair{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    width: 80%;
    margin: 0 auto;
    margin-top: 10px;
}

.body-inputpair label{
    font-size: 1.2em;
    text-align: center;
}

textarea{
    width: 100%;
    height: 170px;
    resize: none;
}

textarea:focus{
    outline: none;
    border-color: #370000;
}

.inputpair{
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
}


.pageform input{
    min-width: 50%;
}

#remember{
    margin: 0 auto;
    margin-top: 10px;
}

#checkbox{
    min-width: unset !important;
}

#selectpair{
    width: 50%;
    margin: 0 auto;
    text-align: center;
}

.pageform select{
    width: 100%
}

.pageform a{
    align-self: flex-end;
    margin-right: 10px;
}

.formButtonDiv{
    display: flex;
    justify-content: space-evenly;
}

.form-submit{
    margin-top: 10px;
}

.button:hover{
    transform: translateY(2px);
}

.vertical-spacer{
    height: 10px;
}

.grecaptcha-badge{
    bottom: 40px !important;
}


/*         -----     account     -----         */


#accountbox{
    padding: 5px;
    width: 90%;
    margin: 0 auto;
    background-color: var(--box-bg-color);
    border: 3px solid var(--header-color);
    border-radius: 5px;
}

#acc-tophalf{
    display: flex;
    gap: 10px;
    position: relative;
    flex-wrap: wrap;
}

#pfp-box{
    height: 160px;
    width: 160px;
}

#pfp-box img{
    border-radius: 5%;
    display: inline-block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#identity{
    height: 172px;
    padding-right: 10px;
    position: relative;
    width: 68%;
}

#identity h1{
    border-bottom: rgb(61, 61, 61) solid 1px;
}

#biobox{
    display: flex;
    justify-content: space-between;
}

#bio-pre{
    overflow: hidden;
    height: 130px;
    text-wrap: auto;
    width: 100%;
}

#identity .edit-button{
    place-content: flex-end;
}

.edit-button{
    color:rgb(85, 85, 85)
}

#linediv{
    position: absolute;
    background-color: rgb(61, 61, 61);
    height: 1px;
    width: 90%;
    bottom: 3px;
}

#account-info{
    margin-top: 0;
    margin-bottom: 10px;
    width: fit-content;
    height: fit-content;
    width: 40%;
    margin-left: 2%;
    border-spacing: 0;
}

#account-info tr{
    height: 30px;
    line-height: 1.2em;
    vertical-align: bottom;
}

#account-info td{
    border-bottom: rgb(61, 61, 61) solid 1px;
}

.info-cat{
    color: var(--title-color);
    font-size: 1.2em;
    font-weight: bold;
}

.edit{
    border-bottom: unset !important;
}

#rolebox{
    position: absolute;
    right: 0;
    flex: 1;
}

#role-a{
    text-decoration: none;
}

#role{
    text-align: right;
}

#acc-bothalf{
    display: flex;
}

#logout-box{
    position: relative;
    flex: 1;
}

.logout{
    text-decoration: none;
    color: rgb(70, 70, 70);
    position: absolute;
    bottom: 0;
    right: 0;
}


/*         -----     footer     -----         */


footer{
    color: var(--title-color);
    display:flex;
    justify-content: center;
    text-align: center;
    margin-top: 14px;
}

footer p{
    padding: 0 20px;
    background-color: var(--header-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 13px;
}


/*        -----        responsiviteit        -----         */


@media screen and (min-width: 769px) {
    .small{
        display: none !important;
    }
}

@media screen and (max-width: 1130px) {
    .loggedin{
        width: 70px !important;
    }
}

@media screen and (max-width: 900px) {
    .navdiv{
        width: 70px;
        font-size: 1.1em;
    }
}

@media screen and (max-width: 768px) {
    .big{
        display: none !important;
    }

    .small{
        display: block;
    }


    /*         -----     R. header/nav     -----         */


    header {
        height: 100px;
    }

    #small-menu{
        position: relative;
    }

    #nav-small{
        z-index: 1;
        position: absolute;
        top: -200px;
        display: flex;
        justify-content: space-evenly;
        width: 90%;
        padding: 0 5%;
        padding-top: 100px;
        margin: 0 auto;
        font-size: 1.2em;
        border-bottom: 3px double var(--header-color);
        margin-bottom: 5px;
        background: linear-gradient(0deg, rgba(107, 94, 78, 0.9) 0%, rgba(163, 143, 119, .1) 100%);
        -webkit-transition: top 0.5s ease-in-out;
        transition: top 0.5s ease-in-out;
    }

    #nav-small.move-down{
        top: -100px;
    }

    #nav-small a{
        color:#cdcdcd !important;
    }

    .sidebar{
        width: 5px;
    }


    /*         -----     R. main/content     -----         */


    main{
        position: relative;
    }

    .full-height{
        min-height: calc(100vh - 100px - 15.2px - 14px);
    }

    .content{
        width: 100%;
        -webkit-transition: margin-top 0.5s ease-in-out;
        transition: margin-top 0.5s ease-in-out;
    }

    .content.move-down{
        margin-top: 50px;
    }


    /*         -----     R. .erin/detailed view     -----         */


    #intro, #erinnen{
        width: 90%;
        padding: 8px;
    }

    .form-bar{
        height: 24px;
    }

    .dv-button{
        top: -26px;
        border: 2px var(--header-color) solid;
        margin-bottom: 0;
        right: unset;
    }

    .dv-search{
        border-radius: 4px;
        width: fit-content;
        height: 22px;
        margin-top: 2px;
    }

    .info-bar{
        margin-top: 4px;
    }

    .infotext{
        font-size: 1.2em;
    }

    #dv-table{
        margin-top: 6px;
    }

    #dv-table td{
        font-size: 0.7em;
        height: 40px;
    }

    #dv-table .grapje{
        width: 45%;
    }


    /*         -----     R. login/register     -----         */


    #form-div{
        width: 90%;
    }

    .pageform{
        width: 85%;
    }


    /*         -----     R. phrases     -----         */


    .phrase{
        width: 90%;
    }

    .phrase h2{
        font-size: 1.7em;
    }


    /*         -----     R. account     -----         */


    #acc-tophalf{
        gap: 3px;
    }

    #pfp-box{
        width: 100px;
        height: 100px;
    }

    #identity{
        height: 160px;
    }

    #identity h1{
        line-height: 1em;
        font-size: 1.5em;
    }

    .info-line{
        padding: 0 10px;
    }
}

@media screen and (max-width: 393px) {
    #pfp-box{
        width: 28%;
        height: auto;
    }

    #pfp-box img{
        height: unset;
    }
}