/* Basic Reset */
    * { margin: 0; padding: 0; box-sizing: border-box; }

    /* Full-Screen Setup */
    body, html {
      height: 100%;
      width: 100%;
      font-family: 'Poppins', sans-serif;
      background-color: #98FF98;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    /* Main Wrapper */
    .container {
      width: 100%;
      max-width: 100%;
      padding: 30px;
      text-align: center;
    }

    h1 {
      font-size: 2em;
      color: #5D3FD3;
    }

   /* Journey Visual */
.journey {
  display: flex;
  align-items: center;
  width: 100%;
  
  background-color: white;
 
}

#journeySection {
  
  padding: 20px;
  background-color: white;
  margin-top: 20px;
  border-radius: 15px; /* Adding corner radius */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Adding a soft shadow */
}

#inputSection{
  padding: 20px;
  background-color: white;
  margin-top: 20px;
  border-radius: 15px; /* Adding corner radius */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Adding a soft shadow */
}

   .road {
  position: relative;
  height: 130px;
  background: url('../images/road.jpg') center/cover no-repeat;
  flex-grow: 1;
  margin: 0 10px;
}

    /* Icons */
    .house, .flag {
      width: 80px;
      height: 90px;
    }

    .house {
      background: url('../images/house.png') center/cover;
    }

    .flag {
      background: url('../images/end.png') center/cover;
    }

    /* Hide message by default */
#rotateMessage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background-color: yellow;
  z-index: 1000;
  display: none; /* Hidden by default */
}

/* Show message when in portrait mode (width < 768px) */
@media (max-width: 768px) and (orientation: portrait) {
  #rotateMessage {
    display: block;
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #ff6347; /* You can change the color to suit your design */
    font-weight:700;
  }
}


#arrivalInput {
height: 50px;
    width: 130px;
    font-size: 20px;
padding:10px;
font-family:'Poppins';
font-weight: 700;
}

#modalArrivalInput {
height: 50px;
    width: 130px;
    font-size: 20px;
padding:10px;
font-family:'Poppins';
font-weight: 700;
}

    /* Car */
   .car {
    position: absolute;
    top: 30px;
    background: url('../images/car2.png') center/contain no-repeat;
    width: 220px;
    height: 60px;
    transition: left 0.5s linear;
    
    /* Add zoom effect */
    animation: zoomEffect 3s ease-in-out infinite;  /* 1 second duration, infinite loop */
}

@keyframes zoomEffect {
    0% {
        transform: scale(1); /* Original size */
    }
    50% {
        transform: scale(1.1); /* Zoom in slightly */
    }
    100% {
        transform: scale(1); /* Return to original size */
    }
}


    /* Countdown Display */
    #countdown {
      font-size: 1em;
      color: #333;
      margin-top: 10px;
      font-weight: 600;
    }

    /* General Button Styling */
    button {
      font-size: 1.2em;
      padding: 10px;
      margin-top: 15px;
      width: 80%;
      max-width: 200px;
      border: none;
      border-radius: 10px;
      color: white;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .button-container {
    display: flex; /* Use Flexbox */
    justify-content: space-between; /* Push buttons to the far ends */
    align-items: center; /* Vertically align buttons if needed */
    width: 100%; /* Make the container span the full width */
    padding: 0 10px; /* Optional: Add some padding */
    box-sizing: border-box; /* Ensure padding doesn’t affect width */
}

    /* Specific Button Colors */
    #setArrivalButton, #modalUpdateButton, #updateButton, #modalUpdateArrivalButton  {
        background-color: #9966FF; /* Bright Amethyst */
    color: #FFFFFF; /* White text for contrast */
    border: none; /* Removes default border */
    padding: 10px 20px; /* Adds padding for a larger button */
    font-size: 16px; /* Increases font size */
    font-family: 'Poppins', sans-serif;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to pointer on hover */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Adds a slight shadow for depth */
    transition: all 0.3s ease; /* Smooth hover animation */
    }
#waitFactsButton, #boredButton {
    background-color: #9966FF; /* Bright Amethyst */
    color: #FFFFFF; /* White text for contrast */
    border: none; /* Removes default border */
    padding: 7px 20px; /* Adds padding for a larger button */
    font-size: 16px; /* Increases font size */
    font-family: 'Poppins', sans-serif;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to pointer on hover */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Adds a slight shadow for depth */
    transition: all 0.3s ease; /* Smooth hover animation */
    display: inline-flex; /* Enable flexbox */
    flex-direction: column; /* Stack emoji and text vertically */
    align-items: center; /* Center align the content horizontally */
    justify-content: center; /* Center align content vertically */
    text-align: center; /* Center the text */
    margin: 20px;
    font-weight: 600;
}

#waitFactsButton .emoji,
#boredButton .emoji {
    font-size: 24px; /* Adjust size of emoji */
}


    #updateButton, #newJourneyButton {
      background-color: #A3CED9; /* Bright Amethyst */
    color: #5D3FD3; /* White text for contrast */
    border: none; /* Removes default border */
    padding: 10px 20px; /* Adds padding for a larger button */
    font-size: 16px; /* Increases font size */
    font-family: 'Poppins', sans-serif;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to pointer on hover */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Adds a slight shadow for depth */
    transition: all 0.3s ease; /* Smooth hover animation */
    }

    #setArrivalButton:hover, #updateButton:hover, #modalUpdateButton:hover {
      background-color: #00994d;
    }

     #modalNewJourneyButton, #modalCancelButton, #waitFactsCloseButton, #closeCarModalButton, #closeHouseModalButton, #closeFlagModalButton, #boredCloseButton {
      background-color: #ff6666;
        /* Bright Amethyst */
    color: #FFFFFF; /* White text for contrast */
    border: none; /* Removes default border */
    padding: 10px 20px; /* Adds padding for a larger button */
    font-size: 16px; /* Increases font size */
    font-family: 'Poppins', sans-serif;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to pointer on hover */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Adds a slight shadow for depth */
    transition: all 0.3s ease; /* Smooth hover animation */
    }

    #newJourneyButton:hover, #modalNewJourneyButton:hover, #modalCancelButton:hover {
      background-color: #cc0000;
    }

    /* Modal Styling */
    .modal {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: white;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
      text-align: center;
      z-index: 1000;
      width: 90%;
      max-width: 70%;
    }

.backdrop {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Dark grey with opacity */
  z-index: 999; /* Below the modal, but above the main content */
}

    .modal input {
      margin: 10px 0;
      padding: 10px;
      font-size: 1.1em;
      width: 80%;
    }

    /* Confetti Effect */
    .confetti {
      position: fixed;
      width: 5px;
      height: 10px;
      background: #f0a;
      top: -10px;
      opacity: 0.8;
      animation: fall 3s infinite;
    }

    @keyframes fall {
      0% { transform: translateY(0); opacity: 1; }
      100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
    }

    /* Car Selection Modal */
#carGrid {
  display: block;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 10px; /* Space between grid items */
  padding: 10px; /* Padding around the grid */
}

.car-grid img {
  width: 100px;
  height: 50px;
  cursor: pointer;
  border: 5px solid transparent;
  transition: border-color 0.3s ease;
}


.house-grid img {
  width: 80px;
  height: 90px;
  cursor: pointer;
  border: 5px solid transparent;
  transition: border-color 0.3s ease;
}

.house-grid img:hover {
  border-color: #5D3FD3; /* Highlight on hover */
}



