:root {
  --header-height: 172px;
  --hero-min-height: 520px;
  --footer-height: 110px;
}

html {
  scrollbar-gutter: stable both-edges;
}

@media only screen and (min-width: 768px) {
  :root {
    --header-height: 100px;
    --hero-min-height: 560px;
  }
}

@media only screen and (min-width: 1025px) {
  :root {
    --header-height: 72px;
    --hero-min-height: 640px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: block;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scrollbar-gutter: stable both-edges;
  /* background: linear-gradient(to right, #3bdcf6, #a0cfca); */
}

.SkipLink {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #062024;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(6, 32, 36, 0.18);
  transform: translateY(-160%);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.SkipLink:focus,
.SkipLink:focus-visible {
  transform: translateY(0);
  opacity: 1;
  outline: 3px solid rgba(0, 211, 219, 0.55);
  outline-offset: 2px;
}

/*вместо рута*/
#placeholder {
  display: flex;
  flex-direction: column;
  /* min-height: calc(100vh - 90px); */
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

header,
footer {
  color: black;
  text-align: center;
}

header h1 {
  margin: 0;
}

nav a {
  color: black;
  text-decoration: none;
}

main {
  position: relative;
  padding-inline: 5px;
  flex: 1 0 auto;
  width: 100%;
  margin-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

h1,
h2 {
  color: #333;
}

p {
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
}

/* Шапка*/
.Header_server {
  position: fixed;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  grid-gap: 10px;
  width: 100%;
  z-index: 1;
}

.Header_title_server a {
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
}

@media only screen and (max-width: 900px) {
  .Header_title_server a {
    font-size: 16px;
  }
}

.Header_left_block_server {
  display: flex;
  /* flex-wrap: wrap; */
  align-items: baseline;
  grid-gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.Header_server nav {
  display: flex;
  width: 70%;
}

.Header_title_server a {
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
}

@media only screen and (max-width: 900px) {
  .Header_title_server a {
    font-size: 12px;
  }
}

/* Шапка язык*/
.Header_selectedLangWrap_server {
  position: relative; 
  width: 200px;
}

.Header_selectedLang_server {
  font-size: 13px; color: white; padding: 4px; border-radius: 4px; cursor: pointer; background-color: rgb(80, 79, 79); width: 9em;
}

/* Меню */
.Scroll_menu_wrapper_server {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 5px;
}

.Scroll_menu_server {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 13px;
  overflow-x: auto;
  padding: 0 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.Scroll_menu_server a {
  margin: 0;
  font-size: 14px;
  color: white;
  text-decoration: none;
}

.select_server {
  top: 65px;
  left: 1px;
  position: absolute;
}

.select_trigger_server {
  font-size: 13px;
  color: white;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  background-color: #1a1919;
  width: 9em;
  transition: background-color 0.2s;
  font-size: 12px;
}

/* Майн */
.Home_server {
  color: white;
}

.Home_widget_server {
display: flex;
flex-wrap: wrap;
grid-gap: 10px;
padding: 10px;
}

/* Настройки параметров */
.Settings_server {
    text-align: center;
}

.Settings_server p {
  color: white;
}

.SettingsLocation_server {
  width: calc(100vw - 49px);
  background-color: #121212;
  border-radius: 5px;
  margin: 0 auto 0;
  color: white;
}

.SettingsLocation_topMenu_server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px;
  border: none;
  border-bottom: 1px solid black;
  border-radius: 5px;
}

.SettingsLocation_buttonSettingForm_server {
  background-color: transparent;
  border: 1px solid #666;
  border-radius: 5px;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
}

@media only screen and (max-width: 900px) {
  .SettingsLocation_buttonSettingForm_server {
      width: 92px;
      font-size: 12px;
  }
}

.SettingsLocation_label_server {
  display: flex;
  font-weight: bold;
  color: #474847;
}

@media only screen and (max-width: 900px) {
  .SettingsLocation_label_server {
      font-size: 12px;
  }
}

.SettingsLocation_settingsForm_server {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow: hidden;
  min-height: 0;
  opacity: 0;
}

/* Главная */
.Home_h1_server {
  /* margin: 0 auto; */
  text-align: center;
}

/* Настройка */
.Settings_h1_server {
    text-align: center;
}

/* Дома */
.HouseContainer_server {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

.HouseNote_server {
  background-color: #fff9b1;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15), -2px -2px 5px rgba(255, 255, 255, 0.7);
  width: 120px;
  min-height: 45px;
  padding: 10px;
  margin: 5px;
  transform: rotate(1deg);
  transition: transform 0.2s ease;
}

.HouseText_server {
  font-family: "Caveat", cursive;
  font-size: 14px;
  color: #333;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Планеты */
.SkeletonList-server {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  gap: 50px;
}

.SkeletonList-elem-server {
  background: linear-gradient(90deg, #b0b0b0 25%, #d0d0d0 50%, #b0b0b0 75%);
  background-size: 200% 100%;
  animation: loading 1.2s infservere ease-in-out;
  width: 319px;
  height: 122px;
  border-radius: 5px;
}

.SkeletonList-label-server {
  color: rgb(192, 192, 192); 
  font-weight: bold;
}

@keyframes loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
