|
:root { |
|
--wattpad-orange: #FF8F00; |
|
--wattpad-orange-light: #FFB74D; |
|
--white: #FFFFFF; |
|
--light-gray: #f5f5f5; |
|
--dark-gray: #333333; |
|
--shadow-color: rgba(0, 0, 0, 0.1); |
|
} |
|
|
|
* { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
} |
|
|
|
@keyframes fadeIn { |
|
from { opacity: 0; transform: translateY(20px); } |
|
to { opacity: 1; transform: translateY(0); } |
|
} |
|
|
|
@keyframes slideIn { |
|
from { transform: translateX(-100%); } |
|
to { transform: translateX(0); } |
|
} |
|
|
|
@keyframes pulse { |
|
0% { transform: scale(1); } |
|
50% { transform: scale(1.1); } |
|
100% { transform: scale(1); } |
|
} |
|
|
|
@keyframes typing { |
|
0% { transform: translateY(0px); } |
|
28% { transform: translateY(-7px); } |
|
44% { transform: translateY(0px); } |
|
} |
|
|
|
body { |
|
font-family: 'Source Sans Pro', sans-serif; |
|
line-height: 1.6; |
|
background-color: var(--light-gray); |
|
color: var(--dark-gray); |
|
min-height: 100vh; |
|
} |
|
|
|
.container { |
|
max-width: 800px; |
|
margin: 0 auto; |
|
padding: 20px; |
|
animation: fadeIn 0.8s ease-out; |
|
} |
|
|
|
.animate-header { |
|
text-align: center; |
|
margin-bottom: 40px; |
|
padding: 30px; |
|
background-color: var(--white); |
|
border-radius: 15px; |
|
box-shadow: 0 4px 20px var(--shadow-color); |
|
transition: transform 0.3s ease; |
|
} |
|
|
|
.animate-header:hover { |
|
transform: translateY(-5px); |
|
} |
|
|
|
.logo-container { |
|
font-size: 3em; |
|
color: var(--wattpad-orange); |
|
margin-bottom: 20px; |
|
animation: pulse 2s infinite; |
|
} |
|
|
|
h1 { |
|
color: var(--wattpad-orange); |
|
font-family: 'Playfair Display', serif; |
|
font-size: 2.5em; |
|
margin-bottom: 10px; |
|
text-shadow: 2px 2px 4px var(--shadow-color); |
|
} |
|
|
|
.input-section { |
|
display: flex; |
|
gap: 15px; |
|
margin-bottom: 30px; |
|
animation: slideIn 0.5s ease-out; |
|
} |
|
|
|
.input-wrapper { |
|
flex: 1; |
|
position: relative; |
|
display: flex; |
|
align-items: center; |
|
} |
|
|
|
.input-icon { |
|
position: absolute; |
|
left: 15px; |
|
color: var(--wattpad-orange); |
|
font-size: 1.2em; |
|
} |
|
|
|
input[type="text"] { |
|
flex: 1; |
|
padding: 15px 20px 15px 45px; |
|
border: 2px solid #ddd; |
|
border-radius: 25px; |
|
font-size: 16px; |
|
transition: all 0.3s ease; |
|
width: 100%; |
|
background-color: var(--white); |
|
} |
|
|
|
input[type="text"]:focus { |
|
outline: none; |
|
border-color: var(--wattpad-orange); |
|
box-shadow: 0 0 10px rgba(255, 143, 0, 0.2); |
|
transform: scale(1.02); |
|
} |
|
|
|
button { |
|
background-color: var(--wattpad-orange); |
|
color: var(--white); |
|
border: none; |
|
padding: 15px 30px; |
|
border-radius: 25px; |
|
cursor: pointer; |
|
font-size: 16px; |
|
font-weight: 600; |
|
transition: all 0.3s ease; |
|
display: flex; |
|
align-items: center; |
|
gap: 10px; |
|
} |
|
|
|
button:hover { |
|
background-color: var(--wattpad-orange-light); |
|
transform: translateY(-2px); |
|
box-shadow: 0 4px 15px rgba(255, 143, 0, 0.3); |
|
} |
|
|
|
.loading-spinner { |
|
display: none; |
|
text-align: center; |
|
margin: 40px 0; |
|
animation: fadeIn 0.5s ease-out; |
|
} |
|
|
|
.spinner { |
|
width: 50px; |
|
height: 50px; |
|
border: 4px solid var(--light-gray); |
|
border-top: 4px solid var(--wattpad-orange); |
|
border-radius: 50%; |
|
animation: spin 1s linear infinite; |
|
margin: 0 auto 20px; |
|
} |
|
|
|
.typing-indicator { |
|
display: flex; |
|
justify-content: center; |
|
gap: 5px; |
|
margin-top: 15px; |
|
} |
|
|
|
.typing-indicator span { |
|
width: 8px; |
|
height: 8px; |
|
background-color: var(--wattpad-orange); |
|
border-radius: 50%; |
|
animation: typing 1.4s ease-in-out infinite; |
|
} |
|
|
|
.typing-indicator span:nth-child(1) { animation-delay: 0.2s; } |
|
.typing-indicator span:nth-child(2) { animation-delay: 0.4s; } |
|
.typing-indicator span:nth-child(3) { animation-delay: 0.6s; } |
|
|
|
.story-container { |
|
background-color: var(--white); |
|
padding: 40px; |
|
border-radius: 15px; |
|
box-shadow: 0 4px 20px var(--shadow-color); |
|
display: none; |
|
animation: fadeIn 0.8s ease-out; |
|
margin-top: 30px; |
|
} |
|
|
|
.story-header { |
|
margin-bottom: 30px; |
|
padding-bottom: 20px; |
|
border-bottom: 2px solid var(--light-gray); |
|
} |
|
|
|
.story-meta { |
|
display: flex; |
|
gap: 30px; |
|
color: #666; |
|
font-size: 0.9em; |
|
margin-top: 15px; |
|
} |
|
|
|
.story-meta span { |
|
display: flex; |
|
align-items: center; |
|
gap: 5px; |
|
} |
|
|
|
.story-meta i { |
|
color: var(--wattpad-orange); |
|
} |
|
|
|
.story-content { |
|
font-size: 1.1em; |
|
line-height: 1.8; |
|
white-space: pre-wrap; |
|
padding: 20px 0; |
|
} |
|
|
|
.story-actions { |
|
display: flex; |
|
gap: 15px; |
|
margin-top: 30px; |
|
padding-top: 20px; |
|
border-top: 2px solid var(--light-gray); |
|
} |
|
|
|
.action-btn { |
|
flex: 1; |
|
padding: 12px 20px; |
|
font-size: 0.9em; |
|
background-color: var(--white); |
|
color: var(--dark-gray); |
|
border: 2px solid var(--light-gray); |
|
transition: all 0.3s ease; |
|
} |
|
|
|
.action-btn:hover { |
|
background-color: var(--wattpad-orange); |
|
color: var(--white); |
|
border-color: var(--wattpad-orange); |
|
} |
|
|
|
.action-btn i { |
|
margin-right: 5px; |
|
} |
|
|
|
footer { |
|
text-align: center; |
|
margin-top: 60px; |
|
padding: 20px; |
|
color: #666; |
|
} |
|
|
|
footer i { |
|
color: var(--wattpad-orange); |
|
animation: pulse 2s infinite; |
|
} |
|
|
|
|
|
@media (max-width: 768px) { |
|
.container { |
|
padding: 15px; |
|
} |
|
|
|
.input-section { |
|
flex-direction: column; |
|
} |
|
|
|
button { |
|
width: 100%; |
|
justify-content: center; |
|
} |
|
|
|
.story-container { |
|
padding: 25px; |
|
} |
|
|
|
.story-meta { |
|
flex-wrap: wrap; |
|
gap: 15px; |
|
} |
|
|
|
.story-actions { |
|
flex-direction: column; |
|
} |
|
|
|
h1 { |
|
font-size: 2em; |
|
} |
|
} |
|
|