@font-face {
  font-family: 'oswald';
  src: url('assets/fonts/oswald.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@keyframes sparkle {
  0%, 100% {
    text-shadow:
      0 0 5px rgb(255, 213, 0), /* Soft white glow */
      0 0 10px rgba(255, 230, 0, 0.5); /* Wider, fainter glow */
  }
  50% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 1),   /* Brighter main glow */
      0 0 15px rgba(255, 255, 255, 0.7), /* Brighter wider glow */
      0 0 20px rgba(255, 255, 0, 0.3);  /* A hint of yellow for 'sparkle' */
  }
}

*, body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
}

.pudding {
    max-width: 100%;
    background-color: aliceblue;
    z-index: 1;
    position: relative;
}

.pudding-image {
    display: block;
    width: 100%;
}

.time-location {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    width: 100%;
    height: 20vh;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    mask-image: linear-gradient(
        to bottom,
        black 90%,
        transparent 100%
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 90%,
        transparent 100%
    );

    & .title {
        font-size: clamp(2rem, 5vw, 3.75rem);
        font-weight: 400;
        font-family: 'oswald', sans-serif;
        padding-top: 20px;
        color: #5053ef;

        animation: sparkle 2.2s infinite alternate;
        text-shadow: none;
    }

    .location {
        font-family: 'swansea', sans-serif;
        font-weight: 100;
        text-transform: lowercase;
        font-size: clamp(1.5rem, 4vw, 3.75rem);
        color: rgb(55, 32, 4);
    }
}

.about {
    background-image: url('assets/puddinginthepark2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: rgb(47, 25, 0);

    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    font-family: 'swansea', sans-serif;
    font-weight: 100;

    & .about-title {
        font-weight: 100;
        text-transform: lowercase;
        font-size: clamp(2rem, 5vw, 3.75rem);
        text-align: center;
        width: 100%;
    }

    & .definition {
        /* flex-grow: 1; */
        padding-top: 8vh;
        font-size: clamp(1.7rem, 3vw, 3.75rem);
    }
    & .actions {
        padding-top: 8vh;
        font-size: clamp(1.7rem, 3vw, 3.75rem);
        width: 100%;
    }

    & .link {
    padding-top: 4vh;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 400;
    font-family: 'oswald', sans-serif;
    color: #5053ef;
    width: 100%;
}
}

@media (min-width: 500px) {
    .time-location {
        height: 40vh;
    }
    .about {
       width: 100%;

        & .about-title {
            font-size: clamp(2.5rem, 4vw, 4rem);
        }

        & .definition {
            padding-top: 6vh;
            font-size: clamp(1.8rem, 2.5vw, 2.5rem);
            line-height: 1.4;
            max-width: 400px;
            margin: 0 auto;
        }

        & .actions {
            padding-top: 6vh;
            font-size: clamp(1.8rem, 2.5vw, 2.5rem);
        }

        & .link {
            padding-top: 3vh;
            font-size: clamp(2rem, 3vw, 2.8rem);
        }
    }
}

@media (min-width: 1200px) {
    .about {

        & .about-title {
            font-size: 4rem;
        }

        & .definition {
            font-size: 2.2rem;
            line-height: 1.5;
            max-width: 600px;
        }

        & .actions {
            font-size: 2.2rem;
        }

        & .link {
            font-size: 2.5rem;
        }
    }
}