@media (max-width: 768px) {
  /* Styles for screens with a width of 768px or less */
}

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

  .splide__slide {
    opacity: 0.6;
  }
  
  
  .splide__slide.is-active {
    opacity: 1;
  }

  @font-face {
    font-family: grabfont;
    src: url(fonts/grab.ttf);
}

/* styles.css */

body {
  font-family: grabfont;
  margin: 0;
  padding: 0;
  display: block;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0;
}

.container {
  display: flex;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.text-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-container input {
  margin-bottom: 10px;
  padding: 5px;
}

.image-container {
  position: relative;
}

.hidden {
  display: none;
}

#overlayText {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 20px;
  color: white;
  background-color: #2d894583;
  padding: 5px 5px;
  border-radius: 5px;
  height: 150px;
  width: 150px;
}

#main-carousel{
  margin-left: 10px;
}

#bylines {
  cursor: pointer;
}



/* Path: styles.css */

/* Reset some default styles */
body, p, ul, ol, li {
  margin: 0;
  padding: 0;
}

/* Basic styling for the container */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Styling for the text container */
.text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Styling for buttons */
button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #0056b3;
}

/* Styling for input elements */
input[type="text"], input[type="color"], input[type="range"], input[type="checkbox"] {
  margin: 5px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Styling for text color picker */
#font-color-picker {
  width: 40px;
}

/* Styling for text background color picker */
#font-bg-color-picker {
  width: 40px;
}

/* Styling for text background width and height sliders */
#font-bg-width-slider, #font-bg-height-slider {
  width: 100%;
}

/* Styling for mex-text-input section */
.mex-text-input {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Styling for mex-form */
#mex-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Styling for Generate Taglines button */
#mex-form button[type="submit"] {
  align-self: flex-start;
  background-color: #90B699;
}

/* Styling for Delete Taglines button */
#deleteTaglines {
  align-self: flex-start;
  background-color: #ff6347;
}

/* Styling for result section */
#gairesult {
  margin-top: 20px;
}

/* Styling for bylines list */
#bylines {
  list-style-type: none;
  padding: 0;
}

/* Styling for bylines list items */
#bylines li {
  margin-bottom: 5px;
  color: #333;
}


/* Path: styles.css for control items */
#control-containers {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #f7f7f7;
}

.label-left {
  flex: 1;
  font-weight: bold;
}

.control-right {
  flex: 1;
  text-align: right;
}

/* Additional styling for input elements */
input[type="range"] {
  width: 100%;
}

input[type="color"] {
  width: 100px;
  height: 30px;
}

#main-carousel.splide {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000; /* Adjust the z-index as needed */
}

#main-carousel img {
  max-width: 440px; /* Ensure the image doesn't exceed its parent's width */
  max-height: 210px; /* Ensure the image doesn't exceed its parent's height */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto; /* Center the image horizontally */
}