body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #ADD8E6;
    color: #fff;
}

.snowflake {
    position: fixed;
    top: -10px;
    z-index: 1;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(50px);
    }
}

.container {
    display: none;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    color: white;
    width: 80%;
    max-width: 600px;
}

.container.active {
    display: flex;
}

.container div {
    margin-bottom: 20px;
    text-align: center;
}

.container h1, .container h2 {
    margin-bottom: 10px;
}

.container select, .container input, .container button {
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
}

.container button {
    cursor: pointer;
    position: relative;
}
.container div {
    margin-bottom: 20px;
    width: 100%;
}
.container div.center-align {
    text-align: center;
}
.response {
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    text-align: left;
    color: black;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}
#mood-response, #weather-response {
    text-align: left;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    margin: 0 auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.button-bar button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
}

.footer {
    position: absolute;
    bottom: 10px;
    text-align: center;
    width: 100%;
    color: white;
    font-size: 14px;
}

@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 15px;
    }
    .container select, .container input, .container button {
        font-size: 14px;
        padding: 8px;
    }
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 500px;
}
#video {
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
}
#result {
  margin-top: 20px;
  font-size: 18px;
  color: green;
}
button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}
