main.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. html, body {
  2. margin: 0;
  3. padding: 0;
  4. font-family: 'Roboto', sans-serif;
  5. color: white;
  6. background-color: black;
  7. }
  8. header {
  9. position: relative;
  10. height: 300px;
  11. color: white;
  12. }
  13. header h1 {
  14. font-family: 'Oswald', 'Roboto', sans-serif;
  15. }
  16. canvas#background {
  17. position: absolute;
  18. top: 0;
  19. left: 0;
  20. height: 100%;
  21. width: 100%;
  22. }
  23. canvas#asteroids-background {
  24. position: absolute;
  25. top: 0;
  26. left: 0;
  27. height: 100%;
  28. width: 100%;
  29. }
  30. header h1{
  31. z-index: 10;
  32. position: absolute;
  33. text-align: center;
  34. width: 100%;
  35. font-size: 120px;
  36. }
  37. main {
  38. background-color: #FFFFFF;
  39. padding-top: 12px;
  40. }
  41. nav {
  42. position: absolute;
  43. width: 100%;
  44. z-index: 10;
  45. margin-top: -30px;
  46. text-align: center;
  47. }
  48. nav a {
  49. color: white;
  50. text-decoration: none;
  51. transition: color 0.6s;
  52. font-size: 20px;
  53. }
  54. nav a:hover {
  55. color: #0D69B0;
  56. }
  57. nav ul {
  58. list-style-type: none;
  59. margin: 0;
  60. padding: 0;
  61. text-align: center;
  62. }
  63. nav li {
  64. display: inline;
  65. padding: 10px;
  66. }
  67. section {
  68. display: flex;
  69. flex-flow: row wrap;
  70. align-items: center;
  71. justify-content: center;
  72. color: black;
  73. }
  74. section h2 {
  75. flex: 0 0 100%;
  76. text-align: center;
  77. /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
  78. text-shadow: 2px 2px 6px rgba(13,105,176,0.4);
  79. color: #0D69B0;
  80. }
  81. section h3 a{
  82. text-decoration: none;
  83. color: black;
  84. transition: color 0.6s;
  85. }
  86. section h3 a:hover {
  87. color: #0D69B0;
  88. }
  89. footer {
  90. text-align: center;
  91. }
  92. footer a {
  93. color: white;
  94. }
  95. footer ul {
  96. list-style-type: none;
  97. }
  98. footer li {
  99. padding: 10px;
  100. }
  101. .project {
  102. color: black;
  103. margin: 20px;
  104. text-align: center;
  105. width: 300px;
  106. min-height: 300px;
  107. }
  108. .project .teaser {
  109. box-sizing: border-box;
  110. width: 300px;
  111. position: relative;
  112. }
  113. .project img {
  114. max-width: 100%;
  115. border-radius: 15px;
  116. }
  117. .project canvas {
  118. border-radius: 15px;
  119. }
  120. .project video {
  121. max-width: 100%;
  122. border-radius: 15px;
  123. }
  124. .project .image-carousel {
  125. display: none;
  126. }
  127. .project:hover .image-carousel {
  128. display: block;
  129. }
  130. .project .description {
  131. padding: 8px;
  132. color: gray;
  133. }
  134. .project .description h3 {
  135. padding: 0;
  136. margin: 0;
  137. color: black;
  138. }
  139. #prototype-section {
  140. }
  141. #starfield-container {
  142. margin: 5px;
  143. margin-left: auto;
  144. margin-right: auto;
  145. height: 400px;
  146. }
  147. #boxes-container {
  148. width: 300px;
  149. height: 200px;
  150. }
  151. #contact-section {
  152. padding-bottom: 50px;
  153. }
  154. #contact-section img {
  155. border-radius: 15px;
  156. }
  157. @media only screen and (max-width: 768px) {
  158. header h1{
  159. font-size: 40px;
  160. margin-top: 100px;
  161. }
  162. nav {
  163. margin-top: -60px;
  164. }
  165. }