/*Import Fonts*/
@font-face {
	font-family: 'Robot';
	src: url('data.astronomie-kerpen.eu/media/fonts/Roboto.ttf') 
           format('truetype');
}

* {
    margin: 0;
    padding: 0;
    max-width: 100vmax;
    font-family: 'Roboto', sans-serif;
    /* Hide scrollbar for Edge and Firefox */
    -ms-overflow-style: none;
    /*Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

header {
    height: 100vh;
    background-image: url("https://data.astronomie-kerpen.eu/media/images/home/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.navbar {
    display: flex;
    align-items: start;
    justify-content: center;
}

nav {
    background: white;
    display: flex;
    align-items: start;
    justify-content: center;
    height: 6vh;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

nav ul {
    margin: 8px;
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 18px;
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: inline-block;
    position: relative;
    border-radius: 4px;
}

nav a:hover {
    background-color: #ddd;
}

nav a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    pointer-events: none;
}

.frontheading {
    margin-top: 200px;
    color: white;
    text-align: center;
}

.frontheading h1 {
    font-size: 100px;
}

.frontheading p {
    font-size: 30px;
}

.section-white {
    padding-top: 50px;
    background: white;
}

.section-gray {
    padding-top: 50px;
    background-color: rgb(230, 228, 228);
}

.title {
    text-align: center;
    font-size: 60px;
}

.content {
    padding: 30px;
    padding-left: 100px;
    padding-right: 100px;
    font-size: 20px;
}

.link {
    text-decoration: none;
    color: blue;
}

.link:hover {
    color: black;
    position: relative;
}

.link::after {
    content: '';
    height: 2px;
    width: 0%;
    background: black;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 200ms ease-in-out;
}

.link:hover::after {
    width: 100%;
}

footer {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    height: 200px;
    background-color: #1d2229;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .link {
    color: white !important;
}

.footer-line {
    font-size: 15px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin: 5px;
}

.bar {
    width: 30px;
    height: 4px;
    background-color: black;
    margin: 4px 0;
    transition: all 250ms ease-in-out;
    transform-origin: left;
}

@media(max-width: 1000px) {
    nav {
        width: 500px;
    }

    nav a {
        font-size: 14px;
    }
}

@media(max-width: 900px) {
    .frontheading h1 {
        font-size: 90px;
    }

    .frontheading p {
        font-size: 25px;
    }
}

@media (max-width: 800px) {
    .frontheading h1 {
        font-size: 80px;
    }

    .frontheading p {
        font-size: 20px;
    }

    nav {
        background: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .hamburger-menu {
        display: flex;
        z-index: 2;
    }

    .navbar {
        background: white;
        flex-direction: column;
    }

    nav {
        display: none;
        width: 100%;
        height: 100vh;
        position: relative;
    }

    nav.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        text-align: center;
        padding: 15px 0;
        font-size: 20px;
    }

    .bar {
        background-color: black;
        border-radius: 100px;
    }

    .active .bar1 {
        transform: scaleY(1.2) rotate(45deg);
    }

    .active .bar2 {
        opacity: 0;
    }

    .active .bar3 {
        transform: scaleY(1.0) rotate(-45deg);
    }
}

@media(max-width: 700px) {
    .frontheading h1 {
        font-size: 70px;
    }

    .frontheading p {
        font-size: 20px;
    }
}

@media(max-width: 400px) {
    .frontheading h1 {
        font-size: 60px;
    }

    .frontheading p {
        font-size: 20px;
    }

    .title {
        font-size: 50px;
    }

    .content {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media(max-width: 330px) {
    .frontheading h1 {
        font-size: 50px;
    }

    .frontheading p {
        font-size: 18px;
    }

    .title {
        font-size: 40px;
    }

    .content {
        font-size: 17px;
    }

    * {
        max-width: 100vmin;
    }
}

@media(max-width: 300px) {
    .frontheading h1 {
        font-size: 40px;
    }

    .frontheading p {
        font-size: 15px;
    }

    .footer-line {
        font-size: 12px;
    }
}

@media(max-width: 260px) {
    .title {
        padding-left: 30px;
        padding-right: 30px;
        font-size: 30px;
    }

    .content {
        font-size: 15px;
        padding-left: 30px;
        padding-right: 30px;
    }

    * {
        max-width: 100vmin;
    }
}