@font-face {
  font-family: "SN Pro";
  src: url("../assets/fonts/SNPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SN Pro";
  src: url("../assets/fonts/SNPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: "SN Pro", sans-serif;
}

:root {
    --science-blue: #43b2d8;
    --math-green: #93bd7c;
    --compsci-yellow: #f0d261;
    --warm-bg: #f6f0cf;
}

h1 {
    text-align: center;
	font-family: "SN Pro", sans-serif;
	font-size: 2.188em;
    margin-left: 0;
}
h3 {
    font-size: 0.9375em;
}
h4 {
    font-size: 0.5em;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SN Pro", sans-serif;
}
.topbar {
    width: 100%;
    min-height: 6.25em;
    background-color: var(--compsci-yellow);
    padding: 1.875em 1.25em;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    box-shadow: 0.25em 0 0.625em rgba(0,0,0,0.05);
}
.page-wrap {
    width: min(82em, 100%);
    margin: 0 auto;
    padding-top: 8.5em;
    padding-bottom: 8em;
}
#name {
    cursor: pointer;
}
.options {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    font-size: 3.125em;
}
.options:hover {
    transform: translateY(-0.625em);
    cursor: pointer;
}
.courses {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}
.dash {
    display:flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    text-align: center;
}
body {
    background-color: var(--warm-bg);
    color: #333;
}
.container {
    display: grid;
    padding: 3.125em;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    width: 100%;
    max-width: 78em;
    margin: 0 auto;
}
.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5) translateY(-3.125em);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    background-color: #fffdf5;
    padding: 0.9375em;
    border-radius: 0.9375em;
    box-shadow: 0 0.5em 1.25em rgba(0, 0, 0, 0.3);
    border-top: 0.4em solid var(--math-green);
    flex: 1 1 15.62em;
    transition: 0.3s;
    min-height: 3.125em;
}
.box:hover {
    box-shadow: 0 0.5em 1.25em rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
.box h3 {
    color: #1f2328;
    margin-bottom: 0.625em;
    font-size: 1.125em;
}
.container .courses:nth-child(3) .box,
.container .courses:nth-child(4) .box {
    border-top-color: var(--compsci-yellow);
}

.container .courses:nth-child(5) .box,
.container .courses:nth-child(6) .box {
    border-top-color: var(--science-blue);
}
.box p {
    color: #3f3f3f;
    font-size: 0.875em;
    line-height: 1.5;
    flex-grow: 1;
}
@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.box:nth-child(1) { animation-delay: 0.1s; }
.box:nth-child(2) { animation-delay: 0.2s; }
.box:nth-child(3) { animation-delay: 0.3s; }
.box:nth-child(4) { animation-delay: 0.4s; }
.box:nth-child(5) { animation-delay: 0.5s; }
.box:nth-child(6) { animation-delay: 0.6s; }
.box:nth-child(7) { animation-delay: 0.7s; }
.box:nth-child(8) { animation-delay: 0.8s; }

#searchTitle {
    text-align: center;
    margin: 2.5em auto 0 auto;
    max-width: 37.5em;
    padding: 0 1.875em;
}
#searchText {
    text-align: center;
    margin: 0.625em auto 0 auto;
    max-width: 50em;
    padding: 0 1.875em;
}
.search-container {
    margin: 1.25em auto 0 auto;
    padding: 0 1.25em;
    max-width: 37.5em;
}
#videoTitle {
    text-align: center;
    margin: 2.5em auto 0 auto;
    max-width: 53.12em;
    padding: 0 1.875em;
}
#videoText {
    text-align: center;
    margin: 0.625em auto 0 auto;
    max-width: 31.25em;
    padding: 0 1.875em;
}
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.25em auto 0 auto;
    padding: 0 9.375em;
    width: min(78em, 100%);
}
.video-container input, .video-container button {
    margin: 0.3125em;
}
.video-container button:hover {
    cursor: pointer;
    color: var(--science-blue);
}
#vid {
    padding: 0.625em;
    width: 12.5em;
}
.videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25em;
    padding: 0.625em;
    width: 100%;
    max-width: 78em;
    margin-left: 0;
}

.video-card {
    background-color: #fffef9;
    border-radius: 0.9375em;
    width: 26.25em;
    box-shadow: 0 0.25em 0.625em rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}
.video-card:hover {
    transform: translateY(-0.625em);
    box-shadow: 0 0.5em 1.25em rgba(0, 0, 0, 0.2);
}

.video-card a {
    text-decoration: none;
    color: inherit;
}
.video-card h3 {
    padding: 0.625em;
    font-size: 0.625em;
    color: #252525;
    line-height: 1;
}
#max {
    position: fixed; 
    bottom: 1em;
    right: 1em;
    transform: scale(0.85);
    transform-origin: bottom right;
    z-index: 5;
    cursor: pointer;
}
.parrotContainer {
    position: relative;
    width: 5em;
    height: 7.5em;
}
.behind, .top {
  position: absolute;
  transition: opacity 0.5s;
}
.hidden {
  opacity:0;
  pointer-events:none;
}

@media (max-width: 72em) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48em) {
    .page-wrap {
        padding-top: 7.5em;
        padding-bottom: 6em;
    }
    .container {
        grid-template-columns: 1fr;
        padding: 1.5em;
    }
    .video-container {
        padding: 0 1em;
    }
    .videos {
        grid-template-columns: 1fr;
    }
    .video-card {
        width: 100%;
    }
}
