CSS.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. /*
  2. Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
  3. Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
  4. */
  5. /*
  6. Created on : 20 Sept 2024, 2:21:11 pm
  7. Author : elliot
  8. */
  9. p {
  10. font-size: 70%;
  11. color: black;
  12. }
  13. body {
  14. background-color: #d4d4d4;
  15. margin: 0;
  16. text-align: center;
  17. font-size: 40px;
  18. font-family: Verdana, Helvetica;
  19. }
  20. .ad-poster img {
  21. min-width: 300px;
  22. max-width: 400px;
  23. height: auto;
  24. border-radius: 10px;
  25. justify-content: center;
  26. display: flex;
  27. margin-left: 725px;
  28. flex-direction: row;
  29. }
  30. .ad-poster p {
  31. justify-content: center;
  32. display: flex;
  33. margin-left: 725px;
  34. flex-direction: row;
  35. }
  36. html {
  37. visibility: hidden;
  38. opacity: 0;
  39. transition: visibility 3s ease, opacity 3s ease;
  40. }
  41. html.loaded {
  42. visibility: visible;
  43. opacity: 1;
  44. }
  45. .fading-text {
  46. font-size: 24px;
  47. opacity: 0;
  48. transition: opacity 1s ease-in-out;
  49. }
  50. .header {
  51. justify-content: space-between;
  52. align-items: center;
  53. text-align: center;
  54. text-transform: uppercase;
  55. padding: 32px;
  56. background-color: #065c65;
  57. color: #fff;
  58. border-bottom: 5px solid #434cf0;
  59. display: flex;
  60. flex-direction: row; /* Change this line */
  61. }
  62. .header h1 {
  63. position: relative;
  64. top: 0;
  65. left: 0;
  66. }
  67. .header h2 {
  68. color: #FFD700;
  69. font-size: 120%;
  70. }
  71. .header a {
  72. color: white;
  73. text-decoration: none;
  74. margin: 10px 0;
  75. padding: 20px 20px;
  76. border-radius: 25px;
  77. transition: background-color 0.3s ease;
  78. z-index: 1;
  79. }
  80. .header a:hover {
  81. background-color: #054a51;
  82. }
  83. .biography {
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: flex-start; /* This ensures that the child elements are aligned to the left */
  87. padding: 20px;
  88. font-size: 75%;
  89. text-align: left;
  90. }
  91. .biography h2 {
  92. text-align: left; /* This ensures that the text within the <h2> element is left-aligned */
  93. }
  94. .biography p {
  95. text-align: left; /* This ensures that the text within the <p> elements is left-aligned */
  96. }
  97. .my-border {
  98. border: 5px solid black;
  99. }
  100. img:hover {
  101. transform: scale(1.15); /* increase size by 20% */
  102. transition: transform 0.3s ease; /* smooth transition */
  103. }
  104. .biography img {
  105. min-width: 300px;
  106. max-width: 400px;
  107. height: auto;
  108. border-radius: 10px;
  109. margin-left: 20px;
  110. display: flex;
  111. flex-direction: row;
  112. }
  113. .link {
  114. color: black;
  115. text-align: center;
  116. font-size: 75%;
  117. }
  118. .image-container {
  119. display: flex;
  120. gap: 10px;
  121. padding: 20px;
  122. }
  123. .article-section {
  124. width: 80%;
  125. margin: 20px auto;
  126. background-color: #fff;
  127. padding: 20px;
  128. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  129. }
  130. .article-header {
  131. display: flex;
  132. justify-content: space-between;
  133. align-items: center;
  134. margin-bottom: 20px;
  135. }
  136. .article-title {
  137. font-size: 44px;
  138. color: #333;
  139. }
  140. .article-info {
  141. color: #667;
  142. }
  143. .article-content {
  144. margin-bottom: 20px;
  145. }
  146. .article-image {
  147. height: auto;
  148. width: auto;
  149. margin-bottom: 10px;
  150. }
  151. .social-media {
  152. display: flex;
  153. justify-content: center;
  154. margin-bottom: 10px;
  155. }
  156. .social-media a {
  157. margin: 0 5px;
  158. color: #333;
  159. text-decoration: none;
  160. }
  161. .social-media i {
  162. font-size: 18px;
  163. }
  164. .related-articles {
  165. list-style-type: none;
  166. padding: 0;
  167. }
  168. .related-articles li {
  169. margin-bottom: 5px;
  170. }
  171. .related-articles a {
  172. color: #333;
  173. text-decoration: none;
  174. }
  175. @media (max-width: 768px) {
  176. .article-section {
  177. width: 90%;
  178. }
  179. }
  180. .image-container img {
  181. max-width: 2000px;
  182. height: auto;
  183. border-radius: 5px;
  184. align-items: center;
  185. }
  186. @media (max-width: 768px) {
  187. .biography {
  188. flex-direction: column;
  189. text-align: center;
  190. }
  191. .biography img {
  192. float: none;
  193. width: 100%;
  194. }
  195. .biography text {
  196. margin-left: 0;
  197. padding-top: 20px;
  198. }
  199. .header {
  200. flex-direction: column;
  201. align-items: center;
  202. margin: 0px -20px;
  203. }
  204. .container {
  205. display: flex;
  206. flex-wrap: wrap;
  207. justify-content: center;
  208. padding: 20px;
  209. }
  210. .food-item {
  211. display: flex;
  212. flex-direction: column;
  213. width: 400px;
  214. margin: 20px;
  215. background-color: #fff;
  216. border-radius: 8px;
  217. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  218. }
  219. .image {
  220. flex: 1;
  221. overflow: hidden;
  222. }
  223. .image img {
  224. min-width: 300px;
  225. max-width: 400px;
  226. height: auto;
  227. border-radius: 10px;
  228. }
  229. .description {
  230. flex: 1;
  231. padding: 20px;
  232. text-align: left;
  233. }
  234. .header h1 {
  235. position: relative;
  236. top: 0;
  237. left: 0;
  238. }
  239. .header h2 {
  240. font-size: 120%;
  241. }
  242. .header a {
  243. margin: 10px 0;
  244. }
  245. .biography {
  246. padding: 10px;
  247. }
  248. .image-container {
  249. padding: 10px;
  250. }
  251. img {
  252. max-width: 100%;
  253. margin: auto;
  254. transition: transform 0.3s ease;
  255. }
  256. }
  257. @media (min-width: 769px) {
  258. .biography {
  259. flex-direction: row;
  260. text-align: left;
  261. }
  262. .biography img {
  263. float: left;
  264. width: 40%;
  265. margin-right: 20px;
  266. }
  267. .biography text {
  268. margin-left: 20px;
  269. }
  270. .header {
  271. flex-direction: row;
  272. align-items: center;
  273. margin: 0px -20px;
  274. }
  275. .header h1 {
  276. position: relative;
  277. top: 0;
  278. left: 0;
  279. }
  280. .header h2 {
  281. font-size: 100%;
  282. }
  283. .header a {
  284. margin: 0 10px;
  285. }
  286. .biography {
  287. padding: 20px;
  288. }
  289. .image-container {
  290. padding: 20px;
  291. }
  292. img {
  293. max-width: 100%;
  294. margin: auto;
  295. transition: transform 0.3s ease;
  296. }
  297. }
  298. h1 {
  299. text-align: center;
  300. font-size: 100%;
  301. color: #333;
  302. }
  303. form {
  304. max-width: 400px;
  305. margin: auto;
  306. }
  307. label {
  308. display: block;
  309. margin-top: 10px;
  310. }
  311. input, textarea {
  312. width: 100%;
  313. padding: 8px;
  314. margin-top: 5px;
  315. box-sizing: border-box;
  316. }
  317. button {
  318. padding: 20px 40px;
  319. font-size: 120%;
  320. color: white;
  321. background-color: #065c65;
  322. border: none;
  323. cursor: pointer;
  324. text-align: center;
  325. text-decoration: none;
  326. border-radius: 5px; /* Rounded corners */
  327. transition: background-color 0.3s ease;
  328. z-index: 1;
  329. }
  330. form button {
  331. padding: 20px 40px;
  332. font-size: 18px;
  333. color: white;
  334. background-color: #065c65;
  335. border: none;
  336. cursor: pointer;
  337. text-align: center;
  338. text-decoration: none;
  339. border-radius: 5px; /* Rounded corners */
  340. transition: background-color 0.3s ease;
  341. z-index: 1;
  342. }
  343. form button:hover {
  344. background-color: #054a51;
  345. }
  346. button:hover {
  347. background-color: #054a51;
  348. }
  349. /* Center the button horizontally */
  350. .centered-button {
  351. display: inline-block;
  352. margin-top: -5px;
  353. }
  354. /* Add some padding to the body for better spacing */
  355. body {
  356. padding: 0 20px;
  357. }