@import 'https://fonts.googleapis.com/css?family=Montserrat';
* {
  font-family: Montserrat;
}
html {
  color: #222;
  font-size: 1em;
  line-height: 1.5;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  margin: 0;
}

a {
  color: #777;
  text-decoration: none;
}
p {
  margin: 0 0 45px 0;
  text-align: justify;
}
.header {
  width: 80%;
}
h1,h2,h3,h4,h5,h6 {
  font-family: Montserrat;
  font-weight: 600;
  color: #484848;
  margin: 30px 0 25px 0;
  line-height: 1.3;
}
.container {
  padding: 0 20px;
  margin: 0 auto;
}
.container:after,
.container:before {
  content: " ";
  display: table;
}
.container:after {
  clear: both;
}
.intro h1 {
  color: #000;
}
.intro h1 strong {
  color: #0064FF;
}
.link {
  display: inline-block;
  position: relative;
  border: none;
  padding-bottom: 4px;
  text-transform: uppercase;
  font-family: Montserrat, helvetica, arial, sans-serif;
  font-weight: 700;
}
.link:active,
.link:focus,
.link:hover {
  outline: 0;
}
#motto {
  display: inline-block;
  position: relative;
  border: none;
  padding-bottom: 4px;
  text-transform: uppercase;
  font-family: Montserrat, helvetica, arial, sans-serif;
  font-weight: 700;
}
.link:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  background: #000;
  width: 0;
  height: 2px;
  -webkit-transition: all .4s cubic-bezier(.35, 1, .33, 1);
  transition: all .4s cubic-bezier(.35, 1, .33, 1);
}

.link:hover {
  color: #000;
}

.link:hover:before {
  width: 100%;
}

.link-theme:before {
  background: #0064FF;
}

@media only screen and (min-width:250px) {
  .main {
    padding-top: 150px;
  }
  .container {
    width: 80%;
  }
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 20px;
  }
}

@media only screen and (min-width:768px) {
  .main {
    padding-top: 150px;
  }
  .container {
    width: 80%;
  }
  h1 {
    font-size: 48px;
  }
  h2 {
    font-size: 28px;
  }
  .footer {
    padding: 70px 0;
  }
  .footer ul {
    margin-top: 15px;
  }
  .footer ul li {
    display: inline-block;
    margin: 0 0 0 10px;
  }

  .footer .foot-content-left {
    float: left;
  }
  .footer .foot-content {
    float: right;
  }
}

@media only screen and (min-width:992px) {
  .container {
    width: 80%;
  }
  h1 {
    font-size: 60px;
  }
  h2 {
    font-size: 28px;
  }
}

@media only screen and (min-width:1200px) {
  .container {
    width: 1160px;
    width: 80%;
  }
  h1 {
    font-size: 80px;
  }
  h2 {
    font-size: 30px;
  }
}

.header {
  background-color: #fff;
  position: fixed;
  width: 80%;
  z-index: 3;
  margin-left: 10%;
  margin-right: 10%;
  padding: 20px 0;
}
.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
}
.header li a {
  display: block;
  padding: 20px 20px 4px 20px;
  text-decoration: none;
}
.header li a:hover,
.header .menu-btn:hover {
  background-color: #fff;
}
.header .logo {
  color: #0064FF;
  display: block;
  float: left;
  font-size: 2em;
  padding: 2px 0px;
  text-decoration: none;
}
.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}
.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}
.header .menu-icon .navicon {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}
.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}
.header .menu-icon .navicon:before {
  top: 5px;
}
.header .menu-icon .navicon:after {
  top: -5px;
}
.header .menu-btn {
  display: none;
}
.header .menu-btn:checked ~ .menu {
  max-height: 240px;
}
.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}
.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}
.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}
.section {
  overflow: hidden;
  margin: auto;
  max-width: 1400px;
}
.section a {
  position: relative;
  float: left;
  width: 100%;
}
.section a img {
  width: 100%;
  display: block;
}
.section a span {
  color: #fff;
  position: absolute;
  left: 5%;
  bottom: 5%;
  font-size: 2em;
  text-shadow: 1px 1px 0 #000;
}
.section-split a span {
  display: none;
}
.section-split a:hover span {
  display: block;
}
@media (min-width: 875px) {
  .header li {
    float: left;
  }
  .header li a {
    padding: 20px 0px 0px 0px;
    margin-left: 30px;
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }
}
@media (min-width: 48em) {
  .section-split a {
    width: 50%;
  }
}
.footer {
  font-size: 14px;
  padding: 40px 0;
  background: #fff;
  color: #888;
}
.footer .container {
  position: relative;
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  margin-top: 35px;
}
.footer ul li {
  margin-bottom: 10px;
}
.footer ul a {
  display: inline-block;
  position: relative;
  border: none;
  padding-bottom: 4px;
  text-transform: uppercase;
  color: #000;
  font-family: Montserrat, helvetica, arial, sans-serif;
  font-weight: 700;
  font-family: Montserrat, helvetica, arial, sans-serif;
  font-weight: 400;
  color: #888;
  text-transform: none;
}
.footer ul a:active,
.footer ul a:focus,
.footer ul a:hover {
  outline: 0;
}
.footer ul a:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  background: #000;
  width: 0;
  height: 2px;
  -webkit-transition: all .4s cubic-bezier(.35, 1, .33, 1);
  transition: all .4s cubic-bezier(.35, 1, .33, 1);
}
.footer ul a:hover {
  color: #000;
}
.footer ul a:hover:before {
  width: 100%;
}
.footer ul a.link-theme:before {
  background: #0064FF;
}

.footer .col-logo {
  width: 50%;
}
.footer .col-logo .path-letter {
  -webkit-transform: translate3d(-10px, 0, 0);
  transform: translate3d(-10px, 0, 0);
  opacity: 0;
  transition: all .3s cubic-bezier(.35, 1, .33, 1);
}
.footer .col-logo:hover .path-letter {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.skill-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin: 20px 0;
  text-align: left;
  padding-bottom: 20px;
}

.skill-bar {
  height: 14px;
  background: #282828;
  border-radius: 3px;
}

.skill-per {
  height: 14px;
  background: #0064FF;
  border-radius: 3px;
  position: relative;
}

.skill-per::before {
  content: attr(per);
  position: absolute;
  padding: 4px 6px;
  background: #f1f1f1;
  border-radius: 4px;
  font-size: 12px;
  top: -35px;
  right: 0;
  transform: translateX(50%);
}

#Taidot {
  color: #000;
  padding-top: 80px;
}

.about-me {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 50px 0;
}

.about-me img {
  width: 40%;
  margin-right: 5%;
}

.about-me-text {
  width: 55%;
}

.about-me-text h1 {
  font-size: 2.5em;
  margin: 0 0 25px 0;
}

.about-me-text p {
  font-size: 1.2em;
}

@media screen and (max-width: 767px) {
  #MyPhoto1 {
    display: block;
    margin: 0 auto;
    width: 50%; /* Further reduced size for better fit on mobile */
    position: relative;
    top: -30px;
    z-index: 1;
  }
}

@media only screen and (max-width: 600px) {
  .about-me-text {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  .about-me {
    width: 100%;
  }
  #aboutmetext {
    text-align: left;
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  #MyPhoto2 {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding-top: 20px;
    display: block;
    margin: 0 auto;
    width: 100%;
  }

  #two {
    position: relative;
    z-index: 2;
    padding-top: 30px;
  }
}

@media only screen and (max-width: 600px) {
  .work-and-projects-text {
    text-align: center;
    margin-top: 10px;
  }
  .workandprojects {
    width: 100%;
    text-align: center;
  }
}

#MyPhoto2 {
  float: right;
  width: 50%;
}

#tekeleeni {
  color: #000;
}

#koulutus {
  color: #000;
}

@media screen and (max-width: 767px) {
  #MyPhoto3 {
    display: block;
    margin: 0 auto;
    width: 100%;
    position: relative;
    top: -30px;
    z-index: 1;
  }
}

#three {
  position: relative;
  z-index: 2;
  padding-top: 30px;
}

@media only screen and (max-width: 767px) {
  #Taidot {
    color: #000;
    padding-top: 115px;
  }
}

#Yhteystiedot {
  color: #000;
}

/* Additional styling for work experiences */
.work-experience-list li {
  margin-bottom: 20px; /* Space between work experiences */
  line-height: 1.6; /* Line height for readability */
}

/* Additional CSS for resizing images */
#MyPhoto1 {
  max-width: 100%;
  height: auto;
}
