html, body {
margin: 0;
padding: 0;
height: 100%;
font-family: sans-serif;
background: #000;
color: #fff;
overflow: hidden;
}
#particles-js {
position: fixed;
width: 100%;
height: 100%;
z-index: 0;
top: 0;
left: 0;
}
.content {
position: relative;
z-index: 1;
min-height: 100vh;
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 60px;
}
.container {
background: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 15px;
max-width: 500px;
width: 90%;
box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
h2 {
text-align: center;
margin-bottom: 1.5rem;
color: #4caf50;
}
input, select, button {
width: 100%;
padding: 10px;
background: darkgray;
opacity: 0.4;
margin-top: 10px;
border-radius: 6px;
border: none;
font-size: 1rem;
box-sizing: border-box;
}
button {
background: #ff4747;
color: white;
cursor: pointer;
transition: background 0.3s ease;
}
button:hover {
background: #e03e3e;
}
label {
margin-top: 10px;
display: block;
}
.flex-row {
display: flex;
gap: 10px;
align-items: center;
margin-top: 10px;
}
.flex-row select,
.flex-row button {
flex: 1;
}
#submit-loading {
display: none;
margin-left: 8px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#fetch-catfact-button {
margin-top: 10px;
width: 100%;
padding: 10px;
font-size: 1rem;
border: none;
border-radius: 6px;
background-color: #ff4747;
color: white;
cursor: pointer;
}
#responseModal {
display: none;
position: fixed;
z-index: 10;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba(0,0,0,0.6);
align-items: center;
justify-content: center;
}
#responseMessage {
background: #111;
padding: 20px;
border-radius: 10px;
text-align: center;
max-width: 300px;
}
#date-time {
text-align: center;
margin-top: 20px;
font-size: 0.9rem;
color: #ccc;
}
#catfact-text {
margin-top: 15px;
font-style: italic;
text-align: center;
}