@import url("panels.css");
@import url("gamepad.css");
@import url("loginform.css");
@import url("Joinform.css");
@import url("menuCreate/panelsMenuCreate.css");
@import url("menuAdministration/administration.css");
@import url("menuAdministration/pannelsMenuAdministration.css");
@import url("menuAdministration/mapEditor.css");
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;800&display=swap');

* {
    padding: 0px;
    margin: 0px;
    font-family: 'Rubik', sans-serif;
}

body {
    background:  url("../img/background.png") no-repeat center center;
    background-size:cover;
    background-attachment: fixed;
}

#userpanel {
  position: absolute;
  z-index: 50;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background-color: rgb(0, 0, 0, 0.7);
  color: rgb(255, 255, 255);
  display: flex;
  position: fixed;
  flex-direction: row;
  justify-content: space-between; 
  align-items: center;
  transition: all 0.5s ease;
}

#userpanel > div:first-child {
  display: flex;
  flex-direction: row; 
  padding-left: 10px;
}

#userpanel > div:first-child > div:first-child {
  background: url("../img/mainmenu/iconuser.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  width: 30px;
  height: 30px;
}

#userpanel > div:first-child > div:last-child {
  display: flex;
  align-items: center; 
  padding-left: 10px;
}

#userpanel > div:last-child {
  cursor: pointer;
  padding-right: 10px;
}

#userGamePanel {
  position: absolute;
  z-index: 50;
  top: -60px;
  left: 0;
  right: 0;
  height: 50px;
  background-color: rgb(0, 0, 0, 0.0);
  color: rgb(255, 255, 255);
  display: flex;
  position: fixed;
  flex-direction: row;
  justify-content: space-between; 
  align-items: center;
  transition: all 0.5s ease;
  padding: 0 20px 0 20px;
  margin-top: 10px;
}

#userGamePanel > div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;     /* выравнивание по вертикали */
  gap: 5px; 
}

#leftMenuGame, #amount, #armorAmount, #soundSwitcher {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px; 
  background: #ffffffaf;
  border-radius: 10px;
  padding: 5px 10px;
}

#leftMenuGame > div:first-child {
  background: url("../img/game/leftMenuGameIcon.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  width: 30px;
  height: 30px;
  cursor: pointer;
}

#amount > div:first-child {
  background: url("../img/game/users.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  width: 30px;
  height: 30px;
}

#armorAmount > div:first-child {
  background: url("../img/game/armor.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  width: 30px;
  height: 30px;
}

#armorAmount > div:nth-child(2) {
  display: flex;
  flex-direction: row;
  gap: 3px; 
}

#armorAmount > div:nth-child(2) > div {
  width: 15px;
  height: 15px;
}

.slotGreen {
    background-color: green;
}

.slotGray {
    background-color: gray;
}

#musicOnOff {
  background: url("../img/game/musicOn.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  width: 30px;
  height: 30px;
  cursor: pointer;
}

#nicUser {
  color: white;
  font-weight: bolder;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

#numberRoom > div:nth-child(2), #exitRoom > div:nth-child(2) {
  font-weight: bolder;
  font-size: 14px;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
}

#amount > div:nth-child(2) {
  font-weight: bolder;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
}

#leftMenuGamePanel{
  position: absolute;
  z-index: 60;
  top: 0;
  bottom: 0;
  left: -50vw;
  width: calc(50vw - 20px);
  display: flex;
  flex-direction: column;  
  background-color: rgba(0, 0, 0, 0.9);
  gap: 15px;
  padding: 10px;
  transition: all 0.5s ease;
}

#closeLeftMenuGamePanel {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  z-index: 55;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  transition: all 1s ease;
}

#numberRoom, #exitRoom {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px; 
}

#numberRoom > div:first-child {
  background: url("../img/game/star.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  width: 30px;
  height: 30px;
}

#exitRoom > div:first-child {
  background: url("../img/game/exit.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; 
  width: 30px;
  height: 30px;
  cursor: pointer;
}
#exitRoom > div:nth-child(2) {
  cursor: pointer;
}

#mainmenu {
    width: 100%;
    display: flex;
    position: fixed;
    flex-direction: column; /* Вертикальное расположение */
    align-items: center; /* Горизонтальное центрирование */
    justify-content: center; /* Вертикальное центрирование */
    min-height: calc(100vh);
    z-index: 1;
}

#mainmenu > div {
  display: flex;
  width: 70%;
  box-sizing: border-box;
  margin-bottom: 10px;
  cursor: pointer;
}

#mainmenu > div > div:first-child {
  width: 80px;
  aspect-ratio: 1 / 1; /* делает квадрат */
  background-color: #000000;
  opacity: 0.7;
  box-sizing: border-box;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  background-size: 40px 40px;
  background-repeat: no-repeat;
  background-position: center;
}

#mainmenu > div > div:last-child {
  flex: 1;
  background-color: #000000;
  opacity: 0.7;
  box-sizing: border-box;
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}

#mainmenu > div > div:last-child > a {
  text-decoration: none;
  color: white;
}

#create {
  background-image:  url("../img/mainmenu/create.png");
}

#join {
  background-image:  url("../img/mainmenu/join.png");
}

#fastfight {
  background-image:  url("../img/mainmenu/fastfight.png");
}

#garage {
  background-image:  url("../img/mainmenu/garage.png");
}

#admin {
  background-image:  url("../img/mainmenu/admin.png");
}
