/* Theme Variables */
:root {
  --bg-color: #222831;
  --text-color: #ffffff;
  --btn-bg: #efefef;
  --btn-bg-hover: #fafafa;
  --btn-bg-active: #e1e1e1;
  --error-color: #ff0000;
  --control-gradient: linear-gradient(90deg, rgba(234, 140, 44, 1) 0%, rgba(228, 99, 72, 1) 100%);
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  overflow: hidden;
}

header {
  text-align: center;
}

.game-screen,
.game-layout {
  width: 100vw;
  height: 100vh;
}

.controls {
  height: 100%;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100vw;
  height: 100vh;
}

.hidden {
  display: none !important;
}

h1 {
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.user-form {
  width: 100%;
  margin-top: 60px;
}

.form-row-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.error {
  text-align: center;
}

.input {
  border: none;
  padding: 0.5rem;
  background-color: var(--btn-bg);
  color: black;
  font-size: 1.2rem;
  width: 170px;
}

.btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  background-color: var(--btn-bg);
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn.btn-start {
  font-size: 2.2rem;
}

.btn:hover {
  background-color: var(--btn-bg-hover);
}

.btn:active,
.btn:focus {
  background-color: var(--btn-bg-active);
}

.user-creation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
}

.error {
  color: var(--error-color);
  margin-top: 0.5rem;
}

.user-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}

.countdown {
  font-size: 1.5rem;
  font-weight: bold;
}

.controls {
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: var(--control-gradient);
  padding: 1rem;
}

.control-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

.control-btn {
  display: none;
  font-size: 1.5rem;
  padding: 0.5rem;
  width: 3rem;
}

.control-icon {
  width: 5rem;
  transform-origin: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.control-icon-wrapper{
  will-change: transform;
  -webkit-transform: translateZ(0); /* For Safari optimization */
}


.arrowed-box-container {
  margin-top: 60px;
  border: 7px solid #ff9800
}

.arrowed-box {
  position: relative;
  width: 316px;
  height: 316px;
}

.arrowed-box__content {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.arrow {
  position: absolute;
  background-color: #222831;
}

.arrow.left,
.arrow.right {
  width: 35px;
  height: 168px;
}


.arrow.top,
.arrow.bottom {
  width: 168px;
  height: 37px;
}

.arrow img {
  width: 35px;
  height: 37px;
  transform-origin: center;
}

.arrow.top {
  top: -18.5px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow.top img {
  position: relative;
  transform: rotate(90deg);
  left: 66px;
}

.arrow.right {
  top: 50%;
  right: -18.5px;
  transform: translateY(-50%);
}

.arrow.right img {
  position: relative;
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  top: 65px;
}

.arrow.bottom {
  bottom: -18.5px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow.bottom img {
  position: relative;
  transform: rotate(-90deg);
  left: 66px;
}

.arrow.left {
  top: 50%;
  left: -18.5px;
  transform: translateY(-50%);
}

.arrow.left img {
  position: relative;
  transform: rotate(0deg);
  top: 65px;
}

.start-wrapper {
  margin-top: 108px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

footer {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.players-list-wrapper{
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items:center;
}

.players-list {
  list-style: none;
  font-weight: bold;
}

.players-list li {
  margin-top: 1rem;
  list-style: none;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1;
}

.players-list img {
  width: 1.8rem;
  height: 1.8rem;
  margin-right: .7rem;
  vertical-align: text-top;
  display: inline-block;
}
