html {
  font-size: 14px;
}

@media screen and (min-width: 800px) {
  html {
    font-size: 16px;
  }
}

@media screen and (min-width: 1040px) {
  html {
    font-size: 18px;
  }
}

a:link {
  text-decoration: none;
}

a:active {
  text-decoration: none;
  text-decoration-color: none;
}

a {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  color: #000;
  margin: 5px 10px 2px 10px;
  vertical-align: middle;
  text-align: center;
}

body {
  font-family: "Poppins", Helvetica, Verdana, sans-serif;
  width: 100%;
  margin: 0;
  padding: 30px 0;
  background-color: #f5f7fa;
  color: #30312b;
  line-height: 1.5;

  display: flex;
  justify-content: center;
}

.wraper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 35px 5%;

  background-color: white;
  box-shadow: 6px 6px 20px 0px rgba(0, 0, 0, 0.1);
}

img {
  display: block;
  width: 100%;
}

.img {
  width: 25%;
  max-width: 160px;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 50px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skills-edu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills,
.edu,
.edu-item {
  width: 100%;
}

.edu-item-single {
  margin: 25px;
}

@media (max-width: 400px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  .title {
    margin-top: 25px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  margin: 0;
}

.important {
  font-weight: 600;
}

p {
  color: #595959;
  margin: 0;
  padding-top: 5px;
}

.summary,
.projects {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-bottom: 25px;
}

ol {
  margin-top: 25px;
  margin-bottom: 25px;
}

li {
  text-align: left;
  color: #595959;
}

aside {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
}

hr {
  display: flex;
  width: 100%;
  border: 0;
  height: 1px;
  background-color: #063970;
  margin-top: 0;
  margin-bottom: 35px;
}

.visibility {
  display: flex;
}

/* PRZYCISK ZMIANY JEZYKA */

.switch-button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;

  padding-bottom: 50px;
}

.switch {
  display: inline-flex;
  align-items: center;
  --button-width: 4.5em;
  --button-height: 2em;
  --toggle-diameter: 1.5em;
  --toggle-shadow-offset: 10px;
  --toggle-wider: 3em;
  --color-grey: #cccccc;
  --color-green: #002d7a;
}

.slider {
  display: inline-flex;
  align-items: center;
  margin: 0 10px 0 10px;
  vertical-align: middle;
  width: var(--button-width);
  height: var(--button-height);
  background-color: white;
  border: 1px solid var(--color-grey);
  border-radius: calc(var(--button-height) / 2);
  position: relative;
  transition: 0.3s all ease-in-out;
}

.slider::after {
  content: "";
  display: inline-block;
  width: var(--toggle-diameter);
  height: var(--toggle-diameter);
  background-color: var(--color-green);
  border-radius: calc(var(--toggle-diameter) / 2);
  position: absolute;

  transform: translateX(0.25em);
  box-shadow: var(--toggle-shadow-offset) 0
    calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
  transition: 0.3s all ease-in-out;
}

.switch input[type="checkbox"]:checked + .slider {
}

.switch input[type="checkbox"]:checked + .slider::after {
  transform: translateX(
    calc(var(--button-width) - var(--toggle-diameter) - 0.25em)
  );
}

.switch input[type="checkbox"] {
  display: none;
}

.switch input[type="checkbox"]:active + .slider::after {
  width: var(--toggle-wider);
}

.switch input[type="checkbox"]:checked:active + .slider::after {
  transform: translateX(
    calc(var(--button-width) - var(--toggle-wider) - 0.25em)
  );
}

/* KONIEC PRZYCISK ZMIANY JEZYKA */

/* PRZYCISK ZMIANY TRYBU JASNY CIEMNY */
.slider.light {
  justify-content: space-between;
}

.slider.light > span {
  margin-left: 0.3em;
  margin-right: 0.25em;
}

.slider.light span {
  position: relative;
  z-index: 1;
}

.slider.light > span {
  font-size: 1.4em;
  color: var(--color-green);
}

/* KONIEC PRZYCISK ZMIANY TRYBU JASNY CIEMNY */

@media screen and (min-width: 800px) {
  .skills-edu {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px 50px;
    width: 100%;
  }

  .skills,
  .edu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 25px;
  }

  .skills {
    flex: 1;
  }

  .edu {
    flex: 2;
  }

  .visibility {
    display: none;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body {
    background-color: #ffffff;
  }

  .wraper {
    background-color: white;
    box-shadow: none;
  }

  .switch-button {
    display: none;
  }

  .skills-edu {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px 50px;
    width: 100%;
  }

  .skills,
  .edu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 25px;
  }

  .skills {
    flex: 1;
  }

  .edu {
    flex: 2;
  }

  .visibility {
    display: none;
  }
}
