style.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. body {
  2. margin: 0;
  3. font-family: Georgia, 'Times New Roman', Times, serif;
  4. }
  5. html {
  6. box-sizing: border-box;
  7. }
  8. *,
  9. *:before,
  10. *:after {
  11. box-sizing: inherit;
  12. }
  13. .wrapper {
  14. max-width: 100%;
  15. position: relative;
  16. overflow: hidden;
  17. display: flex;
  18. flex-direction: column;
  19. }
  20. img {
  21. max-width: 100%;
  22. height: auto;
  23. vertical-align: top;
  24. }
  25. .header {
  26. position: relative;
  27. background: #D2B837;
  28. padding: 15px 30px;
  29. }
  30. .header-wrap {
  31. display: flex;
  32. align-items: center;
  33. }
  34. #burger {
  35. position: absolute;
  36. left: -99999999px;
  37. opacity: 0;
  38. visibility: hidden;
  39. }
  40. .burger {
  41. display: block;
  42. height: 16px;
  43. width: 26px;
  44. position: relative;
  45. cursor: pointer;
  46. }
  47. .burger:before,
  48. .burger:after {
  49. content: '';
  50. }
  51. .burger:before,
  52. .burger span,
  53. .burger:after {
  54. height: 2px;
  55. position: absolute;
  56. left: 0;
  57. right: 0;
  58. background: #000;
  59. border-radius: 2px;
  60. }
  61. .burger:before {
  62. top: 0;
  63. }
  64. .burger span {
  65. top: 7px;
  66. }
  67. .burger:after {
  68. bottom: 0px;
  69. }
  70. #burger:checked+.burger span {
  71. opacity: 0;
  72. }
  73. #burger:checked+.burger:before {
  74. transition: transform .3s ease-in-out;
  75. transform: rotate(45deg);
  76. top: 7px;
  77. }
  78. #burger:checked+.burger:after {
  79. transition: transform .3s ease-in-out;
  80. transform: rotate(-45deg);
  81. bottom: 7px;
  82. }
  83. #burger:checked~.nav-list {
  84. transition: opacity .3s case-in-out;
  85. opacity: 1;
  86. visibility: visible;
  87. }
  88. .nav {
  89. display: flex;
  90. align-items: center;
  91. justify-content: flex-end;
  92. flex-grow: 1;
  93. }
  94. .nav-list {
  95. display: block;
  96. list-style: none;
  97. margin: 0;
  98. padding-left: 0;
  99. position: absolute;
  100. top: 100%;
  101. left: 0;
  102. right: 0;
  103. background: #D2B837;
  104. text-align: center;
  105. opacity: 0;
  106. visibility: hidden;
  107. }
  108. .nav-item {
  109. padding-bottom: 15px;
  110. }
  111. .nav-link {
  112. color: black;
  113. text-decoration: none;
  114. }
  115. .nav-link:hover {
  116. opacity: .7;
  117. }
  118. .content {
  119. display: flex;
  120. flex-grow: 1;
  121. flex-direction: column;
  122. }
  123. .aside {
  124. display: flex;
  125. min-width: 210px;
  126. width: 100%;
  127. padding: 10px;
  128. justify-content: center;
  129. }
  130. .aside-left {
  131. background: pink;
  132. }
  133. .aside-right {
  134. background: #9cb1c7;
  135. }
  136. .main {
  137. padding: 20px;
  138. text-align: center;
  139. display: flex;
  140. flex-direction: column;
  141. flex-grow: 1;
  142. }
  143. h1 {
  144. font-size: 16px;
  145. }
  146. .boxes {
  147. display: flex;
  148. flex-wrap: wrap;
  149. justify-content: space-around;
  150. }
  151. .box {
  152. height: 35vh;
  153. max-height: 450px;
  154. min-height: 250px;
  155. width: calc(30vw - 20px);
  156. max-width: 400px;
  157. min-width: 200px;
  158. margin-bottom: 10px;
  159. border: 2px solid grey;
  160. border-radius: 25px;
  161. display: flex;
  162. flex-direction: column;
  163. justify-content: space-around;
  164. align-items: center;
  165. }
  166. .pict {
  167. height: 50px;
  168. width: 50px;
  169. border-radius: 50%;
  170. border: 8px solid #c798b9;
  171. margin-top: 15px;
  172. }
  173. h2 {
  174. font-size: 14px;
  175. }
  176. .about {
  177. display: flex;
  178. flex-grow: 1;
  179. flex-direction: column;
  180. align-items: center;
  181. justify-content: space-around;
  182. }
  183. p {
  184. font-size: 11px;
  185. }
  186. .btncontainer {
  187. height: auto;
  188. width: 100%;
  189. }
  190. .btn {
  191. height: 18px;
  192. width: 37px;
  193. background: #685274;
  194. color: white;
  195. border-radius: 25px;
  196. border-style: none;
  197. margin-bottom: 15px;
  198. text-align: center;
  199. }
  200. .btn:hover {
  201. transition: all .3s ease-in;
  202. opacity: .8;
  203. background-color: #86ec86;
  204. border: 2px solid #0e7f12;
  205. }
  206. .task3 {
  207. display: flex;
  208. flex-wrap: wrap;
  209. justify-content: center;
  210. margin-top: 20px;
  211. }
  212. .holder {
  213. display: flex;
  214. flex-wrap: wrap;
  215. height: 100px;
  216. width: 300px;
  217. border: 2px solid black;
  218. border-radius: 25px 25px 0px 0px;
  219. background: #0e7f12;
  220. }
  221. .holder>.item:first-child {
  222. background-color: #fd644d;
  223. order: 1;
  224. flex-grow: 1;
  225. border-radius: 25px 0px 0px 0px;
  226. }
  227. .holder>.item:last-child {
  228. background-color: #fda429;
  229. order: 2;
  230. flex-grow: 1;
  231. border-radius: 0px 25px 0px 0px;
  232. }
  233. .holder>.item:nth-child(3) {
  234. background-color: #663797;
  235. order: 3;
  236. height: 48px;
  237. width: 98px;
  238. }
  239. .holder>.item:nth-child(2) {
  240. background-color: #4983b2;
  241. order: 4;
  242. height: 48px;
  243. width: 99px;
  244. }
  245. .holder>.item:nth-child(4) {
  246. background-color: #0e7f12;
  247. order: 5;
  248. height: 48px;
  249. width: 99px;
  250. }
  251. .item {
  252. display: flex;
  253. justify-content: center;
  254. align-items: center;
  255. height: 50px;
  256. width: 100px;
  257. overflow: hidden;
  258. }
  259. .footer {
  260. background: #86ec86;
  261. padding: 10px;
  262. text-align: center;
  263. }
  264. @media(min-width: 1921px) {
  265. .boxes {
  266. justify-content: center;
  267. }
  268. .box {
  269. max-height: 600px;
  270. max-width: 450px;
  271. }
  272. }
  273. @media(min-width: 1024px) {
  274. .burger {
  275. display: none;
  276. }
  277. .nav-list {
  278. display: flex;
  279. align-items: center;
  280. opacity: 1;
  281. visibility: visible;
  282. position: static;
  283. }
  284. .nav-item {
  285. padding-bottom: 0;
  286. }
  287. .nav-item+.nav-item {
  288. padding-left: 15px;
  289. }
  290. .content {
  291. flex-direction: row;
  292. }
  293. .aside {
  294. max-width: 210px;
  295. }
  296. .aside-left {
  297. order: -1;
  298. }
  299. .pict {
  300. height: 120px;
  301. width: 120px;
  302. }
  303. .holder {
  304. height: 200px;
  305. width: 600px;
  306. }
  307. .holder>.item:nth-child(3) {
  308. height: 98px;
  309. width: 198px;
  310. }
  311. .holder>.item:nth-child(2) {
  312. height: 98px;
  313. width: 199px;
  314. }
  315. .holder>.item:nth-child(4) {
  316. height: 98px;
  317. width: 199px;
  318. }
  319. .item {
  320. height: 100px;
  321. width: 200px;
  322. }
  323. .box {
  324. margin: 10px 15px;
  325. }
  326. p {
  327. font-size: 12px;
  328. }
  329. .btn {
  330. height: 25px;
  331. width: 50px;
  332. }
  333. }
  334. @media(min-width: 768px) {
  335. .box {
  336. max-height: 350px;
  337. max-width: 250px;
  338. }
  339. .pict {
  340. height: 70px;
  341. width: 70px;
  342. }
  343. h2 {
  344. font-size: 14px;
  345. }
  346. .btn {
  347. height: 20px;
  348. width: 40px;
  349. }
  350. }