@media (min-width: 768px) {
  body {
    font-family: "Comic Sans MS", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
  }
}

@media (max-width: 768px) {
  body,
  html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    font-family: "Comic Sans MS", sans-serif;
    overflow-x: hidden;
  }
}

#feedback {
  position: absolute;
  top: 80px;
  left: 54%;
  transform: translateX(-50%);
  background-color: #0d607c;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: none;
  color: white;
  font-size: 18px;
}

#feedback.show {
  display: block;
  animation: fadeInOut 2s ease-in-out;
}

/* SolarEnergy CSS Start */

.container {
  display: flex;
  align-items: center;
  gap: 100px;
}

.left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

.divider {
  width: 1px;
  background-color: #ccc;
  height: 100%;
}

.title {
  position: absolute;
  top: 20px;
  right: 10px;
  background-color: #0d607c;
  color: white;
  padding: 15px 100px;
  text-align: center;
  border-radius: 8px;
}

.right .row,
.right .row-content {
  display: flex;
  align-items: center;
  margin-top: 60px;
}

.row {
  margin-left: -70px;
}

.arrow {
  margin: 0 10px;
  height: 60px;
}

.back-btn {
  position: absolute;
  bottom: 20px;
  right: 10px;
  background-color: #0d607c;
  padding: 16px 16px;
  text-align: center;
  cursor: pointer;
  width: 100px;
  border-radius: 8px;
  text-decoration: none;
}
.back-btn a {
  text-decoration: none;
  color: white;
}

.row-content {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  margin-left: 160px;
}

.divider {
  width: 2px;
  height: 80vh;
  color: black;
  margin-left: 80px;
}

.icon-names {
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
}

.left-arrow-icons {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 160px;
  gap: 10px;
}

.images {
  height: 70px;
}

.left-arrow-icons {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 150px;
  gap: 20px;
}

.left-arrows {
  max-height: 63px;
  max-width: 70px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.left-arrows2 {
  max-height: 63px;
  max-width: 70px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.right .row .drop-zone,
.right .row-content .drop-zone {
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  margin: 0 10px;
}

.arrow {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right {
  position: relative;
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 15vh;
  }

  .title {
    position: static;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 2vh;
  }

  .left {
    flex-direction: row; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .icon-item {
    margin-bottom: 0;
    width: auto;
    text-align: center;
  }

  .divider {
    width: 100%;
    height: 1px;
    margin: 20px 0;
  }

  .left-arrow-icons {
    position: static;
    flex-direction: row;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    width: 100%;
    margin-left: 0;
  }

  .right .row,
  .right .row-content {
    flex-direction: column;
    align-items: center;
  }

  .row {
    margin-left: 0;
    margin-bottom: 20px;
  }

  .back-btn {
    position: static;
    bottom: 0px !important;
    width: 250px;
    margin-top: 20px;
    align-self: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .images {
    max-width: 70px; 
    max-height: 70px;
  }

  .left-arrows {
    max-width: 50px;
    max-height: 50px;
  }

  #feedback{
    margin-top: 20px;
  }
}


/* Mobile Responsiveness */
@media (max-width: 480px) {
  .left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px; 
    width: 100%;
  }

  .icon-item {
    margin-bottom: 0;
    width: auto;
    text-align: center;
  }

  .left-arrow-icons {
    flex-direction: row; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px; 
    width: 100%;
    margin-left: 0;
  }

  .drop-zone {
    width: 70px;
    height: 70px;
    margin: 5px;
  }

  .images {
    max-width: 50px; 
    max-height: 50px;
  }

  .left-arrows {
    max-width: 40px;
    max-height: 40px;
  }

  .title {
    padding: 10px;
    font-size: 14px;
    margin-top: 2vh;
    width: auto;
  }

  .back-btn {
    display: none;
    width: auto;
    padding: 10px;
    font-size: 14px;
    position: static;
    bottom: 0px !important;
  }
}

/* SolarEnergy End */

/* Geothermal start */

.right-geothermal {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: -50px;
}

.row-geothermal {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 45px;
}

.row-content-geothermal {
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
  margin-left: -70px;
}

.row-geothermal-right-789 {
  display: flex;
  margin-bottom: 10px;
  margin-left: 200px;
}
.row-geothermal-right-6 {
  display: flex;
  margin-bottom: 10px;
  margin-left: 400px;
}
.right {
  margin-top: -40px;
}

.row-geothermal,
.row-geothermal-right,
.row-geothermal-right-6,
.row-geothermal-right-789 {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
}

.left-arrow-icons-geothermal {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 250px;
  gap: 25px;
}

.icon-item-geothermal {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.images-geothermal {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  height: 70px;
  width: 75px;
}

.left-geothermal {
  display: flex;
  flex-direction: column;
}

.right-geothermal {
  position: relative;
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
  .left-geothermal {
    flex-direction: row; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .icon-item-geothermal {
    margin-bottom: 0;
    width: auto;
    text-align: center;
  }

  .left-arrow-icons-geothermal {
    position: static;
    flex-direction: row; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    width: 100%;
    margin-left: 0;
  }

  .right-geothermal .row-geothermal,
  .right-geothermal .row-content {
    flex-direction: column;
    align-items: center;
  }

  .row-geothermal {
    margin-left: 0;
    margin-bottom: 20px;
  }

  .images-geothermal {
    max-width: 70px;
    max-height: 70px;
  }

  .back-btn-geothermal {
    position: static;
    width: 250px;
    margin-top: 20px;
    align-self: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .left-geothermal {
    flex-direction: row; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px; 
    width: 100%;
  }
  .images-geothermal {
    max-width: 50px; 
    max-height: 50px;
  }

  .icon-item-geothermal {
    margin-bottom: 0;
    width: auto;
    text-align: center;
  }

  .left-arrow-icons-geothermal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px; 
    width: 100%;
    margin-left: 0;
  }

  .images-geothermal {
    max-width: 80px;
    max-height: 80px;
  }

  .back-btn-geothermal {
    display: none;
    width: 90%;
    padding: 10px;
    font-size: 14px;
  }
}

/* Geothermal End */

/* Tidal Start */

.right-tidal {
  display: flex;
  flex-direction: column;
}

.row-tidal {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.row-content-tidal {
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
}

.row-tidal-right-789 {
  display: flex;
  margin-bottom: 10px;
  margin-left: 225px;
}
.row-tidal-right-6 {
  display: flex;
  margin-bottom: 10px;
  margin-left: 448px;
}

.row-tidal,
.row-tidal-right,
.row-tidal-right-6,
.row-tidal-right-789 {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
}

.left-arrow-icons-tidal {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 250px;
  gap: 25px;
}

.icon-item-tidal {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.images-tidal {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  height: 70px;
  width: 75px;
}

.left-tidal {
  display: flex;
  flex-direction: column;
}

/* Tidal End */

/* MainPage start */
.main-container {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: white;
}

.energy-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.energy-item-container {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}
.energy-item {
  background-color: #1e5d76;
  color: white;
  padding: 15px 50px;
  border-radius: 8px;
  font-size: 18px;
  min-width: 220px;
  text-align: center;
  cursor: pointer;
}
.energy-item a {
  text-decoration: none;
  color: white;
}
.icon {
  font-size: 24px;
  margin-left: 15px;
  color: #1e5d76;
}

.total-drop-zone {
  width: 100%;
  padding: 100px;
  border-radius: 8px;
  height: 350px;
  margin-left: -90px;
}
.drop-zone {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-down {
  width: 90px;
  height: 90px;
  position: absolute;
  margin-left: 235px;
}

.dropped {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* #feedback {
  position: absolute;
  top: 10px;
  left: 54%;
  transform: translateX(-50%);
  background-color: #0d607c;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: none;
  color: white;
  font-size: 18px;
} */

#feedback.show {
  display: block;
  animation: fadeInOut 2s ease-in-out;
}

.images:hover,
.left-arrows:hover,
.left-arrows2:hover {
  transform: scale(1.1) rotate(-5deg);
}

.images-geothermal:hover,
.left-arrows:hover,
.left-arrows2:hover {
  transform: scale(1.1) rotate(-5deg);
}

.drop-zone {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.drop-zone:hover {
  transform: rotate(-2deg);
}

.dropped {
  animation: popIn 0.5s ease-out;
}

.show {
  display: block;
  font-size: 15px;
  text-align: center;
  margin-top: 10px;
  margin-left: 20px;
}

.success {
  color: white;
  padding: 10px;
  border-radius: 5px;
}

.failure {
  color: white;
  background-color: red;
  padding: 10px;
  border-radius: 5px;
}

/* Effects styles here */

@keyframes popJump {
  0% {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.feedback.show {
  animation: popJump 0.6s ease-out;
}
@keyframes jumpBounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-50px);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-25px);
  }
  100% {
    transform: translateY(0);
  }
}

.dropped {
  animation: jumpBounce 0.8s ease-out;
}


@keyframes makeItRain {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(600px) rotate(360deg);
    opacity: 0;
  }
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
}

