:root {
  --bg-color: #1e1e1e;
  --main-colour: #3e3e3e;
  --text-color: #f5f5f5;
  --top-bar: #2a2930;
  --highlight: #48474e;
  --main-item: #3a3a3a;
  --primary-color: #949494;
  --primary-hover: #a8a8a8;
  --text-box: #f5f5f5;
  --popup: #424242;
  --popup-hover: #535353;
  --top-bar-size: 50px;
}

[page-theme="light"] {
  --bg-color: #e5f6ff;
  --main-colour: #eefeff;
  --text-color: #222222;
  --top-bar: #e0ebee;
  --primary-color: #97dff3;
  --primary-hover: #b3ecfc;
  --main-item: #e5e5e5;
  --highlight: #ffffff;
  --text-box: #ffffff;
  --popup: #bfe0e2;
  --popup-hover: #caedef;

}

[page-theme="pink"] {
  --bg-color: #240021;
  --main-colour: #370032;
  --top-bar: #3f003a;
  --text-color: #ff92f0;
  --primary-color: #ff00ff;
  --primary-hover: #ff57ff;
  --highlight: #610059;
  --main-item: #910071;
  --text-box: #ffd7f4;
  --popup: #4b0045;
  --popup-hover: #55004e;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  transition: background-color .2s, color .2s;
}

.topbar {
  overflow: visible;
  height: var(--top-bar-size);
  background-color: var(--top-bar);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.topbar a {
  float: left;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  color: var(--text-color);
  transition-duration: 0.2s;
  width: 60px;
  user-select: none;
  
  display:flex;
  align-items: center;
  justify-content: center;
}

.topbar a:hover {
  background-color: var(--highlight);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  cursor: pointer;
}

.topbar a.active {
  color: var(--text-color);
  font-weight: bold;
  background-color: var(--main-item);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.topbar a.right {
  float: right;
  margin-left: 10px;
  margin-right: 10px;
}

.topbar a.icon {
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.53);
  border-radius: 0px;
  width: fit-content;
  height: 50px;
  overflow: hidden;
  display: inline-block;
  position: relative;
  padding: 0px;
  border-radius: 25px;
  z-index: 5;
}

.iconholder {
  margin: 0px;
  padding: 0px;
  width: 100%;
  z-index: 5;
}

hr {
  color: var(--text-color);
  border-color: var(--text-color);
}

.small-icon {
  display: flex;
  width: 50px;
  height: 50px;
  margin: 0px auto;
  padding: 0px;
  font-weight: bold;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: 0.2s;
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.73) inset;
  position: relative;
  display: inline-block;
  z-index: 5;
}

.small-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.small-icon:hover {
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.9) inset;
  cursor: pointer;
}

.hidden-icon {
  z-index: 5;
  display: flex;
  width: 50px;
  height: 50px;
  margin: 0px auto;
  padding: 0px;
  background-color: var(--main-item);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.73) inset;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden-icon-setting {
  font-size: 20px;
  transition: 0.3s;
}

.hidden-icon:hover .hidden-icon-setting {
  font-size: 25px;
  rotate: 40deg;
}

.hidden-icon-logout {
  font-size: 20px;
  transition: 0.3s;
}
.hidden-icon-profile {
  font-size: 30px;
  transition: 0.3s;
}

.hidden-icon:hover .hidden-icon-logout {
  font-size: 25px;
}

.hidden-icon:hover {
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.9) inset;
  cursor: pointer;
}

.mediumbox {
  background-color: var(--main-colour);
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.53);
  margin: 0 auto;
  margin-top: 30px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 50px;
  padding-top: 20px;
  text-align: center;
  align-items: center;
  border-radius: 20px;
  width: fit-content;
  min-width: 150px;
}

.mainbox {
  background-color: var(--main-colour);
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.53);
  margin: 30px auto;
  margin-top: 30px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 50px;
  padding-top: 20px;
  text-align: center;
  align-items: center;
  border-radius: 20px;
  min-height: 500px;
  max-width: calc(100% - 200px);
}

fieldset {
  padding-left: 10px;
  padding-right: 20px;
  margin: 0 auto;
  text-align: left;

  border: 1px solid var(--text-color);
  width: fit-content;
}

fieldset>input {
  display: block;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
}

input[type="text"] {
  background: var(--text-box);
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px;
  margin: 5px;
  box-sizing: border-box;
  box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.3) inset;
  transition: 0.3s;
}

input[type="password"] {
  background: var(--text-box);
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px;
  margin: 5px;
  box-sizing: border-box;
  box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.3) inset;
  transition: 0.3s;
}

input:focus[type="text"] {
  box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.6) inset;
}

input:focus[type="password"] {
  box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.6) inset;
  transition: 0.3s;

}

button {
  border: none;
  border-radius: 10px;
  width: 100px;
  height: 60px;
  margin: 20px;
  font-size: 20px;
  background-color: var(--primary-color);
  transition: 0.3s;
}

button:hover {
  background-color: var(--primary-hover);
  font-size: 25px;
  transition: 0.3s;
  cursor: pointer;
  width: 120px;
}

.error {
  color: rgb(224, 0, 0);
  padding: 0;
  margin: 0;
}

.bigicon {
  box-shadow: 7px 7px 7px -2px rgba(0, 0, 0, 0.6);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: auto;
  background-color: var(--bg-color);
  display: block;
}
.smallicon {
  box-shadow: 7px 7px 7px -2px rgba(0, 0, 0, 0.6);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: auto;
  background-color: var(--bg-color);
  display: block;
}
.smallicon:hover{
  cursor:pointer;
}
.popup {
  box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.73);
  z-index: 10;
  background-color: var(--popup);
  border-radius: 30px;
  position: fixed;
  display: block;
  width: 400px;
  height: auto;
  text-align: center;
  padding: 10px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.setting:hover {
  text-decoration: underline;
  cursor: pointer;
}

textarea.bioedit {
  resize: none;
  background: var(--text-box);
  border: none;
  outline: none;
  width: 300px;
  height: 150px;
  font-size: 16px;
  box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.3) inset;
  transition: 0.3s;
}
.username-friendlist:hover{

  text-decoration: underline;
  cursor: pointer;
  user-select: none;
}
.friendsholder{
  display:flex;
}
.friendgroup{
  width: 50%;
}

@media (max-width: 500px) {
  .topbar a {
    width: 20px;
    font-size: 10px;
    height: 20px;
  }
  .mainbox{
    width: 100%;
    margin: 15px auto;
    max-width: calc(100% - 130px);
  }
  .mediumbox{
    min-width: 150px;
    padding: 30px;
    padding-top: 5px;
  }
  .smallicon{
    
    width: 60px;
    height: 60px;
  }
  .friendsholder{
    display:flex;
    flex-direction: column;
    text-align: center;
  }
  .friendgroup{
    width: 100%;
  }
  .friendinput{
    min-width: none;
  }
}