:root {
  --main-bg-color: rgb(227, 244, 252);
  --main-bg-color-darker: rgb(201, 216, 223);
  --white: white;
  --white-darker: rgb(226, 226, 226);
  --black: black;
  --black-lighter: rgb(73, 73, 73);
}

* {
  color: var(--black);
}

a {
  color: rgb(255, 208, 0);
  cursor: pointer;
  text-decoration: none;
}
a:hover {
  color: rgb(252, 220, 81);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Consolas", "Courier New", Courier, monospace;
  text-align: center;
}

body {
  background-color: var(--main-bg-color);
}

.popupButton {
  background-color: var(--white);
  border: 1px solid var(--black);
  border-radius: 5px;
  cursor: pointer;
  padding: 3px;
  width: fit-content;
  margin: 2px;
  min-width: 20px;
  text-align: center;
}

.popupButton:hover {
  background-color: var(--white-darker);
}

.auth-Inner {
  margin: 5px;
}

#accountSettingsButt {
  width: 200px;
  font-size: 30px;
  display: block;
  padding-bottom: 3px;
  height: 30px;
  cursor: pointer;
}

#accountSettingsButt img {
  width: 30px;
  height: 30px;
}

#accountSettingsButt:hover {
  color: var(--black-lighter);
}

#accountSettings {
  position: absolute;
  right: 20px;
  top: 30px;
  border: 2px solid var(--black);
}

@media (max-width: 800px) {
  #accountSettings {
    position: static;
    display: block;
  }  
}

.post {
  border: 2px solid var(--black);
  margin-bottom: 5px;
}

textarea {
  border: none;
  resize: none;
  width: 100%;
  background-color: transparent;
  font-family: "Consolas", "Courier New", Courier, monospace;
  overflow-y: hidden;
  font-size: 15px;
  box-sizing: border-box;
}
textarea:focus {
  outline: none;
}

.post-title {
  text-align: left;
  margin: 2px;
  font-size: 25px;
  font-weight: bold;
  height: 30px;
  width: 100%;
  overflow: hidden;
}

.post-content {
  width: 100%;
}

.post-bottom {
  min-height: 30px;
}

.post p {
  font-style: italic;
  font-size: 12px;
  margin: 2px;
  display: inline-block;
}

.edit-post-butt {
  padding: 3px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: 50%;
  text-align: center;
  float: right;
}
.edit-post-butt:hover {
  background-color: var(--main-bg-color-darker);
}

#post-menu {
  position: absolute;
  display: none;
  border: 2px solid var(--black);
  padding: 5px;
  background-color: var(--main-bg-color);
}

#post-menu a {
  display: block;
  text-align: left;
}

#select-lang {
  position: fixed; 
  bottom: 0; 
  right: 0; 
  width: 40px; 
  height: 40px;
  background-image: url('/img/switch_lang.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--main-bg-color);
  border: none;
  cursor: pointer;
  color: transparent;
  appearance: none;  /* Remove default dropdown arrow */
  -webkit-appearance: none; /* For Safari */
  -moz-appearance: none; /* For Firefox */
}

#select-lang:focus {
  outline: none;
}

#select-lang option {
  background-color: var(--main-bg-color);
  color: var(--black);
}

.post-lang-select {
  background-color: var(--main-bg-color);
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.rotating {
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}

.loading {
  height: 50px;
  width: 50px;
  border-color: var(--black) var(--black) var(--black) transparent;
  border-width: 10px;
  border-style: solid;
  border-radius: 50%;
  display: block;
}

.about-author {
  border: 2px solid var(--black);
  display: none;
}

#loading-about-author {
  display: inline-block;
  margin-top: 2px;
  width: 10px;
  height: 10px;
  border-width: 2px;
}

#switch-theme {
  position: fixed; 
  bottom: 40px; 
  right: 0; 
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: var(--main-bg-color);
}