@font-face {
    font-family: 'CustomFont';
    src: url('fonts/DK\ Cool\ Crayon.ttf') format('truetype');
}

body {
    margin: 0;
    font-family: 'CustomFont', sans-serif;
    background: linear-gradient(to bottom, #3E6A6F, #1E3A5F);
    text-align: center;
    color: white;
    overflow-x: hidden; 
}

nav {
    background: linear-gradient(to right, #67edff, #4682B4);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    transition: background 1s ease-in-out; 
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

nav ul li a:hover {
    transform: scale(1.1); 
}

nav ul li a::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: #FFD700;
    position: absolute;
    left: 50%;
    bottom: 5px;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.hero-heading {
    font-size: 42px;
    color: #FFD700;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

#hero {
    margin-top: 20px;
}

.hero-description {
    font-size: 22px;
    color: #FFEE99;
    margin: 30px auto 0;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center; 
}

.section-heading {
    font-size: 34px;
    color: #FFB347; 
}

.feature-heading {
    font-size: 34px;
    color: #FFAEC9; 
}

.riddle-intro, .features-intro {
    font-size: 18px;
    color: #FFEE99;
    margin-bottom: 20px;
}

html {
    scroll-behavior: smooth;
}

.doodle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes floatSmooth {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.doodle {
    position: absolute;
    font-size: 50px;
    user-select: none;
    transition: top 1.5s linear;
    opacity: 0.8;
    animation: floatWavy 5s ease-in-out infinite alternate;
}

@keyframes floatWavy {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(8deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

h1, h2, h3, h4, h5, h6, p, button, input, .bubble, .description, .download-btn {
    font-family: 'CustomFont', sans-serif;
}

@keyframes pulseDraw {
    0% { stroke-dashoffset: 300; stroke-width: 1px; opacity: 0; }
    50% { stroke-width: 3px; opacity: 1; }
    100% { stroke-dashoffset: 0; stroke-width: 2px; opacity: 1; }
}

.letter {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: pulseDraw 0.8s ease-in-out forwards;
    opacity: 0;
    display: inline-block;
}
.text {
    letter-spacing: 1px;
}

.chalkboard-hero {
    background: url('images/chalkboard\ with\ doodles.png') no-repeat center center;
    background-size: contain; 
    width: 100%;
    max-width: 1400px;
    height: 700px; 
    padding: 20px;
    margin: 10px auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    
}

.chalkboard-hero svg {
    width: 80%;
    max-width: 600px; 
    height: auto; 
    margin: -5% auto 0; 
    transform: translateY(10%);
}

.chalkboard-riddle {
    background: url('images/blackboard.jpeg') no-repeat center;
    background-size: contain;
    padding: 50px;
    border-radius: 15px;
    display: inline-block;
    height: 300px;
}
.fade-out {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#riddle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#riddle-text {
    margin-top: 70px;
}

#answer-input {
    margin-bottom: 20px;
}

#finalMessage {
    color: rgb(140, 228, 255);
    font-size: 30px;
    margin-top: 70px;
    opacity: 0; 
    animation: fadeIn 2s forwards; 
    text-align: center; 
    line-height: 1.5; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, #67edff, #4682B4);
    padding-top: 100px;
}

#riddle-title {
    font-size: 40px;
    color: white;
    font-family: 'Chalkduster', cursive;
}
.description {
    font-size: 18px;
    color: white;
    margin-top: 10px;
}
/*
.download-btn {
    background-color: yellow;
    color: black;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 20px auto 0;
    border-radius: 5px;
    display: block; 
    transition: all 0.3s ease, background-image 0.5s ease;
}
.download-btn:hover {
    background-image: linear-gradient(
        45deg,
        #0f9d58 20%,
        #4285f4 40%, 
        #f4b400 60%, 
        #db4437 80% 
    );
    background-size: 300% 300%;
    background-position: 100% 50%;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: gradient-shift 0.8s ease-in-out infinite alternate;
}
*/
.download-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

#riddles {
    background: linear-gradient(to bottom, #4682B4, #2C3E50);
    padding: 50px 20px;
    padding-top: 100px;
}

.doodle-1 { top: 5%; left: 10%; }
.doodle-2 { top: 15%; right: 15%; }
.doodle-3 { bottom: 10%; left: 20%; }
.doodle-4 { bottom: 25%; right: 25%; }
.doodle-5 { top: 40%; left: 50%; }

.center {
    width: 80%;
    max-width: 600px;
    margin: auto;
}

input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    font-size: 18px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    outline: none;
    color: #FFD580;
    text-align: center;
    caret-color: #FFD580;
}

input:focus {
    color: #A7C7E7;
    border-color: #FFAEC9; 
}

button {
    background: #FFD700;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.hidden {
    display: none;
    font-size: 24px;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.emoji-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    bottom: -50px;
    font-size: 40px;
    opacity: 0.9;
    animation: floatUp 3s ease-out forwards;
}

#features {
    background: linear-gradient(to bottom, #2C3E50, #4682B4);
    padding: 50px 20px;
    padding-top: 100px;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.bubble {
    position: relative;
    display: inline-block;
    padding: 20px 30px;
    background-color: white;
    font-size: 1.5rem;
    text-align: center;
    white-space: nowrap;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    border: 5px solid  rgb(252, 103, 103);
    color: #1d3557;
    font-weight: bold;
}

.bubble:nth-child(3),
.bubble:nth-child(4) {
    margin-top: 20px;
}

.bubble::before, .bubble::after {
    content: '';
    position: absolute;
    background-color: white;
    border: 5px solid #ffec7f;
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.bubble::before {
    width: 30px;
    height: 30px;
    bottom: -20px;
    left: 20px;
}

.bubble::after {
    width: 20px;
    height: 20px;
    bottom: -40px;
    left: 5px;
}
.download-heading {
    color: #9dec9d;
}
.download-description{
    font-size: 1.2rem;
    margin-top: 10px;
    text-align: center;
}
.download-note{
    color: #ffc37f;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

#feedback {
    background: linear-gradient(to bottom, #1E3A5F, #2C3E50);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.feedback-heading {
    color: #FFD700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.feedback-description {
    color: #FFEE99;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    font-size: 1.2rem;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%; 
    padding: 15px 15px 15px 45px; 
    box-sizing: border-box; 
    background-color: rgba(255,255,255,0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feedback-form textarea {
    min-height: 150px;
    padding-top: 15px;
    resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    outline: none;
}

.submit-feedback {
    background: #FFD700;
    color: black;
    border: none;
    padding: 12px 25px; 
    font-size: 1rem; 
    border-radius: 8px;
    cursor: pointer;
    margin: 10px auto 0; 
    transition: all 0.3s ease;
    font-weight: bold;
    display: block;
    width: auto;
}

.submit-feedback:hover {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
  }
  
  .modal.show {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    animation: slideUp 0.5s ease-in-out;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }
  
  .close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  footer {
    background: linear-gradient(to bottom, #1d476e, #0F1A25);
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.copyright {
    font-size: 1.05rem;
    color: #FFEE99;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn.discord:hover {
    background-color: #5865F2;
    transform: translateY(-3px);
}

.social-btn.linkedin:hover {
    background-color: #0A66C2;
    transform: translateY(-3px);
}

.social-btn.github:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* Warning Modal Styles */
.custom-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}
.custom-modal.show {
  display: flex;
  animation: fadeIn 0.5s ease-in-out;
}
.custom-modal .modal-content {
  position: relative;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  margin: auto;
  padding: 30px 20px 20px 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  color: white;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  animation: slideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}
.custom-modal .close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #FFD700;
  transition: transform 0.3s;
  z-index: 2;
}
.custom-modal .close-modal:hover {
  transform: scale(1.2);
}
.custom-modal .rocket-icon {
  width: 80px;
  margin: -50px auto 20px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}
.custom-modal .modal-body h2 {
  text-align: center;
  font-size: 2em;
  margin: 15px 0 10px 0;
  color: #FFD700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.custom-modal .modal-body p {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #FFEE99;
}
.custom-modal .modal-body ul {
  list-style: none;
  padding: 0;
  margin: 10px auto 0 auto;
  color: #9dec9d;
  font-size: 1em;
  text-align: left;
}
.custom-modal .countdown-text {
  margin-top: 10px;
  color: #ffc37f;
  font-size: 1em;
}
.custom-modal .newsletter-form {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.custom-modal .visit-btn {
  background: #FFD700;
  color: #1d3557;
  border: none;
  padding: 14px 40px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0 auto;
  display: block;
}
.custom-modal .visit-btn:hover {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: white;
  transform: translateY(-2px) scale(1.05);
}
/* ...existing code... */
.itch-logo {
  width: 150px;   /* or whatever size works */
  height: auto;
  display: block;
  margin: 20px auto; /* optional: center the image */
  cursor: pointer;
}

@media (max-width: 1400px) {
    .chalkboard-hero {
        height: 700px;
        padding: 40px;
    }

    .chalkboard-riddle {
        height: 300px;
        padding: 50px;
    }

    .hero-heading {
        font-size: 40px;
    }

    .chalkboard-hero svg {
        width: 80%;
        margin-top: -5%;
    }

    .hero-description {
        font-size: 22px;
    }

    .section-heading, .feature-heading {
        font-size: 32px;
    }

    .bubble {
        font-size: 1.5rem;
    }

    #riddle-title {
        font-size: 40px;
    }

    #finalMessage {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .chalkboard-hero {
        height: 600px;
        padding: 30px;
    }

    .chalkboard-riddle {
        height: 250px;
        padding: 40px;
    }

    .hero-heading {
        font-size: 36px;
    }

    .chalkboard-hero svg {
        width: 70%;
        margin-top: -3%;
    }

    .hero-description {
        font-size: 20px;
    }

    .section-heading, .feature-heading {
        font-size: 30px;
    }

    .bubble {
        font-size: 1.3rem;
    }

    #riddle-title {
        font-size: 36px;
    }

    #finalMessage {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .chalkboard-hero {
        height: 500px;
        padding: 25px;
    }

    .chalkboard-riddle {
        height: 200px;
        padding: 30px;
    }

    .hero-heading {
        font-size: 32px;
    }
    .chalkboard-hero svg {
        width: 80%;
        margin-top: -2%;
    }
    .hero-description {
        font-size: 18px;
    }

    .section-heading, .feature-heading {
        font-size: 28px;
    }

    .bubble {
        font-size: 1.2rem;
    }

    #riddle-title {
        font-size: 32px;
    }

    #finalMessage {
        font-size: 26px;
    }

    nav ul {
        flex-direction: row;
        gap: 10px;
    }

    nav ul li a {
        font-size: 16px;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .chalkboard-hero {
        height: 400px;
        padding: 10px;
        margin: 5px auto;
        position: relative;
        display: block;
    }

    .chalkboard-riddle {
        height: 150px;
        padding: 20px;
    }

    .hero-heading {
        font-size: 28px;
        margin-top: 0;
        margin-bottom: -10px;

    }
    .chalkboard-hero svg {
        width: 90%;
        margin-top: 0;
        transform: translateY(20%);
        position: relative;
        z-index: 1;
    }
    .chalkboard-hero svg text {
        font-size: 38px !important; 
        transform: translateY(-20%); 
    }
    .hero-description {
        font-size: 16px;
        margin: 80px auto 0;
        position: relative;
        z-index: 2;
        max-width: 90%;
        padding: 15px;
    }
    
    .download-btn {
        font-size: 17px;
        padding: 6px 12px;
        margin: 14px auto 0; 
        position: relative;
        z-index: 2;
        display: block;
    }

    .section-heading, .feature-heading {
        font-size: 24px;
    }

    .bubble {
        font-size: 1rem;
    }

    #riddle-title {
        font-size: 28px;
    }
    .chalkboard-riddle {
        height: 180px; 
        padding: 25px 20px; 
        position: relative;
        margin-bottom: 50px;
    }

    #riddle-text {
        margin-top: 38px;
    }

    #answer-input {
        margin: 5px 0 8px;
    }

    #submit-button {
        margin-top: 60px; 
        transform: translateY(30px); 
    }
    #finalMessage {
        font-size: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        padding: 0 20px;
    }

    nav ul {
        flex-direction: row;
        gap: 5px;
    }

    nav ul li a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .doodle {
        font-size: 20px;
    }

    .feedback-heading {
        font-size: 2rem;
    }
    
    .feedback-description {
        font-size: 1rem;
    }
    
    .feedback-form input,
    .feedback-form textarea {
        padding: 12px 12px 12px 40px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .social-links {
        gap: 2rem;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
    }
    
    .social-btn i {
        font-size: 1.8rem;
    }
}

@media (max-width < 576px ) {
    .chalkboard-hero {
        height: 300px;
        margin-bottom: 40px; 
        transform: translateY(-20px);
    }

    .chalkboard-riddle {
        height: 100px;
        padding: 15px;
    }

    .hero-heading {
        font-size: 24px;
        margin-bottom: -15px;
    }
    .chalkboard-hero svg {
        width: 95%;
        transform: translateY(8%);
    }
    .chalkboard-hero svg text {
        font-size: 50px !important;
        transform: translateY(-25%); 
    }
    .hero-description {
        margin-top: 80px;
        font-size: 14px;
        padding: 10px;
    }

    .download-btn {
        margin: 15px auto 0;
    }

    .bubble {
        font-size: 0.9rem;
    }

    #riddle-title {
        font-size: 24px;
    }
    .chalkboard-riddle {
        height: 150px;
        padding: 20px 15px;
        margin-bottom: 40px;
    }

    #riddle-text {
        margin-top: 5px;
    }

    #submit-button {
        margin-top: 50px;
        transform: translateY(20px);
    }
    #finalMessage {
        font-size: 22px;
    }

    nav ul {
        flex-direction: row;
        gap: 5px;
    }

    nav ul li a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .doodle {
        font-size: 25px; 
    }

    #feedback {
        padding: 40px 15px;
    }
    
    .feedback-heading {
        font-size: 1.8rem;
    }
    
    .feedback-form input,
    .feedback-form textarea {
        padding: 12px 12px 12px 40px; 
        font-size: 0.9rem;
    }

    .feedback-container {
        padding: 20px;
    }

    .submit-feedback {
        padding: 12px 25px;
        font-size: 1rem;
    }
}



