@font-face {
    font-family: 'tallBlock';
    src: url('Namaku.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-bg: #1a1a1a; /* Dark background */
    --primary-text: #ffffff; /* White text */
    --secondary-bg: #333333; /* Darker background for sections */
    --accent-color: #4697E0; /* Blue accent color */
    --hover: #C70039; /* Red hover color */
    --header-bg: #1a1a1a; /* Dark background for header */
    --header-gradient-start: #4697E0; /* Blue gradient start */
    --header-gradient-end: #C70039; /* Red gradient end */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

main {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0px;
}

header {
    background-image: url(img/cool_space_thing.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--primary-text);
    padding: 20px 0;
    text-align: center;
    font-family: 'tallBlock';
    letter-spacing: 0.05em;
    font-size: 2em;
}

nav {
    font-family: 'tallBlock', Arial, Helvetica, sans-serif;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for blur effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    letter-spacing: 0.05em;
    font-weight: 300;
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Border for separation */
    left: 0;
    right: 0;
    margin: 0;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    padding-top: 10px;
    padding-bottom: 10px;
}

a {
    color: var(--accent-color);
}

h2, summary {
    font-family: 'tallBlock', Arial, Helvetica, sans-serif;
    font-size: x-large;
}

section h1 {
    font-family: 'tallBlock', Arial, Helvetica, sans-serif;
    font-size: x-large;
}

summary {
    cursor: pointer;
}

details[open] summary ~ * {
    animation: open-details 0.5s ease-in-out;
}

@keyframes open-details {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px; /* Set a large enough value to accommodate the content */
    }
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: var(--primary-text);
    padding: 14px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
    background-color: var(--hover);
    color: var(--primary-text);
}

.banner {
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    padding: 50px 0;
    text-align: center;
}

section {
    padding: 20px;
    text-align: center;
}

p {
    text-align: left;
}

.scrollable-squares {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* For Firefox */
    gap: 10px; /* Add gap between items */
}

.scrollable-squares::-webkit-scrollbar {
    display: none; /* Hide scrollbar for WebKit browsers */
}

.square, .sq2 {
    flex: 0 0 auto; /* Prevent items from shrinking */
    width: 200px;
    height: 200px;
    background-size: cover; /* Ensure the image covers the entire box */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    position: relative; /* Ensure the child elements are positioned relative to the square */
    overflow: hidden; /* Ensure the pseudo-element doesn't overflow the square */
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.square:hover {
    transform: scale(1.05);
}

.sq2:hover {
    background-size: contain;
    transform: scale(1.05);
}

.square a {
    color: var(--primary-text);
    padding: 5px;
    text-decoration: none;
    border-radius: 20px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    position: absolute; /* Position the link absolutely */
    bottom: 5px; /* Align to the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    z-index: 1; /* Ensure the link is above the pseudo-element */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: calc(100% - 10px); /* Expand to fill the width of the container, accounting for padding */
}

.square a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    z-index: -1; /* Ensure the pseudo-element is behind the link */
}

/* Media queries for responsive design */
@media (max-width: 1200px) {
    .square {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 992px) {
    .square {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .square {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 576px) {
    .square {
        width: 120px;
        height: 120px;
    }
}

ul {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Two items per row if space allows */
    gap: 20px; /* Add space between items */
}

ul li {
    background-color: var(--secondary-bg);
    padding: 10px 20px;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

ul li a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: bold;
    display: block;
}

ul li:hover {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    transform: scale(1.05);
}

ul li a:hover {
    color: var(--primary-text);
}

footer {
    background-image: url(img/cool_space_thing.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}