style.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. html {
  2. scroll-behavior: smooth;
  3. }
  4. body {
  5. background-color: #121212;
  6. font-family: Arial, sans-serif;
  7. }
  8. .main_container {
  9. display: flex;
  10. flex-direction: row;
  11. flex-wrap: wrap;
  12. margin-left: 3%;
  13. margin-right: 3%;
  14. gap: 2%;
  15. max-width: 100%;
  16. /*border: 0.5px solid rgb(208, 160, 236);*/
  17. }
  18. /*Container*/
  19. .text_container {
  20. position: relative;
  21. width: 42%;
  22. min-height: 70%;
  23. margin: 3%;
  24. display: flex;
  25. flex-direction: column;
  26. flex-wrap: wrap;
  27. justify-content: flex-start;
  28. border: 0.5px solid rgb(255, 255, 255);
  29. }
  30. .img_container {
  31. margin: 3%;
  32. min-height: 40%;
  33. width: 42%;
  34. padding-top: 1.5%;
  35. display: flex;
  36. flex-direction: column;
  37. align-items: flex-start;
  38. border: 0.5px solid rgb(255, 255, 255);
  39. }
  40. /*Content Classes*/
  41. .main_text {
  42. order: 0;
  43. padding: 2%;
  44. margin: 3%;
  45. text-align: left;
  46. border-radius: 0px;
  47. color: white;
  48. align-self: flex-start;
  49. /*border: 0.5px solid white;*/
  50. }
  51. .main_img {
  52. position: static;
  53. justify-self: center;
  54. margin-left: 26%;
  55. width: 45%;
  56. height: auto;
  57. border-radius: 60%;
  58. object-fit: cover;
  59. /*border: 0.5px solid rgb(227, 27, 143);*/
  60. }
  61. .projects {
  62. order: 1;
  63. padding: 2%;
  64. margin: 3%;
  65. margin-top: 5.5%;
  66. text-align: left;
  67. border-radius: 0px;
  68. align-self: flex-start;
  69. color: white;
  70. /*border: 0.5px solid white;*/
  71. }
  72. .contacts {
  73. order: 2;
  74. padding: 2%;
  75. margin: 3%;
  76. text-align: left;
  77. border-radius: 0px;
  78. align-self: flex-start;
  79. color: white;
  80. /*border: 0.5px solid white;*/
  81. }
  82. .webring {
  83. display: flex;
  84. justify-content: center;
  85. }
  86. .privacy {
  87. display: flex;
  88. justify-content: center;
  89. }
  90. footer {
  91. display: flex;
  92. justify-content: center;
  93. color: whitesmoke;
  94. }
  95. /*Media section*/
  96. @media (max-width: 700px) {
  97. .text_container, .img_container {
  98. flex-direction: column;
  99. flex: 100%;
  100. }
  101. }
  102. @media (hover: hover) {
  103. .text_container:hover {
  104. transition-duration: 0.5s;
  105. }
  106. }
  107. @media not all and (hover: hover) {
  108. .text_container::after {
  109. content: " (" attr(title) ")";
  110. }
  111. }