@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* colors */

:root {
  --color-primary: #28242b;
  --color-font-light: #ffffff;
}

/* general */

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background-image: url('../img/bannerkuva.jpg'); /*img from Unsplash by Łukasz Łada (@lukaszlada)*/
  background-color: var(--color-primary);
  color: var(--color-font-light);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Comfortaa", sans-serif;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.space {
  height: 130px;
}

.space2 {
  height: 60px;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
  background-color: #3d3542; 
  border-radius: 5px;
  border: 0px;
}

/* header and navigation */

#navbarselection {
  padding: 10px;
  height: fit-content;
}

#logo {
  width: auto;
  height: 50px !important;
  float: left;
  margin: 8px;
}

.navbar {
  font-family: monospace;
  font-weight: bold;
  float: right;
  padding: 10px;
}

.navbar a {
  color: var(--color-font-light) !important;
}

.navbar a:hover {  
  transform: scale(1.10); 
}

.comfortaa-regular {
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

p {
  font-family: "Comfortaa", sans-serif;
  color: var(--color-font-light);
  font-size: 0.75em;
  padding-left: 2px;
  padding-right: 2px;
  color: #e0e0e0;
}

h3 {
  font-size: 1.3em;
  font-family: "Comfortaa", sans-serif;
  color: var(--color-font-light);
}

.teksti1 {
  color: var(--color-font-light);
  font-size: 0.8em;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.teksti3 {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.teksti4 {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  font-size: 0.9em;
}

h1 {
  font-size: 30px;
  font-family: "Comfortaa", sans-serif;
  color: var(--color-font-light);
}

/* footer */
#footer {
  background-color: #28242b;
  padding: 10px 0 !important;
}

.footernote1,
.footernote2 {
  margin-top: 5px;
  font-size: 0.7em;
  color: var(--color-font-light);
}

.footernote2 {
  font-size: 0.7em;
}

#footer p {
  margin-bottom: 5px;
  font-size: 0.7em;
}

.linkedin,
.insta,
.gmail {
  width: 22px;
  height: 22px;
}

a {
  text-decoration: none;
  color: #ffffff;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* index page */

.jenny1 {
  width: 240px;
  height: auto;
  border-radius: 10%;
  display: block;
  margin: 0 auto;
}

/* projects page */

.section-title {
  padding-left: 30px;
} 

.row, .row>.column, .row>.column2, .row>.column3 {
  padding: 20px;
}

.column {
  float: middle;
  width: 25%;
}

.column2 {
  float: middle;
  width: 50%;
}

.column3 {
  float: middle;
  width: 100%;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.portfoliocontent, .portfoliocontent2, .portfoliocontent3 {
  background-color: #3d3542; 
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfoliocontent:hover, .portfoliocontent2:hover, .portfoliocontent3:hover {
  transform: scale(1.05); 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); 
}

.carousel-inner {
  overflow: visible !important;
}

.portfoliocontent {
  max-width: 300px;
}

.portfoliocontent2, .portfoliocontent3 {
  max-width: 600px;
}

.portfoliocontent h4 {
  margin-top: -8px;
}

.portfoliocontent h4, .portfoliocontent2 h4, .portfoliocontent3 h4 {
  line-height: 26px;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
  padding: 0px;
}

.portfoliocontent p, .portfoliocontent2 p, .portfoliocontent3 p {
  margin: 0px;
  padding: 0px;
  color: #e0e0e0;
  line-height: 1.5;
}


.portfoliocontent2 img, .portfoliocontent3 img {
  display: block;
  position: relative;
  width: 80%;
  height: auto;
  border-radius: 20px; 
  border: 2px solid #a8a8a8;
  background-color: #3d3542; 
  padding: 0px;
  box-shadow: -10px 10px 0px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.carousel-item img {
  transform: none !important;
}


@media screen and (max-width: 900px) {
  .column {
    width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}

@media screen and (max-width: 900px) {
  .column2 , .column3 {
    width: 73%;
  }
}

@media screen and (max-width: 600px) {
  .column2 , .column3 {
    width: 73%;
  }
}

/* about me page */

.cv .cv-item {
  padding: 0 0 4px 20px;
  border-left: 2px solid #CCC1BF;
  position: relative;
}

.pp {
  color: #ffffff;
  margin-bottom: 0px;
}

.cv-title {
  font-size: 1em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  margin-top: 30px;
}

.cv .cv-item h4 {
  line-height: 26px;
  font-size: 0.8em;
  color: #ffffff;
  margin-bottom: 0px;
}

.cv-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.cv .cv-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 30px;
  left: -6px;
  top: 7px;
  background: #fff;
}

.linkki {
  color: #ffffff;
  text-decoration: none;
}

.linkki:hover {
  text-decoration: underline;
}

.skills {
  margin-left: -8px !important;
}

.skill-row {
  padding: 0 0 4px 20px;
}

.skill-item {
  width: 90%;
}