@font-face {
    font-family: 'work-sans';
    src: url('./fonts/WorkSans-Regular.otf') format('truetype');
}

@font-face {
    font-family: 'starlight-font';
    src: url('fonts/StarlightVF.ttf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 100px 200px 200px 200px;
    background-image: url('assets/unsplash\ copy.jpg');
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
    background-attachment: fixed;
    color: white;
}
main {
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
nav a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-family: 'starlight-font';
    font-size: 100px;
    transition: 0.2s;
    margin-top: 50px;
}

nav a:hover {
    color: rgb(255, 238, 163);
}

h1 {
    font-family: 'starlight-font';
    font-variation-settings: 'STAR' 0;
    font-size: 190px;
    line-height: 1;
    margin-bottom: 0;
    margin-top: 80px;
    width: 100%;
    transition: 0.1s;
    animation-name: stars;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
@keyframes stars {
    0% {
        font-variation-settings: 'STAR' 0;
    }
    25% {
        font-variation-settings: 'STAR' 500;
    }
    50% {
        font-variation-settings: 'STAR' 1000;
    }
    100% {
        font-variation-settings: 'STAR' 1500;
    }
}

.opening {
    font-family: work-sans;
    font-size: 40px;
    margin: 230px 0px 230px 0;
    line-height: 1;
}

.short-answer {
    font-family: 'work-sans';
    font-size: 45px;
    margin: 380px auto;
    line-height: 1;
    max-width: 800px;
    text-align: center;
}

.opening p {
    font-size: 25px;
    line-height: 1.5;
    max-width: 800px;
    margin: 20px auto;
}

h2 {
    font-size: 80px;
    cursor: pointer;
    font-family: 'starlight-font';
    margin: 600px auto;
    animation-name: float;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transition: 0.2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, 70px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.box.box1 h2:hover {
    color: rgb(255, 205, 231);
    animation-name: stars;
    animation-duration: 0.3s;
}

.box.box2 h2:hover {
    color: rgb(190, 244, 255);
    animation-name: stars;
    animation-duration: 0.3s;
}

.box.box3 h2:hover {
    color: rgb(218, 191, 255);
    animation-name: stars;
    animation-duration: 0.3s;
}

h3 {
    font-family: 'starlight-font';
}

p {
    font-family: 'work-sans';
    font-size: 22px;
    line-height: 1.5;
    max-width: 800px;
    margin: 20px auto;
}

.keyword {
    font-family: 'starlight-font';
    font-variation-settings: 'STAR' 0;
    transition: 0.1s;
    animation-name: stars;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    color: rgb(255, 239, 150);
    font-size: 35px;
    cursor: pointer;
}

.keyword:hover {
    font-family: 'starlight-font';
    font-variation-settings: 'STAR' 0;
    transition: 0.1s;
    animation-name: stars;
    animation-duration: 0.1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    color: rgb(247, 190, 0);
    font-size: 35px;
}

.constellation-types {
}

.constellation-types h3 {
    margin: 400px auto 200px auto;
    font-size: 50px;
}

.constellations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
}

.constellations a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-family: 'starlight-font';
    font-size: 100px;
    transition: 0.2s;
    animation-name: stars;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    margin-bottom: 100px;
}

.constellations a:hover {
    text-decoration: none;
    color: rgb(255, 255, 255);
    opacity: 0.5;
}

img {
    display: block;
    max-width: 600px;
    margin: 100px auto;
}
