Spaces:
Runtime error
Runtime error
File size: 4,027 Bytes
dcda3bb 77be80d dcda3bb 77be80d dcda3bb 77be80d dcda3bb 77be80d dcda3bb 77be80d dcda3bb 77be80d |
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 |
/* General Styling */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
body, html {
height: 100%;
margin: 0;
font-family: 'Orbitron', sans-serif;
color: #f0f0f0;
overflow: hidden; /* Hide scrollbars from the animation */
}
body {
background: linear-gradient(-45deg, #1a1a1a, #2b2b2b, #1a1a1a, #3c3c3c);
background-size: 400% 400%;
animation: gradientBG 15s ease infinite;
position: relative;
}
/* Add a noise overlay */
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
opacity: 0.05;
z-index: -1;
}
@keyframes gradientBG {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 1rem;
}
.card {
background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
border: 1px solid #888;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7),
inset 0 0 5px rgba(255, 255, 255, 0.1),
inset 0 3px 5px rgba(0, 0, 0, 0.5);
padding: 2rem;
width: 500px; /* Fixed width for desktop */
max-width: 95%; /* Max width for smaller screens */
box-sizing: border-box; /* Include padding and border in the element's total width and height */
transition: all 0.3s ease-in-out;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8),
inset 0 0 7px rgba(255, 255, 255, 0.15),
inset 0 3px 5px rgba(0, 0, 0, 0.5);
}
.card-title {
font-weight: 700;
text-transform: uppercase;
letter-spacing: 3px;
color: #fff;
text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 12px rgba(255, 255, 255, 0.5);
font-size: 1.8rem;
}
.card-text {
color: #ddd;
font-size: 1rem;
}
.form-control {
background-color: #222;
border: 1px solid #555;
color: #f0f0f0;
border-radius: 5px;
padding: 12px;
transition: all 0.3s ease;
}
.form-control:focus {
background-color: #333;
border-color: #999;
color: #f0f0f0;
box-shadow: 0 0 15px rgba(150, 150, 150, 0.5);
}
.btn-primary {
background: linear-gradient(to bottom, #777, #555);
border: 1px solid #999;
color: #fff;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
padding: 12px;
border-radius: 5px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
transition: all 0.3s ease;
}
.btn-primary:hover {
background: linear-gradient(to bottom, #888, #666);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
transform: translateY(-3px);
}
.btn-primary:active {
transform: translateY(2px);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.card-img-top {
border-radius: 15px 15px 0 0;
border-bottom: 1px solid #888;
max-width: 100%;
height: auto;
}
/* Responsive Design */
@media (max-width: 768px) {
.card {
width: 80vw;
padding: 1.5rem;
}
.card-title {
font-size: 1.4rem;
}
.card-text {
font-size: 0.9rem;
}
}
@media (max-width: 576px) {
body {
overflow: auto; /* Allow scrolling on small screens */
}
.container {
height: auto;
padding: 1rem 0;
}
.card {
width: 90vw;
padding: 1rem;
margin: 0.5rem;
}
.card-title {
font-size: 1.1rem;
}
.card-text {
font-size: 0.8rem;
}
.btn-primary {
padding: 10px;
letter-spacing: 1px;
}
} |