Spaces:
Running
Running
File size: 2,638 Bytes
e6a9f90 | 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 | /* Reset and base styles */
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.app {
min-height: 100vh;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem;
}
.container {
max-width: 64rem;
width: 100%;
}
.title {
color: white;
font-size: 2rem;
font-weight: bold;
text-align: center;
margin-bottom: 3rem;
}
.content-wrapper {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(8px);
border-radius: 1rem;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Scrolling sections styles */
.sections-container {
width: 100%;
max-width: 60rem;
margin: 0 auto;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.sections-viewport {
position: relative;
width: 100%;
height: 12rem;
margin-bottom: 1.5rem;
}
.topmargin {
margin-top: 16rem;
}
.section-item {
position: absolute;
width: 100%;
transition: all 700ms ease-in-out;
}
.section-item.before {
transform: translateY(-125%);
opacity: 0.5;
scale: 0.95;
}
.section-item.active {
transform: translateY(0);
opacity: 1;
scale: 1;
}
.section-item.after {
transform: translateY(125%);
opacity: 0.5;
scale: 0.95;
}
.section-content {
padding: 1.5rem;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(4px);
border-radius: 0.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.section-sentence {
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 0.75rem;
color: #1a1a2e;
white-space: pre-line;
}
.section-source {
font-size: 0.875rem;
font-weight: 500;
color: #666;
}
/* Progress bar styles */
.progress-container {
width: 100%;
height: 4px;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 2px;
overflow: hidden;
z-index: 9999;
padding-left: 1em;
padding-right: 1em;
position: absolute;
}
.progress-bar {
height: 100%;
background-color: #3b82f6;
transition: width 100ms linear;
}
/* Navigation dots styles */
.navigation-dots {
display: flex;
justify-content: center;
margin-top: 1.5rem;
}
.dot {
width: 0.75rem;
height: 0.75rem;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.3);
margin: 0 0.375rem;
cursor: pointer;
transition: all 300ms ease;
border: none;
padding: 0;
}
.dot:hover {
background-color: rgba(255, 255, 255, 0.5);
}
.dot.active {
background-color: #3b82f6;
transform: scale(1.1);
} |