:root {
  --color-primary: #4a5bc0;
  --color-primary-active: #394897;
  --color-secondary: #fff9eb;
  --color-tertiary: #c4c4c4;
  --color-button: #ff9722;
  --color-button-active: #f5890e;
  --color-result: #05df05;
  --color-text: #444444;
  --color-white: #ffffff;
  --color-black: #272727;
  --color-transparent: rgb(0, 0, 0, 0);
}

/* General styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Banner */
.header-banner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-banner img {
  width: 80vh;
  padding-left: 5rem;
}

/* Game section */
.game-section {
  width: 100%;
  background-color: var(--color-secondary);
  border: 0.25rem solid var(--color-black);
  border-radius: 3rem 3rem 0 0;
  display: flex;
  padding: 3rem 5rem 3rem 5rem;
  justify-content: space-between;
  position: bottom;
  flex-grow: 1;
}

.input-section {
  width: 65%;
  max-width: 65%;
  background-color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  border-right: 4px solid var(--color-black);
  padding-right: 3rem;
}

.button-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.result-section {
  background-color: var(--color-secondary);
  width: 35%;
  max-width: 35%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding-left: 3rem;
}

/* Titles */
.main-title {
  font-size: 6rem;
  font-family: "Poppins", serif;
  font-weight: 600;
  color: var(--color-white);
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.result-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: start;
  align-items: center;
}

/* Input and button containers */
.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.text-field {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.errorMessage {
  margin-left: 1rem;
  color: red;
}

.input-name {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2rem;
  border: 2px solid var(--color-black);
  margin-right: -2px;
  border-radius: 2rem 0 0 2rem;
  font-size: 1rem;
}

.button-container {
  justify-content: center;
}

.result-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
}

.result-buttons {
  display: flex;
  width: 100%;
  justify-content: stretch;
  gap: 2rem;
}

/* Text input styles */
.input-title {
  flex: 1;
  padding: 10px 15px;
  font-size: 1rem;
  border: 2px solid #333;
  border-right: none;
  border-radius: 25px 0 0 25px;
  font-family: "Poppins", serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Button styles */
button {
  background-color: var(--color-button);
  color: var(--color-white);
  padding: 1rem 1rem;
  font-size: 1.2rem;
  border: 2px solid var(--color-black);
  border-radius: 1rem;
  box-shadow: 0.4rem 0.4rem var(--color-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 500;
  gap: 1rem;
}

/* BLUE BUTTONS */
.button-add {
  background-color: var(--color-primary);
  border-radius: 0 2rem 2rem 0;
  translate: -0.4rem -0.4rem;
}

.button-add:active,
.button-add.keyboard {
  background-color: var(--color-primary-active);
  box-shadow: none;
  translate: 0 0;
}

.button-name,
.button-hide {
  background-color: var(--color-primary);
  align-items: center;
}

.button-name:active,
.button-hide:active {
  background-color: var(--color-primary-active);
  box-shadow: none;
  translate: 0.4rem 0.4rem;
}

/* ORANGE BUTTONS */
.button-draw:active,
.button-reset:active {
  background-color: var(--color-button-active);
  box-shadow: none;
  translate: 0.4rem 0.4rem;
}

/* DISABLED BUTTONS */
.button-draw:disabled,
.button-hide:disabled,
.button-reset:disabled {
  background-color: var(--color-transparent);
  color: var(--color-tertiary);
  box-shadow: none;
  border: 2px solid var(--color-tertiary);
  cursor: auto;
  pointer-events: none;
}

/* Lists */
ul {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  list-style-type: none;
}

.friends-list {
  gap: 1rem;
  margin-top: 1rem;
  list-style-type: none;
}

.result-list {
  color: var(--color-result);
  font-size: 4.5rem;
  font-weight: bold;
}

.result-list li {
  max-width: 100%;
}

#secretFriend p {
  max-width: 100%;
  text-wrap: wrap;
  overflow-wrap: break-word;
}

/* Hide name button */

#hiddenIcon {
  color: #ffbe75a2;
  width: 100%;
  text-align: center;
  font-size: 8rem;
}

/* Responsiveness */
@media (max-width: 1635px) {
  /* Titles */
  .section-title,
  .result-title {
    font-size: 2.5rem;
  }

  /* Buttons */
  button {
    font-size: 1rem;
  }

  /* Game section */
  .game-section {
    padding: 3rem;
  }

  .input-section {
    padding-right: 1.5rem;
  }

  .result-section {
    padding-left: 1.5rem;
  }

  /* Lists */
  .result-list {
    font-size: 3.5rem;
  }
}

@media (max-width: 1328px) {
  /* Titles */
  .main-title {
    font-size: 4rem;
  }

  .section-title,
  .result-title {
    font-size: 2rem;
  }

  /* Buttons */
  button {
    padding: 0.8rem 0.8rem;
  }

  /* Game Section */
  .input-section {
    padding-right: 1.5rem;
    border-right: 2px solid var(--color-black);
  }

  .result-section {
    padding-left: 1.5rem;
  }

  /* Lists */
  .result-list {
    font-size: 3.2rem;
  }
}

@media (max-width: 1100px) {
  /* Banner */
  .header-banner img {
    width: 45vw;
    padding-left: 2.5rem;
  }

  /* Titles */
  .main-title {
    font-size: 4.5rem;
  }

  .section-title,
  .result-title {
    font-size: 1.8rem;
  }

  /* Buttons */
  button {
    border-radius: 0.8rem;
  }

  /* Game Section */
  .input-section {
    padding-right: 1.5rem;
    border-right: 2px solid var(--color-black);
  }

  .result-section {
    padding-left: 1.5rem;
  }

  /* Lists */
  .result-list {
    font-size: 3rem;
  }

  /* Input and button containers */
  .input-name {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .result-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 770px) {
  /* Banner */

  .header-banner img {
    width: 40vh;
    padding-left: 2.5rem;
  }

  /* Titles */
  .main-title {
    font-size: 3.5rem;
    margin-left: 2rem;
  }

  .result-title,
  .section-title {
    font-size: 2rem;
  }

  /* Game section */
  .game-section {
    flex-direction: column;
    height: 100%;
  }

  .input-section {
    padding-right: 0;
    padding-bottom: 2rem;
    border-right: none;
    border-bottom: 2px solid var(--color-black);
    max-width: 100%;
    width: 100%;
    height: 100%;
  }

  .result-section {
    width: 100%;
    max-width: 100%;
    padding-left: none;
    padding-top: 1rem;
    gap: 2rem;
    flex-direction: row;
  }

  .result-buttons {
    flex-direction: column;
    width: 50%;
  }

  .result-text {
    gap: 0.5rem;
  }

  /* Lists */
  .result-list {
    max-width: 100%;
    font-size: 3.25rem;
  }
}

@media (max-width: 550px) {
  /* Banner */
  .header-banner img {
    width: 35vh;
    padding-left: 1.5rem;
  }

  /* Titles */
  .main-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
    text-align: start;
  }

  .result-title {
    font-size: 1.5rem;
  }

  /* Game section */
  .game-section {
    padding: 2rem;
  }

  /* Input and button containers */
  .input-name {
    font-size: 1rem;
  }

  .result-buttons {
    width: auto;
  }

  /* Buttons */
  button {
    font-size: 1.25rem;
    padding: 0.8rem 0.8rem;
    gap: 0;
    justify-content: center;
  }

  button span {
    display: none;
  }

  .button-add {
    padding: 0.4rem 0.8rem;
  }

  .button-name {
    font-size: 1rem;
    gap: 0.5rem;
  }
}
