@import url('https://fonts.googleapis.com/css2?family=Anton&family=Chakra+Petch:wght@300&family=Cormorant+Garamond:wght@700&family=Mukta&family=Nunito+Sans:opsz,wght@6..12,200&family=Oswald:wght@200&family=Prompt:wght@300&family=Proza+Libre&family=Zilla+Slab:wght@300&display=swap');
:root {
  --font-family: 'Mukta', sans-serif;
  --background-colorfooter: rgb(53, 51, 51);
  --background-colorcards-clickbutton: rgb(38, 90, 152);
}
html {
  padding: 0;
}
body {
  /* display: flex;
  justify-content: center;
  align-items: center; */
  height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0;
}
/* styles for the container */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 80vh;
  position: relative; /* This makes sure the jokes section can be positioned relative to this container */
  font-family: var(--font-family);
}
.jokes {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
/* Style the search bar  */
.search-container {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#search-input {
  padding: 10px 20px;
  width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
  transition: box-shadow 0.3s;
  /* 9/10/23 10:55 deleted margin left */
  text-align: center;
}
#search-input:focus {
  box-shadow: 0 0 5px var(--background-colorcards-clickbutton);
}
#search-Content {
  padding: 10px 20px;
  width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
  transition: box-shadow 0.3s;
  margin-left: 13em;
}
#search {
  padding: 0.7em;
  margin-left: 5px;
}
.carousel {
  width: 1344px;
  height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Changed back  overflow*/
  overflow: hidden;
  position: relative;
  padding-top: 50px;
}
.cards {
  display: flex;
  width: max-content;
  transition: transform 0.3s ease-out;
  transform: translateX(0px);
  margin-left: 32px;
}
.card {
  width: 300px;
  height: 360px;
  margin-right: 30px;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  cursor: pointer;
  position: relative;
  perspective: 1000px;
}
.card:hover {
  transform: scale(1.1);
  z-index: 2;
}
.card .front,
.card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  border: 1px solid black;
  border-radius: 10px;
}
.card .back {
  transform: rotateY(180deg);
  background-color: var(--background-colorcards-clickbutton);
}
.back {
  display: flex;
  flex-direction: column;
  font-size: small;
  align-items: center; /* Center-align text and code */
  padding: 10px; /* Add padding inside the back of the card */
  background-color: rgb(87, 79, 79);
}
.back pre,
p {
  color: white;
}
.prev,
.next {
  width: 100px;
  height: 40px;
  color: var(--background-colorfooter);
  border: none;
  cursor: pointer;
  margin: 10px;
  border-radius: 20px;
  font-size: 16px;
  transition: background-color 0.3s;
  border-style: ridge;
}
.prev:hover,
.next:hover {
  background-color: var(--background-colorcards-clickbutton) !important;
}
.buttons-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 20px;
  /* Delete padding right 11:07 */
}
.container {
  text-align: center;
  margin-bottom: auto;
  /* Added height of container 1:15 */
  height: 100px;
}
/* Style for the button */
#fetchNumber {
  color: #0f0c0c;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 20px;
  border-style: outset;
}
#fetchNumber:hover {
  background-color: var(--background-colorcards-clickbutton);
}
/* Style for the trivia text */
.trivia-text {
  color: #333;
  margin-top: 20px;
  font-size: 14px;
  font-family: var(--font-family);
}
.jokes {
  position: relative;
  display: flex;
  height: 6vh;
  width: 78%;
  background-color: #555;
  border-radius: 5px;
  margin-top: 5px;
}
.jokes #textArea {
  position: relative;
  width: 90%;
  padding: 0.8em;
  border-style: double;
  background-color: #e2eef4;
}
#randomJokes {
  border-radius: 5px;
  cursor: pointer;
  /* Changed from 1.3 em to 1.9 em 1:07 */
  padding-left: 1.9em;
  padding-right: 1.3em;
  /* Added style for border */
  border-style: ridge;
}
#randomJokes:hover {
  background-color: var(--background-colorcards-clickbutton);
  transform: scale(1.1);
}
.footerMain {
  margin-top: 77px;
  background-color: var(--background-colorfooter);
  width: 100%;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 400;
}
.footerMain #label {
  display: flex;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  /* padding-top: 20px; */
}
#label {
  color: white !important;
}
#contributors {
  margin-bottom: 10px;
  color: white;
}
#contributors a {
  text-decoration: none;
  color: #fffefe;
  margin: 5px;
}
/* media queries */
@media screen and (min-width: 768px) and (max-width: 992px) {
  .search-container #search-input {
    width: 25%;
  }
  .container {
    text-align: center;
    margin-bottom: auto;
  }
  .carousel {
    width: 660px;
  }
}
@media screen and (min-width: 375px) and (max-width: 768px) {
  .footerMain #contributors {
    font-size: 11px;
    color: var(--background-colorcards-clickbutton);
  }
  #randomJokes {
    font-size: 11px;
  }
  .prev {
    font-size: 11px;
  }
  .next {
    font-size: 11px;
  }
  #fetchNumber {
    font-size: 11px;
  }
  .jokes #textArea {
    width: 100%;
    height: fit-content;
    font-size: 12px;
  }
  .carousel {
    width: 310px;
    padding-left: 35px;
  }
  .back {
    width: 322px;
  }
}
