File size: 3,630 Bytes
31c5ef2 e273c8d 0ae3137 31c5ef2 0ae3137 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 0ae3137 31c5ef2 e273c8d 0ae3137 31c5ef2 e273c8d 31c5ef2 0ae3137 e273c8d 31c5ef2 0ae3137 31c5ef2 e273c8d 31c5ef2 0ae3137 e273c8d 31c5ef2 0ae3137 31c5ef2 0ae3137 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 0ae3137 e273c8d 31c5ef2 0ae3137 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 e273c8d 31c5ef2 0ae3137 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
/* Main container styles */
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-family: 'Arial', sans-serif;
color: #333;
}
h1 {
color: #8e44ad;
text-align: center;
margin-bottom: 30px;
font-size: 2.2rem;
}
/* Adventure game container */
.adventure-game {
position: relative;
min-height: 500px;
background-color: #f9f5ff;
border-radius: 15px;
padding: 25px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
border: 2px solid #e0c8f5;
}
/* Scene container styles */
.scene-container {
background-color: white;
border-radius: 10px;
padding: 25px;
margin-bottom: 25px;
min-height: 200px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
border: 1px solid #e0c8f5;
}
.scene-content {
font-size: 1.15rem;
line-height: 1.7;
color: #444;
}
/* Choices container styles */
.choices-container {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 20px;
}
.choice-btn {
padding: 14px 25px;
background-color: #9b59b6;
color: white;
border: none;
border-radius: 30px;
cursor: pointer;
font-size: 1.05rem;
transition: all 0.3s ease;
text-align: center;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.choice-btn:hover {
background-color: #8e44ad;
transform: translateY(-3px);
box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}
.choice-btn:active {
transform: translateY(0);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.choice-btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 5px;
background: rgba(255, 255, 255, 0.5);
opacity: 0;
border-radius: 100%;
transform: scale(1, 1) translate(-50%);
transform-origin: 50% 50%;
}
.choice-btn:focus:not(:active)::after {
animation: ripple 0.6s ease-out;
}
@keyframes ripple {
0% {
transform: scale(0, 0);
opacity: 0.5;
}
100% {
transform: scale(20, 20);
opacity: 0;
}
}
.restart-btn {
background-color: #27ae60;
margin-top: 30px;
}
.restart-btn:hover {
background-color: #219653;
}
/* Krishna character styles */
.krishna-character {
position: absolute;
right: 30px;
bottom: 30px;
width: 180px;
height: 180px;
transition: all 0.5s ease;
}
.krishna-character img {
width: 100%;
height: auto;
transition: all 0.3s ease;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.krishna-character:hover img {
transform: scale(1.05) rotate(-5deg);
}
/* Responsive styles */
@media (max-width: 768px) {
.container {
padding: 15px;
}
h1 {
font-size: 1.8rem;
}
.adventure-game {
padding: 20px;
min-height: auto;
padding-bottom: 180px;
}
.krishna-character {
position: static;
margin: 30px auto 20px;
display: block;
width: 150px;
height: 150px;
}
.choice-btn {
padding: 12px 20px;
}
}
/* Animation for scene transitions */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.scene-content {
animation: fadeIn 0.5s ease-out;
}
/* Loading indicator */
.loading-message {
text-align: center;
font-style: italic;
color: #7f8c8d;
}
.loading-message::after {
content: '...';
animation: dots 1.5s steps(5, end) infinite;
}
@keyframes dots {
0%, 20% { content: '.'; }
40% { content: '..'; }
60%, 100% { content: '...'; }
} |