@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Titillium+Web:wght@700&display=swap");

* {
  box-sizing: border-box;
}
body {
  --accentuation-color: #f7dc6f;
  --background-color: #fff8e1;
  --text-color: #000000;
}

@media (prefers-color-scheme: dark) {
  body {
    --background-color: #273746;
    --text-color: #fdfefe;
    --accentuation-color: #fff8e1;
  }
}

body.dark {
  --background-color: #273746;
  --text-color: #fdfefe;
  --accentuation-color: #fff8e1;
}

body.light {
  --background-color: #fff8e1;
  --text-color: #000000;
  --accentuation-color: #f7dc6f;
}

body {
  margin: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  background-color: var(--background-color);
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

body {
  font-family: "Montserrat", sans-serif;
  display: flex;
  justify-content: center;
  color: var(--text-color);
}

a {
  color: var(--text-color);
}

.wrapper {
  max-width: 600px;
  width: 100%;
}

@media (max-width: 800px) {
  .wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }
}

header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 800px) {
  header {
    flex-direction: column;
  }

  h1 {
    text-align: center;
  }

  header .vertical {
    align-items: center;
  }
}

header #avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 10px;
}

header .vertical {
  display: flex;
  flex-direction: column;
}

header .vertical p {
  margin: 0px;
}

header .socials {
  display: flex;
  margin-top: 5px;
  gap: 10px;
  height: 35px;
  align-items: center;
}

header .socials a {
  text-decoration: none;
  color: black;
}

header .socials img {
  height: 30px;
  transition: all 0.2s ease-in-out;
}

@media (prefers-color-scheme: dark) {
  header .socials img {
    filter: invert(1);
  }
}

body.dark header .socials img {
  filter: invert(1);
}

body.light header .socials img {
  filter: invert(0);
}

header .socials img:hover {
  opacity: 0.7;
  height: 35px;
}

h1 {
  font-family: "Titillium Web", sans-serif;
  font-size: 3rem;
  margin: 0;
}

.preview {
  --border-color: var(--accentuation-color);
  max-width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 10px;
  display: flex;
  align-items: center;
  color: black;
  text-decoration: none;
  margin-top: 5px;
  margin-bottom: 5px;
}

.preview img {
  max-width: 20%;
  height: auto;
  border-radius: 5px;
}

.preview__content {
  margin-left: 10px;
}

.preview__title {
  font-size: 16px;
  margin: 0;
  color: var(--text-color);
}

.preview p {
  font-size: 14px;
  margin: 0;
  color: #7f8c8d;
}

#color-switch {
  position: fixed;
  top: 10px;
  right: 10px;
}

#color-switch-button:hover {
  cursor: pointer;
}

.alert {
  --alert-color: var(--accentuation-color);
  --backgroud-color: #ffffff00;
  background-color: var(--backgroud-color);
  max-width: 100%;
  border: 1px solid var(--alert-color);
  border-radius: 5px;
  padding: 10px;
  align-items: center;
  text-decoration: none;
  margin-top: 5px;
  margin-bottom: 5px;
  color: var(--text-color);
}

.alert.important {
  --alert-color: #e74c3c;
  --backgroud-color: #e74c3c20;
}

.alert.gold {
  --alert-color: #f1c40f;
  --backgroud-color: #f1c40f20;
}

.galery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 10px;
}

.galery img {
  height: 200px;
  border-radius: 5px;
}

.download_flex {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dl_button {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.dl_button a {
  background-color: #5dade2;
  border: 1px solid #2d678d;
  color: white;
  border-radius: 5px;
  padding: 10px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  margin-top: 15px;
  margin-bottom: 5px;
}

.dl_button a:hover {
  background-color: #2d678d;
  border: 1px solid #5dade2;
}

.embed_game_container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.dark .embed_game_container {
  background-color: #728da7;
}

.light .embed_game_container {
  background-color: #d6d2c1;
}

.embed_game_container button {
  background-color: #5dade2;
  border: 1px solid #2d678d;
  color: white;
  border-radius: 5px;
  padding: 10px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  margin-top: 15px;
  margin-bottom: 5px;
}

.embed_game_container button:hover {
  background-color: #2d678d;
  border: 1px solid #5dade2;
  cursor: pointer;
}

.embed_game_iframe {
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
}

.emoji {
  height: 20px;
  width: auto;
  margin: 0;
  display: inline;
  vertical-align: middle;
}
