main.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. @import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&display=swap');
  2. body {
  3. font-family: 'Work Sans', sans-serif;
  4. font-size: 1.1rem;
  5. }
  6. /* body background */
  7. .color__grey {
  8. background-color: #f5f5f5;
  9. }
  10. .step__text {
  11. margin-right: 2rem;
  12. color: white;
  13. font-size: 1.4rem;
  14. background-color: #1266f1;
  15. box-shadow: 1px 1px 3px 1px rgb(168, 168, 168);
  16. padding: .5rem .75rem;
  17. border-radius: 3.5rem;
  18. }
  19. /* search bar */
  20. .text_input {
  21. margin: 1.5rem;
  22. padding-top: 2rem;
  23. padding-bottom: 2rem;
  24. }
  25. .search__form {
  26. width: 45rem;
  27. margin: 2rem 1.5rem;
  28. }
  29. .search__bar {
  30. width: 420px;
  31. height: 150px;
  32. padding: .5rem;
  33. transition: all .3s;
  34. border: 3px solid rgb(187, 187, 187);
  35. border-radius: 10px;
  36. }
  37. input[type="radio"] {
  38. display: none;
  39. }
  40. input[type="radio"]:checked + label {
  41. outline: 4px solid #1266f1;
  42. }
  43. .search__btn {
  44. padding: 8px 24px;
  45. }
  46. .submit.disabled {
  47. pointer-events: none;
  48. background-color: rgb(148, 147, 147);
  49. }
  50. .search__form .search__bar:focus {
  51. box-shadow: 1px 1px 3px 1px #1266f1;
  52. border-radius: 10px;
  53. }
  54. .h3 {
  55. font-size: 2rem;
  56. }
  57. .characs {
  58. margin: 2rem 1.5rem;
  59. }
  60. .characs_fr {
  61. width: 120px;
  62. height: 150px;
  63. object-fit: cover;
  64. }
  65. .characs_fr > img {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .back_fr {
  70. width: 180px;
  71. height: 150px;
  72. object-fit: cover;
  73. }
  74. .back_fr > img {
  75. width: 100%;
  76. height: 100%;
  77. }
  78. .submit {
  79. color: white;
  80. font-size: 1.4rem;
  81. background-color: #1266f1;
  82. box-shadow: 1px 1px 3px 1px rgb(168, 168, 168);
  83. padding: .75rem 2rem;
  84. border-radius: 3.5rem;
  85. outline: none;
  86. transition: all .3s;
  87. }
  88. .submit:hover {
  89. transform: scale(1.05);
  90. }
  91. /* card */
  92. .card{
  93. transition: all .3s;
  94. cursor: pointer;
  95. }
  96. .card:hover {
  97. transform: scale(1.05);
  98. }
  99. .card.card__notHover {
  100. transform: scale(1);
  101. }
  102. .card-title {
  103. font-size: 1.3rem;
  104. }
  105. /* top card */
  106. .card__grback {
  107. background-image: linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 75%, #1266f1 75%, #1266f1 100%);
  108. background-position: center;
  109. background-size: contain;
  110. margin-top: 2rem;
  111. }
  112. .card__left {
  113. width: 75%;
  114. }
  115. .card__url {
  116. font-size: 1.8rem;
  117. margin-bottom: 1.5rem;
  118. }
  119. .card__url__icon {
  120. display: inline-block;
  121. margin-right: 1rem;
  122. font-size: 1.4rem;
  123. }
  124. .card__intro {
  125. font-size: .9rem;
  126. line-height: 1.5rem;
  127. }
  128. .intro_text {
  129. padding-top: .5rem;
  130. padding-bottom: .5rem;
  131. padding-left: 4rem;
  132. }
  133. .intro_text:nth-of-type(2) {
  134. padding-left: 3rem;
  135. }
  136. .intro_text:nth-of-type(3) {
  137. padding-left: 2rem;
  138. }
  139. .intro_text:nth-of-type(4) {
  140. padding-left: 1rem;
  141. }
  142. .intro_num {
  143. display: inline-block;
  144. background-color: lightblue;
  145. width: 20px;
  146. height: 20px;
  147. border-radius: 50%;
  148. text-align: center;
  149. line-height: 20px;
  150. position: relative;
  151. z-index: 2;
  152. }
  153. .intro_num::after{
  154. content: " ";
  155. position: absolute;
  156. top: 100%;
  157. left: 0;
  158. width: 100%;
  159. height: 22px;
  160. border-left: 2px solid gray;
  161. transform: rotate(25deg);
  162. z-index: 1;
  163. }
  164. .intro_num_last::after {
  165. display: none;
  166. }
  167. .download {
  168. margin-top: 1.5rem;
  169. transition: all .3s;
  170. }
  171. .download:hover {
  172. background-color: #1266f1;
  173. color: white;
  174. }
  175. /* rank card */
  176. .card__rank__title {
  177. font-weight: 500;
  178. }
  179. .card__rank__title i {
  180. display: inline-block;
  181. margin-right: .5rem;
  182. font-size: 1.2rem;
  183. }
  184. .rank__mark {
  185. font-size: 1.4rem;
  186. line-height: 1.4rem;
  187. }
  188. .rank_num {
  189. font-size: 2rem;
  190. }
  191. /* chart */
  192. .chart {
  193. width: 600px;
  194. height:400px;
  195. margin:1.5rem auto;
  196. }
  197. .animate_fade{
  198. opacity: 0;
  199. transform: translateY(-30%);
  200. transition: all 1.2s;
  201. }
  202. .fade_up{
  203. transform: translateY(0%);
  204. opacity: 1;
  205. }
  206. .intro__last {
  207. width: 8rem;
  208. height: auto;
  209. text-align: center;
  210. line-height: 1.5rem;
  211. }
  212. .youtube__icon {
  213. display: block;
  214. font-size: 2rem;;
  215. }
  216. .animate_in {
  217. opacity: 0;
  218. transform: translateX(-30%);
  219. transition: all 1s;
  220. }
  221. .animate_in:nth-of-type(2) {
  222. transition-delay: 1s;
  223. }
  224. .animate_in:nth-of-type(3) {
  225. transition-delay: 2s;
  226. }
  227. .fade_in{
  228. transform: translateX(0%);
  229. opacity: 1;
  230. }