@import url('https://fonts.googleapis.com/css?family=Montserrat:700');

:root {
  --background-theme: #070707;
  --color-theme: #3da5d1;
  --default-text-color: #FCF7F8;
}

body {
  background: linear-gradient(90deg, var(--background-theme) 21px, transparent 1%) center, linear-gradient(var(--background-theme) 21px, transparent 1%) center, var(--color-theme);
  background-size: 22px 22px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

main {
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background-color: var(--background-theme);
  border-radius: 15px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0px 0px 100px -28px var(--color-theme);
  color: var(--default-text-color);
  overflow: hidden;
}

main span {
  color: var(--color-theme);
}

main h1 {
  font-size: 5em;
  margin-bottom: 1rem;
}

container {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  /* justify-content: center; */
  align-items: center;
  flex-direction: column;
}

container>h3 {
  transition: all 0.5s ease-in-out;
  margin-top: -0.125rem;
}

.hide {
  opacity: 0;
}

github-projects {
  position: absolute;
  margin-top: 0.5rem;
  width: 100%;
  height: 20%;
}

section {
  all: initial;
  display: grid !important;
  grid-auto-flow: column !important;
}

buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20rem;
  z-index: 1;
}

button {
  margin: 7.5px;
  padding: 1.3em 3em;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 45px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
  z-index: 999;
}

button:hover {
  background-color: black;
  -webkit-backdrop-filter: brightness(1.2);
  backdrop-filter: brightness(1.2);
  box-shadow: 0px 15px 20px var(--color-theme);
  color: #fff;
  transform: translateY(-7px);
}

@media (max-width: 1200px) {
  main {
    width: 100%;
    height: 100%;
  }

  modalbox {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
  }
}

@media (max-width: 550px) {
  main h1 {
    font-size: 3em;
  }
}

@media (max-width: 325px) {
  main h1 {
    font-size: 2em;
  }

  main h3 {
    font-size: 1em;
  }
}

::-webkit-scrollbar {
  width: 3px;
  height: 6px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-theme);
  -webkit-filter: brightness(0.5);
  filter: brightness(0.5);
  border-radius: 10px;
  width: 3px;
  height: 6px;
}

.open {
  transform: scaleY(1);
}

/* setup for modal */
modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scaleY(0);
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

modalbox {
  position: relative;
  width: 80%;
  height: 80%;
  background-color: var(--background-theme);
  border-radius: 15px;
  color: var(--default-text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow-y: scroll;
  z-index: 1001;
}

div>a {
  text-decoration: none !important;
  color: var(--color-theme) !important;
}

colorpicker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1000000000;
}

.block {
  display: block;
  transform: scaleY(1);
}

cont {
  display: none;
}

.colorcontainer:has(input:checked)~cont {
  display: block;
}

.colorcontainer:has(input:checked)~cont>colorpicker {
  transform: translate(-50%, -50%) scaleY(1);
}

.colorcontainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.colorcontainer {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 1000000000;
  background-color: var(--color-theme);
}
