@import url('https://fonts.googleapis.com/css?family=Comfortaa:300,400');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import './transitions.scss';

:root {
  --content-width: 1000px;
  --border-radius: 3px;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;

  background: #111;
  color: #eee;

  &.scrollbar {
    overflow-y: scroll;
  }
}

a {
  position: relative;
  text-decoration: none;
  color: inherit;
  opacity: 0.6;
  font-weight: bold;
  white-space: nowrap;
  border-bottom: 1px solid #eee;

  &:hover {
    opacity: 0.8;
  }

  &:active {
    opacity: 1;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1em;
}

p {
  line-height: 1.5;
  margin: 0 0 1rem 0;

  .logo {
    font-weight: bold;
  }
}

button,
.btn {
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;

  padding: 0.25em 0.5em;
  border: 1px solid rgba(#fff, 0.2);
  border-radius: 3px;

  appearance: none;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  &:not(:disabled) {
    &:hover {
      background: #ccc;
    }

    &:hover,
    &:active {
      color: #222;
    }

    &:active {
      background: #eee;
    }

    &:focus {
      outline: none;
    }
  }
}

img {
  border-radius: var(--border-radius);
}

.toggle {
  display: flex;
  justify-content: center;
  align-items: center;

  input {
    flex: 0;
  }

  div {
    flex: 1;
  }
}

.flex {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.block {
  display: block;
}

.page {
  padding-top: 4rem;

  h1 {
    text-align: center;
  }

  section p,
  section section {
    padding: 0 1rem;
  }

  section {
    margin-bottom: 2em;
  }

  .img {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    text-align: center;

    img {
      max-width: 100%;
    }
  }
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 100%;
  height: 100%;
}
