main.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. .menu-btn {
  2. position: absolute;
  3. z-index: 3;
  4. right: 35px;
  5. top: 35px;
  6. cursor: pointer;
  7. transition: all 0.5s ease-out;
  8. }
  9. .menu-btn .btn-line {
  10. width: 28px;
  11. height: 3px;
  12. margin: 0 0 5px 0;
  13. background: #fff;
  14. transition: all 0.5s ease-out;
  15. }
  16. .menu-btn.close {
  17. transform: rotate(180deg);
  18. }
  19. .menu-btn.close .btn-line:nth-child(1) {
  20. transform: rotate(45deg) translate(5px, 5px);
  21. }
  22. .menu-btn.close .btn-line:nth-child(2) {
  23. opacity: 0;
  24. }
  25. .menu-btn.close .btn-line:nth-child(3) {
  26. transform: rotate(-45deg) translate(7px, -6px);
  27. }
  28. .menu {
  29. position: fixed;
  30. top: 0;
  31. width: 100%;
  32. opacity: 0.9;
  33. visibility: hidden;
  34. }
  35. .menu.show {
  36. visibility: visible;
  37. }
  38. .menu-branding,
  39. .menu-nav {
  40. display: flex;
  41. flex-flow: column wrap;
  42. align-items: center;
  43. justify-content: center;
  44. float: left;
  45. width: 50%;
  46. height: 100vh;
  47. overflow: hidden;
  48. }
  49. .menu-nav {
  50. margin: 0;
  51. padding: 0;
  52. background: #373737;
  53. list-style: none;
  54. transform: translate3d(0, -100%, 0);
  55. transition: all 0.5s ease-out;
  56. }
  57. .menu-nav.show {
  58. transform: translate3d(0, 0, 0);
  59. }
  60. .menu-branding {
  61. background: #444;
  62. transform: translate3d(0, 100%, 0);
  63. transition: all 0.5s ease-out;
  64. }
  65. .menu-branding.show {
  66. transform: translate3d(0, 0, 0);
  67. }
  68. .menu-branding .portrait {
  69. width: 250px;
  70. height: 250px;
  71. background: url("../img/cat250.jpeg");
  72. border-radius: 50%;
  73. border: solid 3px #eece1a;
  74. }
  75. .menu .nav-item {
  76. transform: translate3d(600px, 0, 0);
  77. transition: all 0.5s ease-out;
  78. }
  79. .menu .nav-item.show {
  80. transform: translate3d(0, 0, 0);
  81. }
  82. .menu .nav-item.current > a {
  83. color: #eece1a;
  84. }
  85. .menu .nav-link {
  86. display: inline-block;
  87. position: relative;
  88. font-size: 30px;
  89. text-transform: uppercase;
  90. padding: 1rem 0;
  91. font-weight: 300;
  92. color: #fff;
  93. text-decoration: none;
  94. transition: all 0.5s ease-out;
  95. }
  96. .menu .nav-link:hover {
  97. color: #eece1a;
  98. }
  99. .nav-item:nth-child(1) {
  100. transition-delay: 0.1s;
  101. }
  102. .nav-item:nth-child(2) {
  103. transition-delay: 0.2s;
  104. }
  105. .nav-item:nth-child(3) {
  106. transition-delay: 0.3s;
  107. }
  108. .nav-item:nth-child(4) {
  109. transition-delay: 0.4s;
  110. }
  111. * {
  112. box-sizing: border-box;
  113. }
  114. body {
  115. background: #444;
  116. color: #fff;
  117. height: 100%;
  118. margin: 0;
  119. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  120. line-height: 1.5;
  121. }
  122. body#bg-img {
  123. background: url(../img/background.jpg);
  124. background-attachment: fixed;
  125. background-size: cover;
  126. }
  127. body#bg-img:after {
  128. content: "";
  129. position: absolute;
  130. top: 0;
  131. right: 0;
  132. width: 100%;
  133. height: 100%;
  134. z-index: -1;
  135. background: rgba(68, 68, 68, 0.9);
  136. }
  137. h1,
  138. h2,
  139. h3 {
  140. margin: 0;
  141. font-weight: 400;
  142. }
  143. h1.lg-heading,
  144. h2.lg-heading,
  145. h3.lg-heading {
  146. font-size: 6rem;
  147. }
  148. h1.sm-heading,
  149. h2.sm-heading,
  150. h3.sm-heading {
  151. margin-bottom: 2rem;
  152. padding: 0.2rem 1rem;
  153. background: rgba(73, 73, 73, 0.5);
  154. }
  155. a {
  156. color: #fff;
  157. text-decoration: none;
  158. }
  159. small {
  160. font-weight: 200;
  161. font-size: 12px;
  162. }
  163. header {
  164. position: fixed;
  165. z-index: 2;
  166. width: 100%;
  167. }
  168. .text-secondary {
  169. color: #eece1a;
  170. }
  171. main {
  172. padding: 4rem;
  173. min-height: calc(100vh - 60px);
  174. }
  175. main .icons {
  176. margin-top: 1rem;
  177. }
  178. main .icons a {
  179. padding: 0.4rem;
  180. }
  181. main .icons a:hover {
  182. color: #eece1a;
  183. transition: all 0.5s ease-out;
  184. }
  185. main#home {
  186. overflow: hidden;
  187. }
  188. main#home h1 {
  189. margin-top: 20vh;
  190. }
  191. .about-info {
  192. display: grid;
  193. grid-gap: 30px;
  194. grid-template-areas: "bioimage bio bio" "job1 job2 job3";
  195. grid-template-columns: repeat(3, 1fr);
  196. }
  197. .about-info .bio-image {
  198. grid-area: bioimage;
  199. margin: auto;
  200. border-radius: 50%;
  201. border: #eece1a 3px solid;
  202. }
  203. .about-info .bio {
  204. grid-area: bio;
  205. font-size: 1.5rem;
  206. }
  207. .about-info .bio p {
  208. text-align: justify;
  209. }
  210. .about-info .job-1 {
  211. grid-area: job1;
  212. }
  213. .about-info .job-2 {
  214. grid-area: job2;
  215. }
  216. .about-info .job-3 {
  217. grid-area: job3;
  218. }
  219. .about-info .job {
  220. background: #515151;
  221. padding: 0.5rem;
  222. border-bottom: #eece1a 5px solid;
  223. }
  224. .projects {
  225. display: grid;
  226. grid-gap: 0.7rem;
  227. grid-template-columns: repeat(3, 1fr);
  228. }
  229. .projects img {
  230. width: 100%;
  231. border: 3px #fff solid;
  232. }
  233. .projects img:hover {
  234. opacity: 0.5;
  235. border-color: #eece1a;
  236. transition: all 0.5s ease-out;
  237. }
  238. .boxes {
  239. display: flex;
  240. flex-wrap: wrap;
  241. justify-content: space-evenly;
  242. align-items: center;
  243. margin-top: 1rem;
  244. }
  245. .boxes div {
  246. font-size: 2rem;
  247. border: 3px #fff solid;
  248. padding: 1.5rem 2.5rem;
  249. margin-bottom: 3rem;
  250. transition: all 0.5s ease-out;
  251. }
  252. .boxes div:hover {
  253. padding: 0.5rem 1.5rem;
  254. background: #eece1a;
  255. color: #000;
  256. }
  257. .boxes div:hover span {
  258. color: #000;
  259. }
  260. .btn,
  261. .btn-dark,
  262. .btn-light {
  263. display: block;
  264. padding: 0.5rem 1rem;
  265. border: 0;
  266. margin-bottom: 0.3rem;
  267. }
  268. .btn:hover,
  269. .btn-dark:hover,
  270. .btn-light:hover {
  271. background: #eece1a;
  272. color: #000;
  273. }
  274. .btn-dark {
  275. background: black;
  276. color: #fff;
  277. }
  278. .btn-light {
  279. background: #c4c4c4;
  280. color: #333;
  281. }
  282. #main-footer {
  283. text-align: center;
  284. padding: 1rem;
  285. background: #2b2b2b;
  286. color: #fff;
  287. height: 60px;
  288. }
  289. @media screen and (min-width: 1171px) {
  290. .projects {
  291. grid-template-columns: repeat(4, 1fr);
  292. }
  293. }
  294. @media screen and (min-width: 769px) and (max-width: 1170px) {
  295. .projects {
  296. grid-template-columns: repeat(3, 1fr);
  297. }
  298. }
  299. @media screen and (max-width: 768px) {
  300. main {
  301. align-items: center;
  302. text-align: center;
  303. }
  304. main .lg-heading {
  305. line-height: 1;
  306. margin-bottom: 1rem;
  307. }
  308. ul.menu-nav,
  309. div.menu-branding {
  310. float: none;
  311. width: 100%;
  312. min-height: 0;
  313. }
  314. ul.menu-nav.show,
  315. div.menu-branding.show {
  316. transform: translate3d(0, 0, 0);
  317. }
  318. .menu-nav {
  319. height: 75vh;
  320. transform: translate3d(-100%, 0, 0);
  321. font-size: 24px;
  322. }
  323. .menu-branding {
  324. height: 25vh;
  325. transform: translate3d(100%, 0, 0);
  326. }
  327. .menu-branding .portrait {
  328. background: url("../img/cat150.jpeg");
  329. width: 150px;
  330. height: 150px;
  331. }
  332. .about-info {
  333. grid-template-areas: "bioimage" "bio" "job1" "job2" "job3";
  334. grid-template-columns: 1fr;
  335. }
  336. .projects {
  337. grid-template-columns: repeat(2, 1fr);
  338. }
  339. }
  340. @media screen and (max-width: 500px) {
  341. main {
  342. padding: 2rem;
  343. }
  344. main #home h1 {
  345. margin-top: 10vh;
  346. }
  347. main .lg-heading {
  348. margin-top: 1rem;
  349. font-size: 5rem;
  350. }
  351. .projects {
  352. grid-template-columns: 1fr;
  353. }
  354. }