@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap");

:root {
  --layout-width: 650px;
  --bg-color: #ffffff;
  --font-color: #000000;
  --success-color: #66bb6a;
  --link-color: #1363df;
  --font-family: "Roboto Mono", monospace;
}

[data-theme="dark"] {
  --link-color: var(--success-color);
  --bg-color: #000000;
  --font-color: #ffffff;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

a {
  color: var(--link-color);
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  color: var(--font-color);
}

main {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
}

h1 {
  line-height: 1;
}

h1 span {
  font-size: 24px;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

ul li {
  border: 2px solid var(--font-color);
  margin: 0 10px 10px 0;
  padding: 10px;
  cursor: grabbing;
  transition: 100ms ease-in-out;
}

ul li:hover {
  transform: translate3d(2px, -2px, 0);
}

footer {
  margin-top: 40px;
  display: flex;
  align-items: center;
}

footer img {
  width: 40px;
  margin: 0 10px;
}

footer mark {
  cursor: pointer;
}

.disabled-link {
  cursor: not-allowed;
  text-decoration: none;
}

.hero-picture {
  max-width: 260px;
}

.experience-block {
  margin: 20px 0;
}

.experience-block h4 {
  margin: 0;
}

.experience-block h4 a {
  text-decoration: none;
}

.experience-block p {
  margin: 0;
}

.theme-switch {
  display: flex;
  align-items: center;
  position: absolute;
  right: 20px;
  top: 30px;
}

@media only screen and (max-width: 650px) {
  .theme-switch {
    position: static;
    margin-bottom: 20px;
  }
}

.theme-switch em {
  margin-left: 10px;
  font-size: 1rem;
}

.theme-switch-label {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch-label input {
  display: none;
}

.theme-switch-slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 34px;
}

.theme-switch-slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 26px;
  border-radius: 50%;
}

input:checked + .theme-switch-slider {
  background-color: var(--success-color);
}

input:checked + .theme-switch-slider:before {
  transform: translateX(26px);
}
