@import url('https://fonts.googleapis.com/css2?family=Stardos+Stencil:wght@400;700&display=swap');

:root {
    --spacing: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* border: 1px solid red; */
    text-shadow: 0 0 10px white;
}

body {
    color: white;
    background-color: black;
    background-image: url("images/background.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
}

.container {
    padding: var(--spacing);
    max-width: min(1280px, calc(100vw - 40px));
    margin: 0 auto;
}

.sun {
    color: yellow;
    text-shadow: 0 0 5px yellow, 0 0 10px yellow, 0 0 15px yellow;
    -webkit-text-stroke: 0.5px black;
}

.moon {
    color: lightgray;
    text-shadow: 0 0 5px grey, 0 0 10px grey, 0 0 15px grey;
    -webkit-text-stroke: 0.5px black;
}

.stars {
    color: lightblue;
    text-shadow: 0 0 5px lightblue, 0 0 10px lightblue, 0 0 15px lightblue;
    -webkit-text-stroke: 0.5px black;
}

h1, h2, h3, h4 {
    color: white;
    font-family: "Stardos Stencil", system-ui;
    font-weight: 700;
}

h1 {font-size: 4.0rem;}
h2 {font-size: 3.0rem;}
h3 {font-size: 2.5rem;}
h4 {font-size: 2.0rem;}

main h3 {
    text-align: center;
}

header {
    text-align: center;
    text-shadow: 0 0 5px white, 0 0 10px white;
    -webkit-text-stroke: 0.5px black;
}

footer {
    text-align: center;
    margin: var(--spacing) 0;
}

nav {
    border: 1px solid white;
    border-radius: 1rem;
    margin: var(--spacing) 0;
    padding: var(--spacing) 0;

    background-color: rgba(0, 0, 0, 0.50);    
}

nav ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: var(--spacing);
    
    list-style-type: none;
}

nav li {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 4.0rem;
}

nav a {
    position: relative;
    text-decoration: none;
    color: white;
} 

nav a.active {
    font-weight: bold;
}

nav a.active::before {
    content: "★";
    color: yellow;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -130%);
    font-size: 2rem;
    animation: rotateBigStar 1.5s linear infinite;
    opacity: 0.8;
}

@keyframes rotateBigStar {
    0%  { transform: translate(-50%, -130%) rotate(0deg); }
    25% { transform: translate(-50%, -130%) rotate(15deg); }
    50% { transform: translate(-50%, -130%) rotate(0deg); }
    75% { transform: translate(-50%, -130%) rotate(-15deg); }
    100% { transform: translate(-50%, -130%) rotate(0deg); }
}

a {
    color: white;
}

main {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: calc(var(--spacing) * 2) var(--spacing);

    background-color: rgba(0, 0, 0, 0.50);    

    border: 1px solid white;
    border-radius: 1rem;

    margin: var(--spacing) 0;
    padding: var(--spacing);
}

.main-item {
    flex: 2 1 40%;
}

.main-side {
    flex: 1 1 20%;
}

.main-equal {
    flex: 1 1 28%;
}

img {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    margin: var(--spacing) auto;
}

@media (max-width: 600px) {
    .main-item, .main-side, .main-equal {
        flex: 0 0 100%;
    }
}

@media (max-width: 800px) {
    nav li {
        flex: 0 0 100%;
    }
}
