main.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. @import url("https://fonts.googleapis.com/css2?family=Shippori+Antique");
  2. html,
  3. body {
  4. font-family: "Shippori Antique", sans-serif;
  5. margin: 0;
  6. padding: 0;
  7. color: black;
  8. }
  9. a,
  10. a:visited {
  11. text-decoration: none;
  12. color: black;
  13. transition: color 0.3s ease-in;
  14. }
  15. a:hover {
  16. color: white;
  17. }
  18. header {
  19. display: flex;
  20. }
  21. nav {
  22. flex-grow: 1;
  23. }
  24. header div {
  25. text-align: right;
  26. flex-grow: 0;
  27. white-space: nowrap;
  28. }
  29. header a:hover {
  30. color: #ffb444;
  31. }
  32. nav ul {
  33. padding: 0;
  34. }
  35. nav ul li {
  36. padding: 10px 10px;
  37. list-style: none;
  38. margin-top: 8px;
  39. font-size: 24px;
  40. /* text-align: center; */
  41. color: black;
  42. display: inline-block;
  43. /* background-color: linear-gradient(90deg, rgba(64,64,64,0.8) 0%, rgba(64,64,64,0.3) 75%, rgba(64,64,64,0) 100%); */
  44. }
  45. nav a:hover {
  46. color: #39dbff;
  47. }
  48. main {
  49. height: 100%;
  50. margin-left: auto;
  51. margin-right: auto;
  52. display: flex;
  53. flex-wrap: wrap;
  54. justify-content: space-between;
  55. flex-direction: row;
  56. }
  57. section {
  58. flex: 1;
  59. }
  60. .red-bg {
  61. background-color: #ff5e5e;
  62. }
  63. .orange-bg {
  64. background-color: #ffb444;
  65. }
  66. .yellow-bg {
  67. background-color: #fef500;
  68. }
  69. .green-bg {
  70. background-color: #00ff75;
  71. }
  72. .blue-bg {
  73. background-color: #39dbff;
  74. }
  75. .purple-bg {
  76. background-color: #dd7dfd;
  77. }
  78. .shadow {
  79. box-shadow: black 4px 4px;
  80. }
  81. .hero {
  82. background-position: center;
  83. background-repeat: no-repeat;
  84. background-size: cover;
  85. color: black;
  86. padding-left: 30px;
  87. box-sizing: black 4px 4px;
  88. padding: 8px;
  89. flex-basis: 100%;
  90. }
  91. .hero h1 {
  92. font-size: 36px;
  93. padding: 20px 30px;
  94. margin-left: auto;
  95. margin-right: auto;
  96. font-weight: 800;
  97. color: black;
  98. }
  99. .hero h2 {
  100. font-size: 28px;
  101. font-weight: normal;
  102. padding: 0 20px;
  103. margin-left: auto;
  104. margin-right: auto;
  105. font-weight: 500;
  106. }
  107. .hero p {
  108. padding: 0 20px;
  109. font-weight: 500;
  110. }
  111. .splash {
  112. width: 50%;
  113. height: 100vh;
  114. background: url("../images/marios-gkortsilas-JCeQHpTpU24-unsplash.jpg");
  115. background-repeat: no-repeat;
  116. background-size: cover;
  117. background-position: center;
  118. }
  119. .summary {
  120. width: 50%;
  121. padding: 30px;
  122. }
  123. .news {
  124. padding: 30px;
  125. flex-grow: 1;
  126. flex-basis: 100%;
  127. }
  128. .news article {
  129. box-shadow: black 4px 4px;
  130. padding: 30px;
  131. }
  132. .news article p.signoff {
  133. text-align: right;
  134. }
  135. a.button.primary {
  136. color: black;
  137. text-decoration: none;
  138. text-shadow: none;
  139. border: 4px solid black;
  140. padding: 10px;
  141. border-radius: 8px;
  142. background-color: white;
  143. box-shadow: black 0px 0px 0px;
  144. transition: color 0.3s ease-in, background-color 0.3s ease-in,
  145. border-color 0.3s ease-in;
  146. }
  147. a.button.primary:hover {
  148. background-color: black;
  149. color: white;
  150. }
  151. footer {
  152. text-align: center;
  153. }
  154. footer a:hover {
  155. color: #ff5e5e;
  156. }
  157. .overlay {
  158. position: fixed;
  159. top: 0;
  160. left: 0;
  161. width: 100%;
  162. height: 100%;
  163. opacity: 0;
  164. visibility: hidden;
  165. transition: opacity 0.35s, visibility 0.35s, height 0.35s;
  166. overflow: hidden;
  167. background: black;
  168. z-index: -1;
  169. }
  170. #main-menu {
  171. /* display: block; */
  172. height: 100px;
  173. width: 100%;
  174. margin: 0px;
  175. }
  176. #main-menu ul {
  177. max-width: 800px;
  178. width: 100%;
  179. height: 100%;
  180. margin: 0px;
  181. padding: 0px;
  182. }
  183. #main-menu li {
  184. list-style-type: none;
  185. font-size: 2rem;
  186. }
  187. #main-menu a {
  188. font-size: 1.5rem;
  189. text-decoration: none;
  190. }
  191. #hamburger-input {
  192. display: none;
  193. }
  194. #hamburger-menu {
  195. position: fixed;
  196. top: 15px;
  197. left: 15px;
  198. width: 40px;
  199. height: 40px;
  200. display: none;
  201. border: none;
  202. padding: 0px;
  203. margin: 0px;
  204. font-family: "Cabin", Sans-serif;
  205. background: linear-gradient(
  206. to bottom,
  207. black,
  208. black 20%,
  209. transparent 20%,
  210. transparent 40%,
  211. black 40%,
  212. black 60%,
  213. transparent 60%,
  214. transparent 80%,
  215. black 80%,
  216. black 100%
  217. );
  218. }
  219. #hamburger-menu #sidebar-menu {
  220. visibility: hidden;
  221. position: fixed;
  222. top: 0;
  223. left: -250px;
  224. width: 200px;
  225. height: 100%;
  226. background-color: #dd7dfd;
  227. border-right: solid black 5px;
  228. transition: 0.3s;
  229. padding: 0px 10px;
  230. box-sizing: border-box;
  231. }
  232. #hamburger-menu h3 {
  233. font-size: 36px;
  234. }
  235. #hamburger-menu ul {
  236. padding-left: 0px;
  237. }
  238. #hamburger-menu li {
  239. list-style-type: none;
  240. line-height: 36px;
  241. display: block;
  242. }
  243. #hamburger-menu a {
  244. font-size: 1.3rem;
  245. }
  246. #hamburger-input:checked + #hamburger-menu #sidebar-menu {
  247. visibility: visible;
  248. left: 0;
  249. }
  250. #hamburger-input:checked ~ .overlay {
  251. visibility: visible;
  252. opacity: 0.4;
  253. }
  254. /* Too big */
  255. @media screen and (min-width: 1280px) {
  256. nav ul li {
  257. font-size: 28px;
  258. }
  259. .hero h1 {
  260. font-size: 48px;
  261. }
  262. .hero h2 {
  263. font-size: 36px;
  264. }
  265. }
  266. /* Too small */
  267. @media screen and (max-width: 750px) {
  268. header {
  269. padding: 0;
  270. }
  271. .hero h1 {
  272. font-size: 32px;
  273. }
  274. .hero h2 {
  275. font-size: 20px;
  276. }
  277. #main-menu {
  278. display: none;
  279. }
  280. #hamburger-menu {
  281. display: block;
  282. }
  283. #sidebar-menu {
  284. flex-flow: column;
  285. }
  286. main {
  287. flex-flow: column;
  288. }
  289. .splash {
  290. flex: auto;
  291. width: 100%;
  292. height: 300px;
  293. }
  294. .summary {
  295. flex: auto;
  296. flex-basis: 100%;
  297. width: auto;
  298. }
  299. }