@import url("https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lobster Two", serif;
}
.navbar {
  width: 100%;
  height: 10rem;
  background: hsla(166, 100%, 50%, 1);

  background: linear-gradient(
    90deg,
    hsla(166, 100%, 50%, 1) 44%,
    hsla(111, 100%, 50%, 1) 100%
  );

  background: -moz-linear-gradient(
    90deg,
    hsla(166, 100%, 50%, 1) 44%,
    hsla(111, 100%, 50%, 1) 100%
  );

  background: -webkit-linear-gradient(
    90deg,
    hsla(166, 100%, 50%, 1) 44%,
    hsla(111, 100%, 50%, 1) 100%
  );

  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#00FFC3", endColorstr="#26FF00", GradientType=1 );
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
}
.navbar a {
  text-decoration: none;
  font-size: 1.62rem;
}
.navbar a:hover {
  color: #bd0052;
  text-decoration: underline;
}
.carousel {
    margin-left: 15%;
    margin-right: 15%;
}

ul.slides {
    display: block;
    position: relative;
    height: 600px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.slides * {
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

ul.slides input { display: none; }

.slide-container { display: block; }

.slide-image {
    display: block;
    position: absolute;
    inset: 0;                 /* shorthand for top/right/bottom/left */
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .7s ease-in-out; /* animate only what changes */
}

.slide-image img {
    width: 100%;              /* CHANGED: fill container */
    height: 100%;
    object-fit: cover;        /* CHANGED: avoid distortion */
}

.carousel-controls {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 999;
    font-size: 100px;
    line-height: 600px;
    color: #fff;
}

.carousel-controls label {
    display: none;
    position: absolute;
    padding: 0 20px;
    opacity: 0;               /* default hidden */
    transition: opacity .2s;
    cursor: pointer;
}

.slide-image:hover + .carousel-controls label { opacity: 0.5; }
.carousel-controls label:hover { opacity: 1; }

.carousel-controls .prev-slide {
    width: 49%;
    text-align: left;
    left: 0;
}

.carousel-controls .next-slide {
    width: 49%;
    text-align: right;
    right: 0;
}

.carousel-dots {
    position: absolute;
    left: 0; right: 0; bottom: 20px;
    z-index: 999;
    text-align: center;
}

.carousel-dots .carousel-dot {
    display: inline-block;
    width: 30px; height: 30px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    margin: 10px;
    cursor: pointer;          /* CHANGED: nicer UX */
}

/* Show selected slide */
input:checked + .slide-container .slide-image {
    opacity: 1;
    transform: none;
    transition: opacity 1s ease-in-out;
}

/* Make arrows visible on active slide even without hover (touch) */
input:checked + .slide-container .carousel-controls label {
    display: block;
    opacity: 0.5;             /* CHANGED: was 0; now visible */
}

/* Active dot (CHANGED: img-* -> recipe-* and #img-dot-* -> #dot-*) */
input#recipe-1:checked ~ .carousel-dots label#dot-1,
input#recipe-2:checked ~ .carousel-dots label#dot-2,
input#recipe-3:checked ~ .carousel-dots label#dot-3,
input#recipe-4:checked ~ .carousel-dots label#dot-4,
input#recipe-5:checked ~ .carousel-dots label#dot-5 {
    opacity: 1;
}

/* REMOVE this (no .nav element in HTML)
input:checked + .slide-container .nav label { display: block; }
*/

