

:root {
    --c-primary: rgb(209, 197, 173);
    --c-secondary: rgba(200,200,200,.85);
    --c-tertiary: hsl(88, 25%, 11%, .5);
    
    --v-space: 6rem;
    --canvas-height: 80vh;
    --f-weight: 600;
    --border-radius: min(10vw, var(--v-space));
}



canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Puts Three.js behind everything */
    /* background: transparent !important; Ensure full transparency */
    pointer-events: none; /* Prevents blocking interactions */
}


.intro{
    width: 50%;
    /* animation: pulse 1s infinite alternate; */
}




html {
    font-size: 16px;
    line-height: 1.5;
    /* background: black; */
    background: rgb(15, 15, 16);
    /* font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;  */
    font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
    color: var(--c-secondary);
    box-sizing: border-box;
    
}


h1{
    width: 1px;
    font-size: 100px;
    line-height: 1;
    mix-blend-mode: difference;
    transition: .5s;
    /* animation: pulse 1s infinite alternate; */
}
h1:hover {
    transform:  scale(1.2);
    transition: .5s;
}

h2{
    font-weight: var(--f-weight);
    font-size: 3rem;
    line-height: 1.4;
    mix-blend-mode: difference;
}

.canvas-container{
    position: relative;
    margin: 0 auto;
    width: 90%;
}

.fixed-image {
    z-index: -2;
    position: fixed;
    top: 150px; 
    left: 180px;
    width: 570px;
    height: auto;
    transform: translateX(100%);
}

@keyframes pulse {
    from {
      transform:  scale(1);
    }
    to {
      transform:  scale(1.1);
    }
  }

.fixed-image:hover {
    animation-play-state: paused;
}

@media screen and (max-width: 1000px) {
    .intro {
        width: 100%; /* Set a fixed width when the screen width is less than 800px */
    }
    .fixed-image{
        left: -500px;
    }
}

/* .fixed-image2 {
    z-index: -2;
    position: fixed;
    top: 150px; 
    left: 180px;
    width: 40%;
    height: auto;
    transform: translateX(100%);
} */

.canvas-container .window{

    height: 650px;
    background-color: rgba(38, 38, 38, 0.8);
    backdrop-filter: blur(1px);
    /* border: 2px solid #727272; */
    border-radius: 100px;
    overflow:auto;
    /* z-index: 10; */
    /* justify-content: center;  */
    /* box-shadow: 2px 2px 40px #232323; */
}




.timeline {
    grid-area: timeline;
    transition: .5s;
    /* filter: drop-shadow(2px 2px 5px #232323); */
}

/* .timeline:hover {
    transform: translateY(-1rem);
    transition: .5s;
} */

.timeline-entry {
    /* z-index: 1; */
    /* mix-blend-mode: difference; */
    background: var(--c-tertiary);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    
    position: relative;
    padding: calc(var(--v-space)/2) 0;
    
    /* display: flex;
    justify-content: center; */
    display: grid;
    grid-template-columns: 1fr 7fr 5fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
    ". co description .";
}

.timeline-entry:first-child {
    /* background-color: #98fb98; */
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.timeline-entry:last-child {
    /* background-color: #98a0fb; */
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.timeline-co {
   
    
    margin: calc(var(--v-space) * .5) 0 0;
    grid-area: co;
    margin-right: 10%;
    /* background-color: #98fb98; */
}

.timeline-co a {
    color: var(--c-primary);
    
}


#cs-course-content{
    list-style:square;
}



.timeline-time {
    display: block;
}

.timeline-description {
    margin: calc(var(--v-space) * .5) 0 0;
    font-weight: normal;
    font-size: 1.5rem;
    line-height: 1.4;
    /* width: 35%; */
    grid-area: description;
    /* margin-left: 10%; */
    /* mix-blend-mode: difference; */
}




table {
    /* background: var(--c-tertiary);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);*/
    /* color: rgb(0, 0, 0); */
    width: 75%; 
    margin: 0 auto; 
    mix-blend-mode: difference; 
    border-collapse:separate;
    border:solid black 1px;
    border-radius:6px;
  }


table caption {
    /* background-color: var(--c-tertiary); */
    font-size: 2em;
    font-weight: bolder;
    font-size: 2em;
    mix-blend-mode: difference;
    
}



  thead {
    
    font-weight: bolder;
    background-color: var(--c-primary);
    color: rgb(0, 0, 0);
    text-align: center;
    vertical-align: bottom;
    font-family: sans-serif;
  }

  tbody {
    text-align: center;
    background-color: whitesmoke;
    color: black ;
  }

  th {
    text-align: center;
    padding: 5px;
    border: 5px solid #ddd;
    border-left:solid black 1px;
    border-top:solid black 1px;
    
  }

  td {
    padding: 5px;
    border: 5px solid #ddd;
    border-left:solid black 1px;
    border-top:solid black 1px;
  }

  tbody th {
    background-color: gray; 
    text-align: left;
    padding: 5px;
    border: 5px solid #ddd;
    border-left:solid black 1px;
    border-top:solid black 1px;
  }

  tfoot {
    color: black ;
    background-color: var(--c-secondary);
    text-align: center;
  }

  tfoot th {
    text-align: center;
    font-weight: bolder;
  }

  .summary {
    text-align: right;
    font-weight: bolder;
    font-style: italic;
  }

footer {
    grid-area: footer;
    
    display: grid;
    grid-template-columns: 1fr 5fr 5fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
    ". p p ."
}

footer > .footer-content {
    z-index: 1;
    padding: var(--v-space) 0;
    font-weight: var(--f-weight);
    font-size: 1.5rem;
    line-height: 1.4;
    
    grid-area: p;
}


@media only screen and (max-width: 834px) {
    :root {
        --v-space: 4rem;
    }
    html {
        font-size: 14px;
    }
    main {
        grid-template-columns: 1fr 8fr 2fr 1fr;
    }
}

@media only screen and (max-width: 736px) {
    :root {
        --v-space: 3rem;
    }
    html {
        font-size: 12px;
    }
    main {
        grid-template-columns: 1fr 10fr 0fr 1fr;
    }
    .timeline-entry {
        grid-template-columns: 1fr 5fr 5fr 1fr;
        grid-template-rows: 1fr auto;
        grid-template-areas:
        ". hr hr ."
        ". co co ."
        ". description description .";
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes party {
    0% {
        background-color: #ff4136;
    }
    25% {
        background-color: #ffdc00;
    }
    50% {
        background-color: #2ecc40;
    }
    75% {
        background-color: #0074d9;
    }
    100% {
        background-color: #f012be;
    }
}

.linknul {
    text-decoration: none;
}

.link {
    color: var(--c-primary);
    text-decoration: none;
}

.link:hover {
    color: rgb(0, 0, 0);
    animation: party 1s infinite;
    text-decoration: none;
}

.link:visited {
    color: var(--c-secondary);
    text-decoration: none;
}
