@import url('https://fonts.googleapis.com/css2?family=Tomorrow&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oxygen&display=swap'); /* Import Fonts */

@import "navigation.css"; /* Grabs the additional stylesheets */
@import "popup-image.css"; 
@import "image-slideshow.css";

body {
  margin: 0px; /* Eliminates the annoying default HTML margin of 8 */
  font-family: 'Oxygen', Arial, sans-serif; /* Arial is a falllback font */
  color:white;
  /* background-image: url(../images/sitebackground.jpg);  ../ makes you reverse out of the folder */
}

.hidden {
  display: none;
}

/* Used in dividers across the pages */
h1 {
  font-family: 'Tomorrow', Arial, sans-serif;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-top: 0px;
  padding-bottom: 8px;
  font-size: 34px;
  font-weight: 300;
}

h2 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 20px;
}

h3 {
  font-size: 64px;
}

p {
  font-size: 18px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-bottom: 1rem;
}

dt {
  font-size: 20px;
}

.white-text {
  color: white;
}

.white-link {
  color: white;
  text-decoration: none;
  text-shadow: none;

  transition: .2s ease-out;
}

.white-link:hover {
  opacity: 80%;
  cursor: pointer;
  text-shadow: 2px 0px 12px white;
}

.white-link-active {
  text-shadow: 2px 0px 12px white;
}

.general-dark-colour {
  background-color: #19191E;
}

.general-darker-colour {
  background-color: #0f0f12;
}

.general-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.general-underline {
  border-bottom: 4px dashed #DD4521;
}

.general-site-padding {
  padding-left: 5%;
  padding-right: 5%;
}

.general-image-100-width {
  width: 100%;
}

.general-image-animation {
  /* Animations */
  transform:skewX(0deg);
  filter:grayscale(0) brightness(1);
  transition: ease-out .2s;
}

.general-image-animation:hover {
  scale: 102%;
  transform:skewX(1deg);
  filter:grayscale(0.7) brightness(1.05);
}

.general-effect-box-shadow {
  box-shadow: 0px 5px 10px rgb(0 0 0 / 10%); 
}

/* This is made to work with text and vector elements */
.general-effect-drop-shadow {
  filter: drop-shadow(0px 5px 5px rgb(0 0 0 / 20%)); 
}

.general-bottom-padding {
  padding-bottom: 4rem;
}

.general-centered-on-image {
  top: 50%;
  left: 50%;
}

.general-top-margin {
  margin-top: 128px;
}

.vector-dark-colour {
  fill: #19191E; /* Fill is used for vector elements */
}

.text-align-right {
  text-align: right;
}

.text-align-center {
  text-align: center;
}

.clear-list-style {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-top {
  top: 0;
  translate:-0px -2px;
}

.position-bottom {
  bottom: 0;
  translate:-0px 2px; /* Fix minor clipping issues */
}

.welcome-logo-overlay {
  top: 40%;
}

#profile-image {
  border-radius: 50%;
  padding: 1rem;
  outline: 6px dashed #DD4521;
  width: 100%;
  max-width: 256px;
  min-width: 128px;
}

.hero-header , .hero-header > video { /* Targets both elements to avoid writing another line of code */
  width:100%;
  margin-top: 45px; /* Push the video under the navigation bar */
}

.hero-octopus { 
  width:100%;
  margin-bottom: -4px;
}

.z-index-1 {
  z-index: 1;
}

.text-on-image {
  bottom: 2%;
  right: 6%;
  z-index: 1;
  background-color: black;
  padding: 4px 8px 4px 8px;
  opacity: 0;
  transition: opacity, bottom 0.3s ease-out;
  pointer-events: none;
}

.learning-outcome-grid {
  display: grid;
  grid-template-columns: auto auto auto; /* Should create 3 by 2 layout */
  column-gap: 6px;
  row-gap: 2px;
}

.project-flexbox {
  display: flex;  
  flex-wrap: wrap;
  column-gap: 6px;
  justify-content: center;
  row-gap: 2px;
  /* background-color: blue; Debug only */
}

.project-thumbnails {
  max-width: 600px;
  min-width: 128px;
}

.project-thumbnail-container {
  flex: 0 1 auto; 
}

.project-thumbnail-container::after { 
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; 
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  filter: blur(50px);
  border-top-left-radius: 20px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 0px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-thumbnail-container:hover .text-on-image {
  opacity: 1; /* Show the h2 on hover */
  bottom: 8%;
}

.project-thumbnail-container:hover::after { 
  opacity: 1; /* Show the gradient on hover */
}

#candace-playground-swap {
  background-image: url(../images/projects/candace-playground-thumbnail.jpg);
  background-size: cover; /* Ensure the background image covers the entire container */
  background-repeat: no-repeat; /* Prevent the background image from repeating */
  background-position: center; /* Center the background image */
}

#candace-playground-swap:hover {
  background-image: url(../images/projects/candace-playground-thumbnail-alt.jpg);
  animation: white-flash 0.2s forwards ease-in-out; 
}

.flexbox-left-right {
  display: flex; 
  justify-content: space-between;
  column-gap: 3%;
  padding-top: 4rem;
}

.flexbox-reverse {
  flex-direction: row-reverse;
}

.flexbox-image-grid {
  display: flex; 
  justify-content: space-between;
  column-gap: 2%;
  row-gap: 2%;
  padding-top: 1rem;
  /* overflow: hidden; */
}

.flexbox-image-grid > div {
  flex: 50%;
}

.flexbox-left {
  display: flex;
  justify-content: space-between;
  column-gap: 3%;
  padding-top: 4rem;
}

/* Force 50% spacing between text and image */
.flexbox-left-right > div { 
  flex: 50%;
  max-width: 1024px;
  min-width: 256px;
  /* overflow: hidden; */
}

.flexbox-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flexbox-vertical {
  display: flex;
  flex-direction: column;
}

.flexbox-vertical > div {
  flex: 50%;
}

.click-through {
  pointer-events: none; /* This stops the div from blocking links and animations below the cursor */
}

#octopus-3d-scene {
  width: 100%;
  height: 1080px; /* Unfortunately this is mandatory for the three js scene to function */
  position: relative;
  display: block;
}

#scene-container canvas {
  width: 100%; /* Set the width of the Three.js renderer to 100% of the parent element */
  height: 100%; /* Set the height of the Three.js renderer to 100% of the parent element */
  position: absolute; /* Set the position to absolute so that the canvas element is positioned relative to the section */
  top: 0; /* Set the top position to 0 so that the canvas element is aligned to the top of the section */
  left: 0; /* Set the left position to 0 so that the canvas element is aligned to the left of the section */
}

#interaction-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  fill: white;
  width: 800px;

  transition: opacity 1s;

  animation: interaction-hint-animation 1s infinite;
}

.fade-out {
  opacity: 0;
}

@keyframes interaction-hint-animation {
  0% {opacity: 100%; transform: translate(-50%, -50%);   fill: white;}
  50% {opacity: 75%; transform: translate(-50%, -55%);   fill: #DD4521;}
  100% {opacity: 100%; transform: translate(-50%, -50%);   fill: white;}
  
}

@keyframes white-flash {
  0% {filter:brightness(100%) hue-rotate(0deg)}
  50% {filter:brightness(250%) hue-rotate(20deg)}
  100% {filter:brightness(100%) hue-rotate(0deg)}
}


/* Responsiveness */
@media screen and (max-width:900px) { 
  .hero-header , .hero-header > video {
    margin-top: 50px; /* Push the video under the navigation bar */
  }

  .text-on-image {
    opacity: 1;
    bottom: 8%;
  }
  
  h1 {
    text-align: center;
  }

  .learning-outcome-grid {
    grid-template-columns: auto; /* Make just one column */
  } 

  .general-site-padding {
    padding-left: 10%;
    padding-right: 10%;
  }

  .flexbox-left-right {
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .flexbox-image-grid {
    flex-direction: column;
  }

  #octopus-3d-scene {
    height: 420px; /* Unfortunately this is mandatory for the three js scene to function */
  }

  #interaction-hint { 
    width: 256px;
  }

}



