|
| 1 | +:root { |
| 2 | + --link-hover: #4caf50; /* Vibrant green for hover effects */ |
| 3 | + --text-color: #f5f5f5; /* Off-white for text */ |
| 4 | + --accent-color: #2e7d32; /* Deep green for accents */ |
| 5 | + --background-color: #1e1e1e; /* Near-black dark gray for background */ |
| 6 | + --secondary-accent: #81c784; /* Light green for secondary accents */ |
| 7 | + --gradient-start: #133a17; /* Dark green for gradients */ |
| 8 | + --gradient-end: #1a1a1a; /* Very dark gray for gradients */ |
| 9 | + --glow-color: rgba(76, 175, 80, 0.6); /* Glowing effect color */ |
| 10 | + --card-background: rgba(40, 40, 40, 0.7); /* Slightly transparent card background */ |
| 11 | +} |
| 12 | + |
| 13 | +@keyframes fadeIn { |
| 14 | + from { opacity: 0; transform: translateY(10px); } |
| 15 | + to { opacity: 1; transform: translateY(0); } |
| 16 | +} |
| 17 | + |
| 18 | +@keyframes float { |
| 19 | + 0% { transform: translateY(0px); } |
| 20 | + 50% { transform: translateY(-2px); } |
| 21 | + 100% { transform: translateY(0px); } |
| 22 | +} |
| 23 | + |
| 24 | +body { |
| 25 | + font-family: 'Roboto', 'Arial', sans-serif; |
| 26 | + margin: 0; |
| 27 | + padding: 0; |
| 28 | + line-height: 1.6; |
| 29 | + background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); |
| 30 | + background-attachment: fixed; |
| 31 | + color: var(--text-color); |
| 32 | + min-height: 100vh; |
| 33 | + position: relative; |
| 34 | + overflow-x: hidden; |
| 35 | +} |
| 36 | + |
| 37 | +body header { |
| 38 | + background: linear-gradient(90deg, var(--accent-color), var(--gradient-start)); |
| 39 | + color: var(--text-color); |
| 40 | + padding: 20px 0; |
| 41 | + text-align: center; |
| 42 | + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); |
| 43 | + position: relative; |
| 44 | + z-index: 10; |
| 45 | +} |
| 46 | + |
| 47 | +body header .nav { |
| 48 | + display: flex; |
| 49 | + justify-content: space-around; |
| 50 | + align-items: center; |
| 51 | + padding: 0 20px; |
| 52 | +} |
| 53 | + |
| 54 | +body header .nav > div:first-child { |
| 55 | + font-size: 1.2em; |
| 56 | + font-weight: bold; |
| 57 | + position: relative; |
| 58 | + transition: transform 0.3s ease; |
| 59 | +} |
| 60 | + |
| 61 | +body header .nav > div:first-child:hover { |
| 62 | + transform: translateY(-2px); |
| 63 | +} |
| 64 | + |
| 65 | +body header .nav #socials { |
| 66 | + display: flex; |
| 67 | + gap: 15px; |
| 68 | +} |
| 69 | + |
| 70 | +body header a { |
| 71 | + color: var(--text-color); |
| 72 | + text-decoration: none; |
| 73 | + transition: all 0.3s ease; |
| 74 | + position: relative; |
| 75 | + padding: 3px 5px; |
| 76 | + border-radius: 3px; |
| 77 | +} |
| 78 | + |
| 79 | +body header a::after { |
| 80 | + content: ''; |
| 81 | + position: absolute; |
| 82 | + left: 0; |
| 83 | + bottom: -1px; |
| 84 | + width: 100%; |
| 85 | + height: 1px; |
| 86 | + background: var(--link-hover); |
| 87 | + transform: scaleX(0); |
| 88 | + transition: transform 0.3s ease; |
| 89 | + transform-origin: bottom right; |
| 90 | +} |
| 91 | + |
| 92 | +body header a:hover { |
| 93 | + background: none; |
| 94 | + color: var(--link-hover); |
| 95 | + text-shadow: 0 0 8px var(--glow-color); |
| 96 | +} |
| 97 | + |
| 98 | +body header a:hover::after { |
| 99 | + transform: scaleX(1); |
| 100 | + transform-origin: bottom left; |
| 101 | +} |
| 102 | + |
| 103 | +#socials a { |
| 104 | + animation: fadeIn 0.5s ease backwards; |
| 105 | + transition: transform 0.3s ease, box-shadow 0.3s ease; |
| 106 | +} |
| 107 | + |
| 108 | +#socials a:hover { |
| 109 | + transform: translateY(-3px); |
| 110 | +} |
| 111 | + |
| 112 | +body main { |
| 113 | + padding: 30px; |
| 114 | + max-width: 800px; |
| 115 | + margin: 20px auto; |
| 116 | + background: var(--card-background); |
| 117 | + border-radius: 8px; |
| 118 | + box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); |
| 119 | + animation: fadeIn 0.8s ease; |
| 120 | + backdrop-filter: blur(5px); |
| 121 | +} |
| 122 | + |
| 123 | +body main h1 { |
| 124 | + text-shadow: 0 0 10px var(--glow-color); |
| 125 | + animation: fadeIn 0.6s ease; |
| 126 | + margin-bottom: 15px; |
| 127 | + position: relative; |
| 128 | +} |
| 129 | + |
| 130 | +body main h1::after { |
| 131 | + content: ''; |
| 132 | + position: absolute; |
| 133 | + left: 0; |
| 134 | + bottom: -5px; |
| 135 | + width: 60px; |
| 136 | + height: 3px; |
| 137 | + background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent)); |
| 138 | + border-radius: 3px; |
| 139 | +} |
| 140 | + |
| 141 | +body main p { |
| 142 | + animation: fadeIn 0.7s ease; |
| 143 | +} |
| 144 | + |
| 145 | +body main .faq { |
| 146 | + margin-top: 30px; |
| 147 | + padding-top: 20px; |
| 148 | + border-top: 1px solid rgba(255, 255, 255, 0.1); |
| 149 | +} |
| 150 | + |
| 151 | +body main dl dt { |
| 152 | + font-weight: bold; |
| 153 | + margin-top: 20px; |
| 154 | + color: var(--secondary-accent); |
| 155 | + font-size: 1.1em; |
| 156 | + transition: all 0.3s ease; |
| 157 | +} |
| 158 | + |
| 159 | +body main dl dt:hover { |
| 160 | + color: var(--link-hover); |
| 161 | + text-shadow: 0 0 8px var(--glow-color); |
| 162 | +} |
| 163 | + |
| 164 | +body main dl dd { |
| 165 | + margin: 0 0 20px 20px; |
| 166 | + padding: 10px 0; |
| 167 | + border-left: 2px solid var(--accent-color); |
| 168 | + padding-left: 15px; |
| 169 | + transition: all 0.3s ease; |
| 170 | + animation: fadeIn 0.5s ease; |
| 171 | +} |
| 172 | + |
| 173 | +body main dl dd:hover { |
| 174 | + border-left-color: var(--link-hover); |
| 175 | + background: rgba(76, 175, 80, 0.05); |
| 176 | +} |
| 177 | + |
| 178 | +body main dl dd p { |
| 179 | + margin: 8px 0; |
| 180 | +} |
| 181 | + |
| 182 | +body footer { |
| 183 | + text-align: center; |
| 184 | + padding: 12px 0; |
| 185 | + background: rgba(30, 30, 30, 0.7); |
| 186 | + color: rgba(245, 245, 245, 0.7); |
| 187 | + position: relative; |
| 188 | + bottom: 0; |
| 189 | + width: 100%; |
| 190 | + margin-top: 40px; |
| 191 | + border-top: 1px solid rgba(76, 175, 80, 0.2); |
| 192 | + font-size: 0.8em; |
| 193 | + animation: fadeIn 1s ease; |
| 194 | +} |
| 195 | + |
| 196 | +/* Responsive styles */ |
| 197 | +@media (max-width: 768px) { |
| 198 | + body header .nav { |
| 199 | + flex-direction: column; |
| 200 | + gap: 10px; |
| 201 | + } |
| 202 | + |
| 203 | + body header .nav #socials { |
| 204 | + justify-content: center; |
| 205 | + flex-wrap: wrap; |
| 206 | + } |
| 207 | + |
| 208 | + body main { |
| 209 | + margin: 10px; |
| 210 | + padding: 20px; |
| 211 | + } |
| 212 | +} |
| 213 | + |
| 214 | +/* Additional animations */ |
| 215 | +.float-animation { |
| 216 | + animation: float 3s ease-in-out infinite; |
| 217 | +} |
0 commit comments