html * {
  font-family: 'Lato', Calibri, Helvetica, Arial, sans-serif !important;
  margin: 0;
  /*background-color: red;*/
}

body {
    /*overflow-x: hidden;*/
    /*width: 950px;*/
    width: 100%;
    overflow-y: auto;
    text-align: center;
    /*border: 10px solid green;*/
}

img {
    user-select: none;
}

a {
    text-decoration: none;
    color: #76644e;
}

a:hover {
    text-decoration: underline;
    text-decoration-color: #998265;
}

pre {
    white-space: pre-wrap !important;
}

#page {
    /*width: 950px;*/
    width: fit-content;
    /*width: 100%;*/
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0 auto;
  /*border: 1px solid red !important;*/
  /*  border: 2px dashed black;*/
  /*background-color: blue !important;*/
  /*z-index: 200 !important;*/
}

/*#content {*/
/*    flex-grow: 1;*/
/*}*/

.whatsapp {
    position: absolute;
    top: 15px;
    left: 110px;
    z-index: 107;
}

@media only screen and (min-width: 601px), only screen and (min-device-width: 601px) {
.whatsapp {
    display: none;
}

#content {
    width: 700px;
}

}

.share-bottomrow {
    margin-top: 10px;
}

.share-textfield {
    display: none;
    /*width: fit-content;*/
    /*max-width: 400px;*/
    width: 400px;
    position: fixed;
    top: max(230px, 20%);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: #e7e7e7;
    opacity: 0.98;
    padding: 20px 20px 20px 20px;
    border: 2px solid black;
    border-radius: 10px;
}

.share-textarea {;
    visibility: hidden;
    margin-top: 10px;
    font-size: 13px;
    font-family: sans-serif;
    max-width: 100%;
    /*width: 330px;*/
    resize: none;
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
    border: 2px solid #444;
    border-radius: 2px;
    color: #444;
    background-color: white;
    text-align: left;
    padding: 2px 2px 8px 4px;
}

.share-textarea a {
    color: #38792d;
    cursor: pointer;
}

.share-text {
    visibility: hidden;
    color: #444;
    font-style: italic;
    /*text-align: center;*/
    font-size: 15px;
}

.share-close {
    position: relative;
    text-align: right;
    top: 0;
    right: -10px;
    margin-top: -40px;
    width: 100%;
    padding: 20px 150px 0 0;
    border-width: 0;
    border-style: solid;
    border-color: #888;
    cursor: pointer;
    font-size: 1.3rem;
    color: black;
}

.menucontainer
{
    /*border: 1px solid green;*/
    /*width: 900px;*/
    display: flex;
    /*padding-left: 10px;*/
}

.navigation
{
    padding-top: 15px;
    flex: 0.75;
    font-family: 'Lato', Calibri, Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    /*border: 1px solid red;*/
}




.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
/* Style for popup content */
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
}
/* Show popup */
.popup-overlay.active {
  visibility: visible;
}
/* Button style */
.popup-button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #007BFF;
  color: white;
}

#loading {
  /*position: absolute;*/
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  opacity: 0.925;
  /*background: rgba(0, 0, 0, 0.5);*/
  background-color: #fff;
  /*border: 10px solid red;*/
  z-index: 99;
}

#loading-image {
  position: absolute;
  top: 250px;
  left: 42%;
  z-index: 100;
}


/*Change figure scaling in layout.py as well !!*/
@media only screen and (min-width: 601px), only screen and (min-device-width: 601px) {
    /*body {*/
    /*    transform: scale(1.2);*/
    /*    transform-origin: top left;*/
    /*}*/
#page {
    position: relative;
    left: 50%;
    margin: 0;
    transform: translate(-60%) scale(1.2);
    max-width: calc(100% / 1.3);
    transform-origin: top center;
    /*padding-right: 30px;*/
}

.navigation
{
    margin-left: 10px;
}


.menu-star {
    color: #999;
    position: absolute;
    left: 4px;
    top: 12px;
}

#loading {
  width: 850px;
}



}

@media only screen and (max-width: 600px), only screen and (max-device-width: 600px) {

    #content {
        position: relative;
        top: 58px;
    }

    #loading-image {
        width: 10%;
        margin-left: -5%;
    }


    .menu-star {
        position: relative;
        left: -14px;
        margin-right: -13px;
        top: -1px;
    }
}

#pagenotfound {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  opacity: 1;
  background-color: #fff;
  /*border: 10px solid red;*/
  z-index: 99;
}

#pagenotfound-image {
  position: absolute;
  top: 200px;
  left: 250px;
  z-index: 100;
}

#refresh {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: left;
  opacity: 1;
  background-color: #fff;
  padding-top: 200px;
  padding-left: 200px;
  z-index: 99;
  font-family: 'Lato', Calibri, Helvetica, Arial, sans-serif !important;
}

#refresh-image {
  position: absolute;
  top: 100px;
  left: 250px;
  z-index: 100;
}

.personality_parent
{
    color:#888;
    /*font-size:0.8rem;*/
    border-radius: 5px;
    border: 1px solid #888;
    padding: 3px 4px 3px 4px;
    /*position: relative;*/
    /*top: -0.1em;*/
    /*left: -0.1em;*/
}


.logodiv
{
    /*float: left;*/
    flex: 0.1;
    z-index: 100;
    padding-top: 10px;
    padding-left: 2px;
    text-align: left;
    /*border: 1px dashed blue;*/
}

.logodiv img {
    user-select: none;
}

.copylink
{
    padding-top: 14px;
    flex: 0.15;
    float: right;
    /*border: 1px solid blue;*/
}

.copylink button
{
    padding: 2px 2px 2px 20px;
    width: 110px;
    color: #4a4a4a;
    background-color: #fff;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    border-radius: 4px;
    background-size: contain;
    background-repeat: no-repeat;
}

.copylink button:hover
{
    background-color: #ecffe7 !important;
}

/*#forum_container {*/
/*    display: none;*/
/*    position: absolute;*/
/*    top: 180px;*/
/*    width: 650px;*/
/*}*/

#forum_container {
    /*display: none;*/
    /*position: absolute;*/
    /*top: 180px;*/
    width: 650px;
    margin-left: 30px;
    padding-bottom: 200px;
    /*margin-top: -200px;*/
    display: block;
}

#forum_container h4 {
    color: #76644e;
}

i.lb-tt {
    visibility: hidden !important;
}

.giscus {
    margin-top: 10px;
}

@media only screen and (max-width: 600px), only screen and (max-device-width: 600px) {

#forum_container {
    /*top: 40px;*/
    position: relative;
    width: calc(100% - 16px);
    height: fit-content;
    padding-bottom: 100px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: unset;
    margin-right: unset;
}

#likebtn_container {
    margin-top: -30px;
    margin-bottom: 20px;
}

#forum {
    /*position: absolute;*/
    /*padding-left: 8px;*/
    /*padding-right: 8px;*/
    /*width: calc(100% - 16px);*/
}


.giscus {
    margin-top: unset;
}

body {
    width: 100vw;
    /*overflow: hidden;*/
}

#page {
    width: 100vw;
    height: calc(100vh - 50px);
    /*overflow: hidden;*/
    padding-bottom: 10px;
}

.menucontainer {
    width: 100vw;
    /*height: 14vw;*/
    height: 68px;
    /*border: 1px solid green;*/
    margin-bottom: 1vh;
    position: fixed;
    z-index: 1;
    background-color: white;
}

.navigation {
    flex: 0.7;
    padding-top: 0;
    z-index: 105;
    width: 100vw;
    /*height: 14vw;*/
    position: fixed;
    background-color: white;
}


/*.copylink {*/
/*    display: none;*/
/*    flex: 0;*/
/*}*/

.logodiv
{
    /*flex: 0.3;*/
    padding-top: 5px;
    padding-left: 5px;
    /*border: 1px dashed black;*/
    text-align: center;
    display: flex;
    justify-content: left;
    z-index: 107;
}

.logodiv img
{
    /*width: 100%; !* or any custom size *!*/
    /*height: 100%;*/
    /*height: 55px;*/
    object-fit: contain;
    /*max-height:100%;*/
    /*max-width:100%*/
    /*border: 1px solid black;*/
    z-index: 108;
}

/*#loading {*/
/*    z-index:105;*/
/*}*/

#loading-image {
    /*z-index:106;*/
    left: 50%;
}

}