/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, hsl(225, 44%, 14%) 0%, rgba(191, 32, 174, 1) 100%);
}

body {
  min-height: 100vh; /* Ensure body grows with content */
  background: none; /* Remove the gradient here to avoid doubling */
  font-family: Arial, sans-serif;
}

/* Styling the scrollbar for webkit browsers (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
  width: 0px; /* Set the width of the scrollbar */
}

button {
  border: 1px solid black !important;
  border-bottom: 2px solid black !important;
  transition: transform 0.1s ease, filter 0.1s ease; /* Smooth transition for transform and filter */
  -webkit-filter: drop-shadow(2px 2px 2px #00000050);
  filter: drop-shadow(2px 2px 2px #00000050);
  cursor: pointer; /* Make buttons look clickable */
}

/* Hover effect: increase size slightly */
button:hover {
  transform: scale(1.1); /* Make the button slightly bigger on hover */
}

/* Active effect: apply pressed effect */
button:active {
  transform: scale(0.95); /* Shrink the button when clicked */
  filter: drop-shadow(2px 2px 2px #00000080); /* Stronger shadow to simulate pressing */
}

main {
  display: flex; /* Use Flexbox to arrange items horizontally */
  justify-content: space-around; /* Distribute items evenly across the width */
  align-items: center; /* Vertically center the items */
  flex-direction: column;
  margin-top: 50px;
  height: 100%;
}

header {
  background-color: #681f60;
  padding-top: 10px;
  height: 80px;
  -webkit-filter: drop-shadow(2px 2px 2px #00000050);
  filter: drop-shadow(2px 2px 2px #00000050);
}

iframe {
  border-radius: 20px;
  margin-bottom: 20px;
  max-width: 444px;
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

/* Container for the header */
.header {
  display: flex; /* Use Flexbox to arrange items horizontally */
  justify-content: space-between; /* Distribute items evenly across the width */
  align-items: center; /* Vertically center the items */
  padding: 10px 20px; /* Add some padding around the header */
  margin: auto;
  border-radius: 10px;
  background-color: #be29a6; /* Dark background color */
  border: #3f0635 1px solid;
  border-bottom: #3f0635 2px solid;
  border-right: #3f0635 1.5px solid;
  color: white; /* Text color */
  width: 90%;
  max-width: 750px;
  height: 60px;
  -webkit-filter: drop-shadow(2px 2px 2px #00000050);
  filter: drop-shadow(2px 2px 2px #00000050);
}

.logos {
  display: flex;
  flex-direction: row;
}

#dropJuniorLogo {
  background: url(./images/logo.png);
  background-size: cover; /* Make the logo cover the entire area */
  background-position: center;
  background-repeat: no-repeat;
}

#dropichuLogo {
  background: url(./images/dropichu.png);
  background-size: cover; /* Make the logo cover the entire area */
  background-position: center;
  background-repeat: no-repeat;
  transform: scaleX(-1); /* This will flip the image vertically */
}

.logo {
  height: 50px; /* Limit the size of the logo */
  width: 50px; /* Set width and height to keep the logo square */
  background-size: cover; /* Make the logo cover the entire area */
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  background-color: transparent;
  border: none !important;
  display: block; /* Ensure it's displayed as a block */
  -webkit-filter: drop-shadow(2px 2px 2px #00000050);
  filter: drop-shadow(2px 2px 2px #00000050);
  transition: transform 0.1s ease;
}

.logo:hover {
  transform: scale(1.1); /* Scale the logo up on hover */
}

/* Navigation styles */
nav ul {
  list-style: none; /* Remove the default list style */
  display: flex; /* Use Flexbox for horizontal alignment */
}

nav ul li {
  margin: 0 1%; /* Space out the list items */
  display: flex;
  align-items: center; /* Vertically align the links */
  justify-content: center; /* Center the links */
}

nav ul li a {
  text-decoration: none; /* Remove underlines from links */
  color: white; /* Set text color to white */
  font-size: 12px; /* Font size for the links */
  padding: 5px 5px; /* Add padding for clickable area */
  transition: background-color 0.3s ease; /* Smooth transition for hover */
}

nav ul li a:hover {
  background-color: #555; /* Darker background on hover */
  border-radius: 5px; /* Slight rounding of corners */
}

#headerButtons {
  display: flex; /* Use Flexbox for horizontal alignment */
  align-items: center; /* Vertically align the buttons */
  justify-content: flex-end; /* Align the buttons to the right */
}

.buyButton {
  background-color: #ffe600; /* Dark background color */
  color: black !important; /* Text color */
  padding: 10px 20px; /* Add padding for clickable area */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-inline: 5px;
}

#XBTN {
  height: 38px;
  width: 38px;
  border-radius: 5px;
  background-image: url(./images/xLogo.png);
  background-size: 20px;
  margin-inline: 5px;
  background-position: center;
  background-repeat: no-repeat;
}

#TGBTN {
  height: 38px;
  width: 38px;
  border-radius: 5px;
  background-image: url(./images/tgLogo.png);
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}

.characterContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: fit-content;
  margin: auto;
  margin-bottom: 25px;
}
/* DROP JUNIOR */

#dropJuniorText {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(-5deg); /* Correct rotation syntax */
  width: fit-content;
}

#dropJuniorpreTitle {
  margin: auto;
  color: white;
  font-size: clamp(30px, 8vw, 50px); /* Scales between 30px and 50px based on viewport width */
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

#dropJuniormainTitle {
  margin: auto;
  color: #bb28c9;
  font-size: clamp(40px, 12vw, 80px); /* Scales between 40px and 80px based on viewport width */
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

h2 {
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

#dropJuniorContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#dropJuniorContainer button {
  background-color: #bb28c9;
}

#dropJunior {
  width: 250px;
  aspect-ratio: 1/1;
  background-color: transparent !important;
  border: none !important;
  background-image: url(./images/logo.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.1s ease;
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

#dropJunior:hover {
  transform: scale(1.1);
}

#dropJunior:active {
  transform: scale(0.99); /* Shrink the button when clicked */
  filter: drop-shadow(2px 2px 2px #00000080); /* Stronger shadow to simulate pressing */
}

/* DROPICHU */

#dropichuText {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(-5deg); /* Correct rotation syntax */
  width: fit-content;
}

#dropichupreTitle {
  margin: auto;
  color: white;
  font-size: clamp(25px, 7vw, 45px); /* Scales between 30px and 50px based on viewport width */
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

#dropichumainTitle {
  margin: auto;
  color: #e9da0a;
  font-size: clamp(30px, 10vw, 70px); /* Scales between 40px and 80px based on viewport width */
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

#dropichuContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#dropichu {
  width: 250px;
  aspect-ratio: 1/1;
  background-color: transparent !important;
  border: none !important;
  background-image: url(./images/dropichu.png);
  background-size: 250px;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.1s ease;
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
  position: relative;
  margin-right: 30px;
}

#dropichu:hover {
  transform: scale(1.1);
}

#dropichu:active {
  transform: scale(0.99); /* Shrink the button when clicked */
  filter: drop-shadow(2px 2px 2px #00000080); /* Stronger shadow to simulate pressing */
}

#iframes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#iframes iframe {
  margin: 10px;
}

#dropjr_game {
  width: 98vw; /* 98% of the viewport width */
  max-width: 900px; /* Never exceed 800px */
  height: 250px;
  margin-bottom: 20px;
  background-color: red;
  position: relative;
  background-image: url(./images/background.gif);
  background-size: cover;
  overflow: hidden;
  border-radius: 10px;
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

#start_game {
  position: absolute;
  width: 200px;
  height: 67px;
  left: calc(50% - 100px);
  top: 50px;
  border: unset !important;
  background-color: transparent;
  background-image: url(./images/start.png);
  background-size: cover;
}

#restart_game {
  display: none;
  position: absolute;
  width: 200px;
  height: 67px;
  left: calc(50% - 100px);
  top: 50px;
  border: unset !important;
  background-color: transparent;
  background-image: url(./images/start.png);
  background-size: cover;
}

#score {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 40px;
  color: white;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  display: none;
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

#character {
  width: 100px;
  height: 100px;
  background-image: url(./images/dropjr.gif);
  background-size: cover;
  position: absolute;
  bottom: 0;
  left: 5%;
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}

.obstacle {
  width: 100px;
  height: 45px;
  position: absolute;
  right: -100px;
  bottom: 0px;
  background-image: url(./images/spikes.png);
  background-size: cover;
  -webkit-filter: drop-shadow(5px 5px 5px #00000050);
  filter: drop-shadow(5px 5px 5px #00000050);
}
