/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

Use the values from the spacing system for properties related to spacing, such as:
margin
padding
width
height
top, right, bottom, left (for positioning)
gap (for flexbox and grid)



FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

Use the values from the font size system specifically for the font-size property.

*/

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

.margin-bottom-6rem {
  margin-bottom: 6rem !important;
}
/* main {
  margin-bottom: 5rem;
} */

html {
  font-size: 62.5%;
}

body {
  font-family: "Inter", sans-serif;
  color: #eee;
  background-color: #222;
}

.header-placeholder {
  height: 8rem;
  visibility: hidden;
  margin-bottom: 6rem;
}

.header {
  /* box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); */
  margin-bottom: 6rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #111417;
}

.header nav {
  display: flex;
  justify-content: space-between;
  max-width: 107rem;
  margin: 0 auto;
  align-items: center;
  padding: 2rem;
  background-color: #111417;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 6.4rem;
  height: 6.4rem;
}

.navigation {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.custom-kofi {
  transform: scale(0.9);
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform-origin: top left;
}

.github {
  font-size: 3.6rem;
  fill: #ff5f5f;
}

.github:hover {
  opacity: 0.8;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: #f25151;
}

.description {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0rem 2rem;
  margin-bottom: 2rem;
}

.description__title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.description__text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #ddd;
}

.timer-icon {
  color: #f03e3e;
}

.video-url {
  max-width: 102rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  /* background-color: #1f2937; */
  border-radius: 0.5rem;
  /* background-color: #333; */
}

.video-url__container {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0rem 2rem;
}

.video-url__label {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #fff;
}

.video-url__input {
  width: 80%;
  padding: 1rem;
  font-size: 1.8rem;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  border: none;
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
  color: #333;
}

.video-url__input::placeholder {
  color: #777;
  font-family: inherit;
}

.video-url__input:focus {
  box-shadow: 0 0 0 1px #f25151;
}
.video-url__button,
.calculate-btn {
  padding: 1rem 2rem;
  font-size: 1.8rem;
  background-color: #c24141;
  color: #fff;
  border: none;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  cursor: pointer;
  margin-left: -3px;
  transition: all 0.3s;
  font-family: inherit;
}

.video-url__button:hover {
  background-color: #c85454;
}

.playlists {
  max-width: 102rem;
  margin: 0 auto;
  /* background-color: #1e40af; */
  background-color: #333;
  border-radius: 0.5rem;
  transform: scale(0);
  transform-origin: top;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
  padding: 4rem 2rem;
  margin-bottom: 6rem;
  display: block;
  -webkit-transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
  -moz-transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
  -ms-transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
  -o-transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
}

.hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
  transform: scale(0);
}
.block {
  display: block;
}

.loading--hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.loading {
  text-align: center;
}
.loading__img {
  width: 10rem;
}
.playlists__container {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, auto);
  row-gap: 2.4rem;
}

.playlists__title {
  font-size: 2.4rem;
  /* margin-bottom: 2rem; */
  font-weight: 600;
  color: #fff;
  grid-column: 1 / -1;
}

.playlist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn__container {
  text-align: center;
}

.calculate-btn {
  width: 50%;
  display: inline-block;
  border-radius: 0.5rem;
  margin-top: 3.2rem;
  /* background-color: #172554; */
  background-color: #222;
}

.calculate-btn:hover {
  background-color: #f25151;
}

.playlist__name,
.playlist__duration {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.playlist__checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  /* background-color: #f57878; */
  border-radius: 4px;
  cursor: pointer;
  border: none;
  z-index: 1;
}
footer {
  text-align: center;
  font-size: 1.4rem;
  padding: 1.6rem 0;
  background-color: #111417;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.heart-icon {
  color: #f03e3e;
}

.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #333 ;
  margin: 15% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 30%;
  font-size: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-button {
  color: #aaa;
  font-size: 2.8rem;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.remove-footer-position {
  position: static;
}
