:root {
  --window-border-radius: 15px;
  --window-border-width: 5px;
  --window-bar-height: 45px;

  --icon-size: 40px;

  --primary-color: #c5ddf0;
  --primary-color-highlight: #95b2c9;
  --secondary-color: #98d4ff;
  --tertiary-color: #44b4fa;
  --tertiary-color-highlight: #3399d8; 
}

* {
  margin: 0;
  font-family: 'Varela Round';
}

html {
  overflow-y: hidden;
}

body {
  background-image: url("assets/backgroundImage.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  overflow: hidden;
}

a {
  font-weight: 600;
  letter-spacing: 0.65px;
  transition: color 0.3s;
}
a:visited {
  color: #0000ee;
}
a:hover {
  color: #006fee;
}

.centeredText {
  text-align: center;
}

div.splitSection {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 1fr;
}
div.splitSection > div:first-child {
  grid-column: 1;
}
div.splitSection > div:last-child {
  grid-column: 2;
}

/* Windows */
div.window {
  background-color: var(--primary-color);
  position: absolute;
  border-radius: var(--window-border-radius);
  filter: drop-shadow(3px 3px 7px black);
}

div.topBar {
  background-color: var(--tertiary-color);
  height: var(--window-bar-height);
  border-top-left-radius: var(--window-border-radius);
  border-top-right-radius: var(--window-border-radius);
  border: solid var(--window-border-width) var(--tertiary-color-highlight);
  display: flex;
  align-items: center;
  justify-content:space-between;
}

div.topBar > * {
  margin: 10px;
}

div.topBarX {
  cursor: pointer;
  margin-right: 0;
  padding: calc(var(--window-bar-height) - 35px);
  transition: background-color 0.2s, font-size 0.2s;
  border-top-right-radius: var(--window-border-radius);
}
div.topBarX:hover {
  background-color: #f72727;
  font-size: 1.2em;
}

div.windowPage {
  height: calc(100% - var(--window-bar-height) - (var(--window-border-width) * 3) - 10px);
  border: solid var(--window-border-width) var(--primary-color-highlight);
  border-bottom-left-radius: var(--window-border-radius);
  border-bottom-right-radius: var(--window-border-radius);
  border-top: none;
  padding: 5px;
  overflow-y:scroll;
  scrollbar-width: none;
}

/* Icons */
div#iconGrid {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  grid-template-rows: repeat(auto-fill, minmax(75px, 1fr));
  grid-auto-flow: column;
  justify-items: center;
  align-items: center;
}

div.icon {
  border-radius: 10px;
  font-size: calc(0.76 * var(--icon-size) + 3px);
  padding: 7px;
  width: var(--icon-size);
  height: var(--icon-size);
  cursor: pointer;
  color: white;
  transition: transform 0.2s;
  text-align:center;
  border: solid 3px;
}

div.icon:hover {
  transform: scale(1.075);
}

div.icon.red {
  background-color: red;
  border-color: darkred;
  color: pink;
}
div.icon.blue {
  background-color: blue;
  border-color: darkblue;
  color: lightblue;
}
div.icon.green {
  background-color: green;
  border-color: darkgreen;
  color: lightgreen;
}
div.icon.purple {
  background-color: darkorchid;
  border-color: #811db3;
  color: #df83dc;
}

/* Dropdown */
div.dropdown  {
  display: grid;
  background-color: var(--secondary-color);
  grid-template-rows: max-content 0fr;
  transition: grid-template-rows 0.5s;
  overflow: hidden;
  align-items: flex-start;
  border-radius: 5px;
  margin-bottom: 10px;
  position: relative;
}

div.dropdown:has(>input:checked) {
  grid-template-rows: max-content 1fr;
}

div.dropdown > input {
  cursor: pointer;
  /*
  grid-row-start: 1;
  grid-column-start: 1;
  */
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  height: 100%;
}

div.dropdown > div.dropdownTitle {
  grid-row-start: 1;
  grid-column-start: 1;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

div.dropdown > div.dropdownContent {
  grid-row-start: 2;
  grid-column-start: 1;
  overflow-y: auto;
}

div.dropdown > div.dropdownContent > * {
  text-align: center;
}

div.dropdown > div.dropdownContent > img, img.projectImage, iframe.projectImage {
  border-radius: 10px;
  filter: drop-shadow(3px 3px 5px black);
}

div.dropdown > div.dropdownContent > img {
  width: 80%;
  margin-bottom: 15px;
}

/* Text Icon */
div.textIcon {
  display: flex;
  align-items: center;
}

div.textIcon > div.icon {
  background-color: var(--secondary-color);
  border-radius: 50%;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.textIcon > h3 {
  letter-spacing: -10px;
  transition: letter-spacing 0.2s, opacity 0.2s;
  opacity: 0;
}

div.textIcon > div.icon:hover + h3 {
  letter-spacing: 0px;
  opacity: 1;
}

/* Miscelanious */
#aboutImageRotation {
  width: 200px;
  transition: padding 0.2s;
  filter: drop-shadow(3px 3px 5px black);
  cursor: pointer;
}

#aboutImageRotation:hover {
  padding: 15px;
  animation-name: bouncy;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

img.projectImage, iframe.projectImage {
  width: 80%;
  margin: 7px;
}

iframe.projectImage {
  aspect-ratio: 16/9;
}

img.projectImage:hover {
  animation-name: pulse;
  animation-duration: 0.85s;
  animation-iteration-count: infinite;
}

#contactImage {
  width: 70%;
  filter: drop-shadow(3px 3px 5px black);
  animation-duration: 1s;
  animation-iteration-count: 1;
  cursor: pointer;
}

.bouncy {
  animation-name: bouncy;
}

img.centeredImage {
  margin: 7px auto;
  display: block;
}

iframe.centeredImage {
  margin: 7px auto;
  display: block;
}

@media screen and (max-width: 768px) {
  body {
    background-image: url("assets/backgroundImageMobile.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    overflow: hidden;
  }

  div#iconGrid {
    grid-auto-flow: row;
  }

  div.splitSection {
    display:block;
  }
  div.splitSection > div {
    margin-bottom: 10px;
  }

  div.splitSection.codingProject {
    text-align: center;
  }
}

@keyframes bouncy {
  0% {
    transform: scale(1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.95, 1.05) translateY(-1.15em);
  }
  44% {
    transform: scale(1.1, 0.9) translateY(0.125em);
  }
  64% {
    transform: scale(0.975, 1.025) translateY(-0.65em);
  }
  85% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    animation-timing-function:ease-in-out;
  }
  50% {
    transform: scale(1.05);
    animation-timing-function:ease-in-out;
  }
}