/* ========== Root ========== */
:root {
  --gap: .1rem;
  --vpwidth: 43vw;
  --border: 2px rgb(207, 207, 207);
  --borderstyle: outset;
  --innerborderstyle: inset;
  --mainbackground: rgb(219, 219, 219);
  --background: solid black;
  --iframebuttonheight: 20px;
  --secondarycolor: rgb(15, 153, 0);
}

/* ========== Global ========== */
body {
  color: black;
  font-size: 8pt;
  font-family: "Verdana", sans-serif;
  background-image: url(backgrounds/scrapback.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically */
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

ul {
  padding: 0;
  list-style-type: none;
}

img {
  width: 100%;
}

/* ========== Layout ========== */
.viewport {
  display: flex;
  flex-direction: inherit;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  max-width: var(--vpwidth);
}

.addition {
  display: flex;
  object-fit: fill;
  width: 100%;
  max-height: 5vh;
}

.addition_space {
  display: flex;
  flex-direction: column;
  background-color: var(--mainbackground);
}

.addition_space .addition {
  max-height: 100%;
  width: calc(100% - 3px);
  border: var(--border);
  border-style: var(--innerborderstyle);
}

.top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: var(--vpwidth);
  overflow: hidden;
  border: var(--border);
  border-style: var(--borderstyle);
  background-color: var(--mainbackground);
}

.logo {
	flex-grow: 1;
  display: flex;
	justify-content: center;
	align-items: center;
	align-content: center;
  border-right: var(--border);
  border-right-style: var(--borderstyle);
}

#bottom_addition {
  width: var(--vpwidth);
  border: var(--border);
  border-style: var(--borderstyle);
}

.everything {
  display: flex;
  flex-direction: row;
  width: var(--vpwidth);
  min-height: 80vh;
  overflow: hidden;
  border: var(--border);
  border-style: var(--borderstyle);
  background-color: var(--mainbackground);
}

.main {
  flex: 4;
  gap: var(--gap);
  margin: 0;
  min-height: 0;
  overflow: hidden;
  word-wrap: break-word;
}

.navbar {
  width: 100%;
  margin-left: 0;
  border: none;
}

/* ========== Aside L ========== */
.asideL {
  flex: 2;
  display: flex;
  flex-direction: column;
  max-width: calc(100% / 3);
  overflow-y: scroll;
}

.asideL_header {
  display: flex;
  margin: var(--gap);
  margin-bottom: 0;
  border: var(--border);
  border-style: var(--innerborderstyle);
  background-color: black;
}

.asideL_content {
  display: flex;
  flex-direction: column;
  flex: 90%;
  margin: var(--gap);
  background-color: white;
}

.asideL_content .text {
  padding: 0.3rem;
  border: var(--border);
  border-style: var(--innerborderstyle);
  overflow-wrap: break-word;
  word-break: break-word;
}


.socbuttons {
  display: flex;
  flex-direction: column;
  align-content: stretch;
  background-color: var(--mainbackground);
  gap: 1px;
}

.socbutton {
  display: flex;
  align-items: center;
  font-weight: bold;
  overflow-wrap: anywhere;
  padding: 3px;
  border: var(--border);
  border-style: var(--borderstyle);
}

.socbutton:hover {
  background-color: rgb(222, 222, 222);
  filter: brightness(1.1);
}

.socbutton:active {
  border-style: inset;
  filter: brightness(0.9);
}

.asideL_content .socbuttons img {
  width: 20px;
  padding-right: 3px;
  display: inline-block;
  vertical-align: middle;
}

.main .iframebuttons {
  display: flex;
  flex-direction: row;
  padding: 0;
  max-height: var(--iframebuttonheight);
  gap: 3px;
}

.iframebuttons img {
  max-height: 15px;
}

.iframebuttons img:active {
  filter: brightness(0.9);
}

.main_iframe {
  display: flex;
  width: 100%;
  height: calc(100% - var(--iframebuttonheight));
}

.asideL_footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 3px 0 3px;
  font-size: 0.6vw;
  font-weight: bold;
  background-color: var(--mainbackground);
}

/* ========== Aside R ========== */
.asideR {
  flex: 2;
}

.neighbors {
  padding: 5px;
}

.neighborbuttons {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 5px;
  row-gap: 3px;
}

.neighborbuttons img {
  width: inherit;
}

/* ========== Footer ========== */
.footer {
  display: flex;
  justify-content: center;
  gap: var(--gap);
  max-width: var(--vpwidth);
  margin-top: 3px;
}

.footer .button {
  width: fit-content;
  transition: 0.1s ease-in-out;
}

.footer .button:hover {
  transform: scale(95%);
}

/* ========== Chat / Player ========== */
.chatbox {
  flex-grow: 1;
  border: var(--border);
  border-style: var(--innerborderstyle);
}

/* ========== Links ========== */
.everything a {
  color: var(--secondarycolor);
  text-decoration: underline;
  vertical-align: middle;
  transition: 0.2s ease-in-out;
}

/* ========== Marquee ========== */
.marquee {
  position: relative;
  height: 20px;
  display: flex;
  width: 100%;
  margin: 0;
  overflow: hidden;
  user-select: none;
}

.marquee__content {
  display: flex;
  justify-content: space-around;
  flex-shrink: 0;
  min-width: 100%;
  animation: scroll 60s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100%));
  }
}

/* ========== Iframes & Logos ========== */
#headlines {
  display: block;
  width: 100%;
  height: 100%;
  border: var(--border);
  border-style: var(--innerborderstyle);
}

#logo {
  position: fixed;
  width: 300px;
  transform: rotate(-20deg);
}

#flagcount {
  background-color: var(--mainbackground);
  height: 100%;
}