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

/* Body */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
}

/* Navigation styled like boxes */
nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 15px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border: 2px solid #000;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

nav ul li a:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Main Content */
main {
    flex: 1;
    padding: 1rem;
}

main section ul {
    list-style: disc;
    padding-left: 20px;
}

main section ul li {
    margin-bottom: 10px;
}

main section ul li a {
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
}

main section ul li a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Button styling */
.center-box {
    text-align: center;
    margin-top: 20px;
}

.center-box button {
    background: #333;
    color: #fff;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.center-box button:hover {
    background: #555;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #f4f4f4;
    color: #333;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #ccc;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Box styling (like the home page) */
.box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
    gap: 10px;
}

.box {
    border: 2px solid #000;
    padding: 10px 15px;
    text-align: center;
    flex: 1;
    min-width: 0;
    transition: transform 0.2s ease;
    margin: 0;
}

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

.box a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    display: block;
}

.box a:hover {
    text-decoration: underline;
}

/* Contact Info */
#contact-info {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-top: 20px;
    position: relative;
    width: 300px;
    height: 100px;
    border: 2px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

.email-text {
    z-index: 1;
}

.hidden .email-text {
    visibility: hidden;
}

.hidden #fog-canvas {
    visibility: visible;
}

#fog-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .box-container {
        flex-wrap: wrap;
        gap: 5px;
    }

    .box {
        flex: 1 1 auto;
        padding: 8px;
        font-size: 0.8rem;
    }

    main section ul li a {
        font-size: 1rem;
    }

    body {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .center-box button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    #contact-info {
        width: 90%;
    }

    footer {
        font-size: 0.8rem;
    }
}