/* Animated blue-yellow background */
body {
  font-family: 'Comic Sans MS', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(270deg, rgb(204, 238, 255), rgb(255, 255, 204), rgb(255, 236, 153), rgb(204, 238, 255));
  background-size: 600% 600%;
  animation: gradientShift 20s ease infinite;
  color: rgb(34, 34, 34);
  overflow-x: hidden;
}

/* Gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header styling */
header {
  padding: 4em 2em;
  text-align: center;
  background: transparent;
  color: rgb(51, 51, 51);
}

h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
}

p {
  font-size: 1.3em;
  margin-top: 0;
}

/* Buttons */
.button {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.7em 1.5em;
  background: rgb(255, 204, 0);
  color: rgb(34, 34, 34);
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid rgb(255, 170, 0);
}

.button:hover {
  background: rgb(255, 224, 102);
}

/* Projects section */
#projects {
  padding: 3em 2em;
  max-width: 1000px;
  margin: 0 auto;
}

/* Project cards */
.project {
  background: rgb(255, 255, 255);
  margin: 3em 0;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-left: 10px solid rgb(255, 204, 0);
}

/* Larger, centered iframes */
.iframe-preview {
  margin-top: 1.5em;
  width: 100%;
  max-width: 850px;
  height: 500px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* View Code button styling */
.code-link {
  display: inline-block;
  margin-top: 1.2em;
  background: rgb(40, 167, 69);
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
}

.code-link:hover {
  background: rgb(30, 126, 52);
}

/* Footer */
footer {
  text-align: center;
  padding: 2em;
  background: rgb(255, 255, 255, 0.4);
  font-size: 0.9em;
}

/* Duck image style */
#duck {
  display: none;
  width: 70px;
  height: auto;
  position: absolute;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s ease;
}

#duck:hover {
  transform: scale(1.15) rotate(-5deg);
}
