body {
  margin: 0;
  background-color: #D9DED9;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
 /* transition: all 0.2s ease;*/
  --color-primary: #000000;
  --color-secondary: #C32626;
  touch-action: none;
}

.rip {
  opacity: 0.75;
  background-color: #ffffff;
}

img {
  pointer-events: none;
}

.layout {
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: 64px 1fr 250px;
  grid-template-rows: auto 84px;
  grid-template-areas:
    "teambar main sidebar "
    "underbar underbar sidebar ";
}

.teambar {
  grid-area: teambar;
  background-color: #F5F5F6;
  font-weight: 700;
  font-size: 8px;
  line-height: 10px;
  color: #48677B;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  align-content: stretch;
}

.teambar .menu {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  align-content: stretch;
}

.teambar .menu div {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 5px;
}

.teambar .menu div img {
  height: auto;
  max-width: 100%;
}

.teambar .menu div:hover {
  background: #afd0e6;

}

.teambar .menu div img {
  margin: 5px
}

.underbar {
  grid-area: underbar;
  background-color: #8EA08D;
  padding: 0 18px;
  display: flex;
  justify-content: space-around;
  align-items: center;

}

.swatch .label {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: #1A3500;
}

.swatch .cluster {
  display: flex;
  align-items: flex-start;
}

.swatch .cluster div {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-width: 2px 1px;
  border-style: solid;
  border-color: #214824;
  background: #689F38;
  cursor: pointer;
}

.swatch .cluster div:hover,
.swatch .cluster div.selected:hover {
  background: #2A6D99;
}

.swatch .cluster [data-addFrame]:hover {
  background: #e4ea4e;
}

.swatch .cluster [data-removeFrame]:hover {
  background: #e83f3f;
}

.swatch .cluster div:first-child {
  border-left-width: 2px;
  border-radius: 6px 0 0 6px;
}

.swatch .cluster div:last-child {
  border-right-width: 2px;
  border-radius: 0 6px 6px 0;
}

.swatch .cluster div.selected {
  background: #214824;
}

.sidebar {
  grid-area: sidebar;

}

main {
  grid-area: main;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
}

#rotated {
  transition-property: all;
  transition-duration: 0.8s;
  transition-timing-function: ease-out;
  --rotation3d: 0;
  transform: rotate3d(1, 0, 0, calc(var(--rotation3d)* 1deg));
}

#logo {
  align-self: flex-start;
  writing-mode: vertical-lr;
  /*writing-mode: sideways-lr;*/
  transform: rotate(180deg);
  background-color: #2A6D99;
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration-line: underline; 
  padding: 35px 0;
  width: 100%;
  color: #FFFFFF;
}


#center {
  transform: translate(50%, -50%);
  background: black;
  color: white;
  height: 5px;
  width: 5px;
}


div#field {
  --scale: 0.5;
  width: calc(var(--scale) * 1664px);
  height: calc(var(--scale) * 1141px);
  padding: 20px;
  margin: 0px;
  background: #618B25;
  background-image: url('./assets/field.svg');
  /* background-size:  calc(var(--scale) * 1664px) calc(var(--scale) * 1141px);*/
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all .8s ease-in-out;
}

.animating div.points {
  transition: all .8s ease-in-out;
}

.animating .shadows,
.animating .line {
  visibility: hidden; 
  opacity: 0;
}
.line, .shadows  {
  transition: opacity 620ms ease-in-out;
  transition-delay: 100ms;
  opacity: 1;
}

div.points {
  font-family: 'JetBrains Mono';
  z-index: 2;
  user-select: none;
  cursor: crosshair;
  width: 25px;
  height: 25px;
  padding: 0px;
  border-radius: 25px;
  margin: 0;
  position: absolute;
  left: 350px;
  top: 50px;
  background: orange;
  border: 1.5px solid black;
  transform: scale(1.5);
  background: linear-gradient(90deg, var(--color-secondary) 20%, var(--color-primary) 20%, var(--color-primary) 80%, var(--color-secondary) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

div.shadows {
  z-index: 1;
  user-select: none;
  width: 12px;
  height: 12px;
  border-radius: 25px;
  margin: 0;
  position: absolute;
  left: 350px;
  top: 50px;
  background-color: #547226;
  pointer-events: none;
}

div.points span {
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0.25px;
}

div.points.gr {
  background: var(--color-primary);
}



#bola {
  background-color: white;
  border: 5px solid black;
}

@media only screen and (max-device-width: 1023px) {

  .teambar .menu div .label,
  .label {
    display: none;
  }

  .layout {
    grid-template-columns: 48px 1fr 250px;
    grid-template-rows: auto 48px;
  }

  div.points {
    transform: scale(1.2);
  }

  body {
    overscroll-behavior-y: contain;
  }
}

div.points span {
  filter: url(#outlineBlack);
}

.delete-this {
  visibility: hidden;
  position: absolute;
  top: 0;
  right: 0;
  height: 1px;
  width: 1px;
}



.modal-container {
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.modal-container button {
  color: #fff;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: #2A6D99;
}

#close {
  background-color: #C32626
}

.modal-container.show-modal {
  display: block;
}

.modal {
  background-color: rgb(183, 255, 195);
  border-radius: 3px;
  box-shadow: 0, 0, 10px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  max-width: 100%;
  width: 300px;
}


.line {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  height: 10px;
  position: absolute;
}