:root {
  --body-color:#EFEFE6;
  --text-color:#244149;
  --dark-color:#7FC77B;
  --main-button-color:linear-gradient(to bottom, #A8DBA4, #8FD18B);
  --light-color:#D7F2D2;
  --bright-color:linear-gradient(to right, #FFFFFF33, #BFEDEA);
  --border-color:#D7F2D2;
  --hover-color:#95D191;
  --light-color-top:linear-gradient(to top, #FFFFFF1A, #D7F2D2);
  --top-bar-box-shadow:inset 0 2px 3px rgba(255,255,255,0.35), inset 2px 0 3px rgba(255,255,255,0.18), inset -2px 0 3px rgba(0,0,0,0.12), inset 0 -3px 4px rgba(0,0,0,0.18);
  --banner-box-shadow:inset 1px 1px 2px rgba(255,255,255,0.35), inset -1px -1px 2px rgba(0,0,0,0.08);
  --actual-stuff-box-shadow:inset 0 2px 2px rgba(255,255,255,0.3), inset 1px 0 2px rgba(255,255,255,0.15), inset -1px 0 2px rgba(156,182,203,0.25), inset 0 -2px 3px rgba(156,182,203,0.35);
  --main-button-box-shadow:inset 1px 1px 2px rgba(255,255,255,0.45), inset -1px -1px 2px rgba(127,199,123,0.55);
  --sublink-color:linear-gradient(to bottom, #FFFFFF55, #D7F2D2);
  --sublink-box-shadow:inset 1px 1px 2px rgba(255,255,255,0.45), inset -1px -1px 2px rgba(156,182,203,0.5);
  --sublink-hover-box-shadow:inset 1px 1px 2px rgba(0,0,0,0.12), inset -1px -1px 2px rgba(255,255,255,0.18);
  --sublink-hover:linear-gradient(to bottom, #C3E6C0, #beebba);
  --mobile-side-bar-box-shadow:inset 1px 1px 2px rgba(255,255,255,0.35), inset -1px -1px 2px rgba(127,199,123,0.25);
}

body.darkmode {
   --body-color: #1B1C1E;
  --text-color: #E6E6E6;
  --dark-color: #2A2B2E;

  --main-button-color: linear-gradient(to bottom, #3A3B40, #2F3035);

  --light-color: #2B2C30;

  --bright-color: linear-gradient(to right, #FFFFFF22, #4DA3FF33);

  --border-color: #4DA3FF33;

  --hover-color: #3A3B3F;

  --light-color-top: linear-gradient(to top, #FFFFFF10, #2B2C30);

  --banner-color: #24252A;

  --banner-color-top: linear-gradient(to top, #FFFFFF10, #24252A);

  --top-bar-box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.06),
    inset 2px 0 3px rgba(255,255,255,0.03),
    inset -2px 0 3px rgba(0,0,0,0.45),
    inset 0 -3px 4px rgba(0,0,0,0.55);

  --banner-box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.05),
    inset -1px -1px 2px rgba(0,0,0,0.5);

  --actual-stuff-box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.05),
    inset 1px 0 2px rgba(255,255,255,0.02),
    inset -1px 0 2px rgba(0,0,0,0.45),
    inset 0 -2px 3px rgba(0,0,0,0.55);

  --main-button-box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.08),
    inset -1px -1px 2px rgba(0,0,0,0.6);

  --sublink-color: linear-gradient(to bottom, #2F3035, #26272B);

  --sublink-box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.05),
    inset -1px -1px 2px rgba(0,0,0,0.5);

  --sublink-hover: linear-gradient(to bottom, #35363C, #2A2B30);

  --sublink-hover-box-shadow:
    inset 1px 1px 2px rgba(0,0,0,0.35),
    inset -1px -1px 2px rgba(255,255,255,0.04);

  --mobile-side-bar-box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.05),
    inset -1px -1px 2px rgba(0,0,0,0.5);
}

html {
  overflow-y: scroll;
}

* {
  box-sizing: border-box;
  font-family: "Tsukimi Rounded", sans-serif;
  letter-spacing: 1px;
}

body {
  margin: 0;
 font-size: clamp(20px, 2.5vw, 22px);
  color: var(--text-color);
}

#wrapper {
  width: min(100%, 900px);
  margin: auto;
  border: 1px solid gray;
}

#banner {
  padding: 0 10px;
  min-height: 100px;
  background: var(--bright-color);
  box-shadow: var(--banner-box-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#banner img {
  height: 80px;
  object-fit: contain;
}

#banner span {
  margin-left: auto;
  font-size: clamp(18px, 4vw, 40px);
  line-height: 1.1;
  word-break: break-word;
  max-width: 60%;
  text-align: right;
}

#mapPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

#mapPopup img {
  max-width: 90%;
  max-height: 90%;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px 5px 5px;
  border-top: 1px solid gray;
  background: var(--dark-color);
  box-shadow: var(--top-bar-box-shadow);
  border-bottom: 2px solid var(--border-color);
}

#content {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: var(--body-color);
}

#sidebar {
  width: 150px;
  display: flex;
  flex-direction: column;
  background: var(--light-color-top);
}

.smallsection{
margin-top:5px;
margin-bottom:5px;
}

#actualstuff {
  flex: 1;
padding-top: 0;
padding-right: 20px;
  min-height: 650px;
  padding-bottom: 25px;
padding-left: 20px;  background: var(--body-color);
  box-shadow: var(--actual-stuff-box-shadow);
  border-left: 1px solid gray;
  border-top: 1px solid gray;
  width:100%;
}

.mainbutton {
  width: 100%;
  font-size: 17px;
  padding: 6px 0;
  background: var(--main-button-color);
  box-shadow: var(--main-button-box-shadow);
  border-bottom: 1px solid gray;
  border-top: 1px solid gray;
}

.mainbutton::before {
  content: "";
  display: inline-block;
  background-image: url("starclover.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin: -5px -3px 0 7px;
}

#links {
  width: 100%;
  font-size: 18px;
  padding: 6px 0;
  background: var(--main-button-color);
  box-shadow: var(--main-button-box-shadow);
  border-bottom: 1px solid gray;
  border-top: 1px solid gray;
}

#links::before {
  content: "";
  display: inline-block;
  background-image: url("starclover.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin: -5px 4px 0 7px;
}

.sublink {
  font-size: 14px;
  text-align: left;
  width: 100%;
  padding: 2px 0;
  margin-right: 10px;
  display: flex;
  box-shadow: var(--sublink-box-shadow);
  background: var(--sublink-color);
}

.sublink span {
  text-decoration: underline;
  margin: 2px 2px 2px 10px;
  display: inline-flex;
}

.sublink span::after {
  content: "";
  display: inline-block;
  background-image: url("sapling.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 1.5em;
  height: 1.5em;
  opacity: 0;
  margin-left: 2px;
  transition: opacity 0.1s ease;
}

.sublink:hover {
  box-shadow: var(--sublink-hover-box-shadow);
  background: var(--sublink-hover);
}

.sublink:hover span::after {
  opacity: 1;
}

.events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.events iframe {
  width: 100%;
  height: 500px;
}

#mobile-sidebar {
  display: none;
}

footer {
  border-top: 1px solid gray;
  padding: 10px;
  text-align: center;
  background: var(--dark-color);
  box-shadow: var(--top-bar-box-shadow);
  gap:15px;
  flex-wrap:wrap;
}

h2 {
  margin-top: 10px;
}

h2:nth-of-type(odd)::after,
h2:nth-of-type(even)::after {
  content: "";
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  width: 1em;
  height: 1em;
  margin-left: 5px;
  vertical-align: middle;
}

h2:nth-of-type(odd)::after {
  background-image: url("ladybug.png");
}

h2:nth-of-type(even)::after {
  background-image: url("blackladybug.png");
}

h3 {
  text-align: center;
}

h4 {
  display: inline-block;
}

.welcome {
  font-weight: bold;
  font-size: 25px;
  text-align: center;
  width: 100%;
  display: block;
  color: var(--text-color);
  margin-bottom: 20px;
}

.welcome::before,
.welcome::after {
  content: "";
  display: inline-block;
  background-image: url("sapling.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 1.1em;
  height: 1.1em;
  vertical-align: top;
  margin-top: 4px;
}

.welcome::before {
  margin-right: 3px;
}

.welcome::after {
  margin-left: 2px;
}

h2, h3, p, h4 {
  margin: 0;
  padding: 0;
}

section {
  margin: 15px 0;
  text-align: justify;
}

#float {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

iframe {
  margin-bottom: 0;
}

#theme-switch {
  height: 40px;
  width: 40px;
  cursor: pointer;
  display: block;
}

#languageswitcher {
  display: flex;
  gap: 10px;
}

.flag-button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.flag-button img {
  height: 20px;
  border: 1px solid;
}

#thing {
  display: flex;
  align-items: stretch;
}

#thing img {
  width: 10rem;
  height: auto;
  align-self: stretch;
  object-fit: cover;
}

.buildings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
}

.building {
  text-align: center;
}

.building img {
  width: 100%;
  height: 450px;
}

.question, .answer {
  margin: 10px 0;
}

.question {
  font-weight: bold;
}

.student {
  display: flex;
  align-items: stretch;
  gap: 15px;
  border: 1px solid var(--text-color);
  padding: 15px;
  margin-bottom:20px;
}

.pfp {
  flex: 0 0 110px;
  display: flex;
  align-items: flex-start;
}

.pfp img {
  width: 100%;
  height: auto;
  display: block;
}

.student-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.introduction, .question, .answer {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.introduction {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.readmore {
  margin-top: auto;
}

#credits {
  column-count: 2;
  column-gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#credits li {
  break-inside: avoid;
  margin-bottom: 6px;
  list-style:none;
}


@media (max-width: 768px) {
  #sidebar {
    display: none;
  }

  #content {
  flex-direction: column;
}

  #mobile-sidebar {
      display: flex;
  flex-direction: column;
    width: 100%;
    text-align: center;
    font-size: 17px;
    padding-left:10px;
    padding-right:10px;
    padding-bottom:10px;
    padding-top:5px;
    background: var(--light-color);
    box-shadow: var(--mobile-sidebar-box-shadow);
    color: var(--text-color);
  }

  a {
  color: var(--text-color);
}

  #mobile-sidebar a::after {
    content: "";
    display: inline-block;
    background-image: url("starclover.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.1em;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: middle;
    margin-bottom:1px;
  }

  .events {
    grid-template-columns: 1fr;
  }

  .events iframe {
    height: 400px;
  }

  .buildings {
    display: block;
  }

  .student {
    gap: 20px;
    padding: 20px 0;
  margin-bottom:20px;
  }

  .pfp {
    flex: 0 0 85px;
  }

  .introduction {
    font-size: 0.9rem;
  }

  .question {
    font-size: 0.85rem;
  }

  .answer {
    font-size: 0.8rem;
  }

section {
  text-align: left;
  line-height: 1.5;
}

  #wrapper {
    margin: 0;
  }

  #banner span {
  margin-top:5px;}

}


