@font-face {
  font-family: TwitchFont;
  src: url("https://twitch-message-creator.vercel.app/assets/Twitchy.TV-f92c9ab7.ttf") format("truetype");
}

@font-face {
  font-family: Comentario1;
  src: url("https://twitch-message-creator.vercel.app/assets/fuenteComentario1-ddc148b8.woff2") format("truetype");
}

@font-face {
  font-family: Comentario2;
  src: url("https://twitch-message-creator.vercel.app/assets/fuenteComentario2-ed121b1a.woff2") format("truetype");
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

header {
  font-family: Comentario2;
  background-color: #a970ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10vh;
  gap: 20px;
}

header > img {
  height: 60px;
  object-fit: contain;
  width: 60px;
}

.container-main {
  background-color: #303031;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  padding: 20px 10px 20px;
}

.message {
  background-color: #18181b;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: left;
  padding: 4px 14px;
  font-weight: 700;
  gap: 10px;
  overflow: hidden;
  width: auto;
  max-width: 480px;
  margin: 0 auto;
}

.username {
  font-family: Comentario2;
  font-weight: 700;
  color: #7c37e2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
  text-shadow: 0 0 4px #000000, 0 0 10px #000000, 0 0 18px #000000;
}

.message-text {
  font-family: Comentario1;
  max-width: 28ch;
  color: #ffffff;
  text-shadow: 0 0 4px #000000, 0 0 10px #000000, 0 0 18px #000000;
}

.message > .embleds-div {
  justify-content: left;
  display: flex;
  gap: 3px;
}

.message > div > img {
  height: 18px;
  width: 18px;
}

input,
textarea {
  border: 1px solid #a970ff;
  border-radius: 10px;
  background-color: #303031;
  color: #fff;
  padding: 5px;
  width: 100%;
}

textarea {
  width: 100%;
  height: 100px;
  resize: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000080;
  z-index: 999;
  justify-content: center;
  align-items: center;
  font-family: Comentario2;
  color: #fff;
}

.modal.open {
  display: flex;
}

.modal-content {
  background-color: #18181b;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px #0003;
}

.modal h2 {
  margin-top: 0;
}

.modal input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal button {
  background-color: #a970ff;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal button:hover {
  background-color: #a970ff;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
}

.nav-emblems {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background-color: #18181b;
  color: #fff;
  padding: 10px;
  border-radius: 20px;
  font-family: Comentario2;
  height: auto;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

nav > div > ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  padding: 0;
  height: 150px;
}

li {
  list-style: none;
}

nav > div > ul > li > img {
  height: 18px;
  width: 18px;
  cursor: pointer;
}

.button-select-color {
  height: 18px;
  width: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.inputs-message {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #18181b;
  padding: 10px;
  border-radius: 20px;
  font-family: Comentario2;
  color: #fff;
  height: auto;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.save-comment {
  background-color: #a970ff;
  color: #fff;
  border-radius: 10px;
  border: none;
  font-family: Comentario2;
  padding: 8px;
  cursor: pointer;
}

ul > li {
  position: relative;
  width: 18px;
  height: 18px;
}

.image-selected {
  opacity: 0.4;
  border: 0.5px solid red;
  border-radius: 5px;
}

img {
  border: 0.5px solid transparent;
}

textarea,
input {
  font-family: Comentario1;
}

@media (max-width: 600px) {
  header {
    height: auto;
    padding: 10px;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 1.1rem;
    text-align: center;
  }

  header > img {
    height: 40px;
    width: 40px;
  }

  .container-main {
    padding-top: 10px;
  }
}

@media (min-width: 900px) {
  .container-main {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px 20px;
  }

  nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .nav-emblems,
  .inputs-message {
    width: 220px;
    max-width: none;
    margin: 0;
    height: 100%;
  }

  .message {
    max-width: 520px;
    margin: 0;
  }

  h1 {
    font-size: 1.4rem;
    text-align: left;
  }
}

.modal-input {
  max-width: 250px;
  margin-right: 30px;
  border: 1px solid #a970ff;
  border-radius: 10px;
  background-color: #303031;
  color: #fff;
  padding: 5px;
}

.alert-invalid-link-modal {
  position: relative;
  background-color: #e70b0b;
  color: #4d0505;
  padding: 5px;
  font-size: 0.8rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  font-family: Comentario2;
  color: #fff;
  text-align: center;
  padding: 10px 0 20px;
  background-color: #303031;
}

body,
html {
  padding: 0;
  margin: 0;
  height: 100%;
  background-color: #303031;
}

body {
  display: flex;
  flex-direction: column;
}
