/***
 * CSS Reset
 * A modern CSS reset that removes default browser styles
 * Version: 1.11.3 (2024-08-25)
 * Source: https://github.com/elad2412/the-new-css-reset
 */

/* Base reset - removes all styles except display */
*:where(
    :not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)
  ) {
  all: unset;
  display: revert;
}

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Typography */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Interactive elements */
a,
button {
  cursor: revert;
}

/* Lists */
ol,
ul,
menu,
summary {
  list-style: none;
}

ol {
  counter-reset: revert;
}

/* Media */
img {
  max-inline-size: 100%;
  max-block-size: 100%;
}

/* Tables */
table {
  border-collapse: collapse;
}

/* Form elements */
input,
textarea {
  -webkit-user-select: auto;
}

textarea {
  white-space: revert;
}

meter {
  -webkit-appearance: revert;
  appearance: revert;
}

/* Preformatted text */
:where(pre) {
  all: revert;
  box-sizing: border-box;
}

/* Placeholders */
::placeholder {
  color: unset;
}

/* Hidden elements */
:where([hidden]) {
  display: none;
}

/* Content editable */
:where([contenteditable]:not([contenteditable="false"])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}

/* Draggable elements */
:where([draggable="true"]) {
  -webkit-user-drag: element;
}

/* Modal dialogs */
:where(dialog:modal) {
  all: revert;
  box-sizing: border-box;
}

/* Details summary */
::-webkit-details-marker {
  display: none;
}

html {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: hsl(217, 54%, 11%);
}

.card {
  max-width: 327px;
  background-color: hsl(216, 50%, 16%);
  border-radius: 15px;
  padding: 24px;
}

.card__image-container {
  margin-bottom: 24px;
}

.card img {
  border-radius: 15px;
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.card__description {
  font-size: 18px;
  font-weight: 300;
  color: hsl(215, 51%, 70%);
  margin-bottom: 16px;
}

.card__details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__price,
.card__time {
  display: flex;
  align-items: center;
}

.card__price span {
  font-size: 15px;
  font-weight: 600;
  color: hsl(178, 100%, 50%);
  margin-left: 6.48px;
}

.card__time span {
  font-size: 15px;
  font-weight: 600;
  color: hsl(215, 51%, 70%);
  margin-left: 6.48px;
}

.border-line {
  width: 100%;
  height: 1px;
  background-color: hsl(217, 32%, 27%);
  margin: 24px 0;
}

.card__creator {
  display: flex;
  align-items: center;
}

.card__creator img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 2px solid white;
  margin-right: 16px;
}

.card__creator p {
  font-size: 15px;
  font-weight: 400;
  color: hsl(215, 51%, 70%);
}

.card__creator span {
  color: white;
}

@media (min-width: 768px) {
  .card {
    max-width: 350px;
  }

  .card__image-container {
    cursor: pointer;
    position: relative;
  }

  .card__image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 302px;
    background-color: hsla(178, 100%, 50%, 0.5);
    background-image: url(../images/icon-view.svg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    opacity: 0;
  }

  .card__image-container:hover::before {
    opacity: 1;
  }
  .card__title:hover,
  .card__creator span:hover {
    color: hsl(178, 100%, 50%);
    cursor: pointer;
  }
}
