.layout {
  height: 100vh;
  width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sidebar {
  width: 260px;
  background-color: var(--color-light);
  flex-shrink: 0;
  height: 100vh;
}

#logo {
  padding: 20px;
}

.logo {   
  border: 1px solid var(--color-light-d);
  border-radius: 8px;
  padding: 20px;  
  background-color: #fff;
  text-align: center;
}

.logo__img {
  max-width: 100%; 
}

.round {
  border-radius: 6px;
  padding: 6px 10px 5px;  
  text-align: center;
  background-color: var(--color-primary);
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
}

.players__list {
  width: 100%;
  font-size: 18px;
}

.player {
  display: flex;
  justify-content: space-between;
  padding: 6px 15px 6px 6px;
}

.player--current {
  position: relative;
  background-color: var(--color-light-d);
}

.player__current {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.player--current:after{
  content:'';
  position: absolute; /* Sets the position absolute to the top div */
  top: 50%; 
  right: 0;
  margin-top: -10px; /* Set margin equal to border px */
  width: 0;
  z-index: 1;
  height: 0;
  border-right: solid 10px var(--color-dark-d); /* Creates the notch */
  border-top: solid 10px transparent; /* Creates triangle effect */
  border-bottom: solid 10px transparent; /* Creates triangle effect */
}

.modal .player--current:after{
  display: none;
}


.player__name {
  padding: 2px 8px;
}

.player__points {
  text-align: right;
  padding-top: 3px;
  display: inline-block;
  width: 36px;
}

.player__points--win {
  color: rgb(1, 147, 18);
  font-weight: bold;
}

.player__fine {
  color: var(--color-dark);
  display: inline-block;
  padding-right: 5px;
  opacity: .5;
}

.player__color {
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 5px 2px 0;
}

.player__friends {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  padding-top: 10px;
}

.player__friend {
  padding: 6px;
  background-color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--color-light-d);
  text-align: center;
  font-size: 12px;
}

.player__friend--yes {
  border-color: var(--color-correct);
  box-shadow: 0px 0px 8px 0px var(--color-correct) inset;
}

.player__friend--maybe {
  border-color: var(--color-yellow);
  box-shadow: 0px 0px 8px 0px var(--color-yellow) inset;
}

.player__friend:hover {
  scale: 1.1;
}

.player__avatar {
  width: 54px;
  height: 54px;
  border: 0px;
}

.player__price {
  color: #000;
  font-size: 16px;
  background-color: #fffb00;
  border-radius: 3px;
  display: inline-block;
  padding: 1px 6px;
  margin-bottom: 4px;
  border: 1px solid #000;
}

.content {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-dark-d);
}

.main {
  width: calc(100vw - 260px);
  height: 100vh;
}

.disabled {
  user-select: none;
  pointer-events: none;
}

.btn--disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

.message {
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.modal {
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 480px;
  text-align: left;
  padding: 0;
  border: 1px solid var(--color-light-d);
  z-index: 5;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.modal::backdrop {
  background: #0009;
}

.modal-friend::backdrop {
  cursor: pointer;
}

.modal__head {
  background-color: var(--color-primary);
  color: #fff;
  padding: 20px 30px;
}

.modal__title {
  margin: 0;
}

.modal__body {
  padding: 20px 30px;
  overflow: auto;
}

.modal__body--center {
  text-align: center;
}

.modal__results {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.modal__results .player--current {
  background-color: #fff;
}

.modal__result {
  text-align: center;
  margin-bottom: 20px;
}

.modal__points {
  font-weight: bold;
  font-size: 22px;
}

.modal__footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  border-top: 1px solid var(--color-light-d)
}

.modal--info {
  cursor: pointer;
  width: 362px;
  margin-top: 20px;
}


.modal--friend {
  width: 400px;
  cursor: pointer;
}

.alert__gif {
  width: 312px;
  height: 312px;
  text-align: center;
}

.alert__message {
  margin: 0;
  text-align: center;
}

.resque {
  margin-top: 50px;
}

.icon--no {
  filter: grayscale(1);
  opacity: .5;
}

.askfriends {
  width: 100%;
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.choosefriends {
  width: 100%;
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.friend {
  background-color: var(--color-light);
  border: 1px solid var(--color-light-d);
  border-radius: 12px;
  padding: 15px 15px 20px;
  width: 33%;
  text-align: center;
  transition: all .3s;
  cursor: pointer;
  position: relative;
}

.friend--choose {
  width: 255px;
}

.friend:hover  {
  transform: scale(1.05);
  background-color: var(--color-light-d);
  border: 1px solid var(--color-light-dd);
}

.friend--selected, .friend--selected:hover {
  width: 255px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary-d);
  color: #fff;
}

.friend__image {
  max-width: 100%;
  max-height: 200px;
  margin: 0 auto;
}

.friend__power {
  position: absolute;
  top: -5px;
  left: 50%;
   transform: translateX(-50%);
  background-color: var(--color-primary);
  color: #fff;
  padding: 1px 8px 3px;
  border-radius: 0 0 4px 4px;
}

.friend__price {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fffb00;
  color: #000;
  padding: 2px 8px 2px;
  border: 1px solid black;
  border-radius: 4px 4px 0 0;
}

.friend__knows {
  position: absolute;
  top: 10px;
  right: 10px;
}

.friend--current {
  position: relative;
}

.friend--current:before,
.friend--current:after {
  position: absolute;
  content: '';
  height: 100%;
  width: 100%;
  top: 0%;
  left: 0%;
  border-radius: 15px;
  box-shadow: 0 0 5px var(--color-primary);
  animation: glow-grow 2s ease-out infinite;
}
.friend--current:after {
  animation-delay: 1s;
}
@keyframes glow-grow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.progress {
  padding: 15px;
}


.friend__name {
  font-weight: bold;
  font-size: 24px;
}

.friend__avatar {
  max-width: 100%;
  margin-bottom: 15px;
}

.friend__answer {
  font-size: 24px;
  text-align: center;
}

.modal--alert {
  width: 480px;
  margin-top: auto;
  font-size: 20px;
  position: fixed;
  translate: 150px 0;
}

.modal--alert h3 {
  margin-top: 0;
}

.alert {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-light-d);
}

.modal--alert::backdrop {
  background-color: #0003;
}

.modal--friends {
  width: 960px;
}

img:not([src]) {
  opacity: 0;
  border: 0;
}

.friend__image  {
  width: 200px;
  height: 200px;
}

