@font-face {
  font-family: "Hachi Maru Pop";
  src: url("./fonts/HachiMaruPop-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("./fonts/Caveat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
    background: #ffd4d4;
    font-family: "Hachi Maru Pop", "Roboto", "Arial";
    color: #333;
    margin: 0;
}

.container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
}

h1, h2 {
    text-align: center;
}

h1 {
    margin: 30px 0;
}

* {
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.header img {
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

.description img {
    width: 50px;
}

.drop-zone {
    padding: 12px;
    border: 2px dashed #444;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.clips-section {
    background:#1c1c1c;
    padding: 30px;
}

.clip {
    background: #2a2a2a;
    border-radius: 12px;
    max-height: 150px;
    width: 100%;
    overflow: hidden;
    border: 3px solid #444;
    transition: border-color 0.3s;
}

.clip:hover {
    border-color: #ffd4d4;
}

.clip img {
    width: 100%;
    display: block;
}

.photos {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding: 50px 0;
}

.photo {
    padding: 12px 12px 10px;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    text-align: center;
    font-family: sans-serif;
    transform: rotate(-3deg);
    position: relative;
    cursor: grab;
    user-select: none;
}

.photo:nth-child(2n) {
    transform: rotate(4deg);
}

.photo:nth-child(3n) {
    transform: rotate(-7deg);
}

.photo:nth-child(4n) {
    transform: rotate(1deg);
}

.photo-content {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    overflow: hidden;
}

.photo-description {
    color: #000;
    font-size: 20px;
    margin-top: 5px;
    font-family: "Caveat", "Hachi Maru Pop", "Roboto", "Arial";
    line-height: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2em;
}

.photo .clip {
    height: 100%;
    width: 100%;
    border: none;
    border-radius: 0;
    max-height: unset;
}

.photo .clip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo:hover {
    transform: rotate(0deg) scale(1.05);
    transition: 0.3s;
}

.slots {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 15px;
}

.slot-content {
    overflow: hidden;
    border: 1px dashed #fff;
    border-radius: 5px;
    aspect-ratio: 6 / 7.3;
}

.slot-number {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.slot-body {
    position: relative;
}

.slot .photo {
    transform: rotate(0);
    box-shadow: none;
    height: 100%;
}

.check-btn {
    display: block;
    margin: 30px auto 50px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    font-family: "Hachi Maru Pop", "Roboto", "Arial";
    border: 2px solid #333;
    background: none;
    transition: 0.3s;
}

.album {
    background: #eab8e3;
    padding: 30px 0 50px;
}

/* .check-btn:hover {
    border-color: #ffd4d4;
    color: #ffd4d4;
} */
  
#result {
    margin: 30px auto;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.slot.correct .slot-body::after {
    content: '';
    background: #fff url('../resources/img/success.svg') no-repeat center center / 25px auto;
    position: absolute;
    top: -15px;
    right: -10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.slot.wrong .slot-body::after {
    content: '';
    background: #fff url('../resources/img/error.svg') no-repeat center center / 20px auto;
    position: absolute;
    top: -15px;
    right: -10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1600px) {
    .container {
        max-width: 100%;
        padding: 0 50px;
    }
}

@media (max-width: 1380px) {
    .photos, .slots {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .photo-description {
        font-size: 18px;
    }
}

@media (max-width: 980px) {
    .photos, .slots {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .photos, .slots {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .photos, .slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .photos, .slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* @keyframes colorChange {
    0% {
      background: #5f00b8;
    }
  
    50% {
      background: #a855f7;
    }
  
    100% {
      background: #5f00b8;
    }
  } */