@import "main.css";

body {
    background-color: var(--kagami);
    background-image: radial-gradient(var(--tsukasa) 1px, transparent 1px);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    font-size: 4rem;
    margin: 20px 0;
    color: var(--kuroi);
    text-shadow: 4px 4px 0px #000;
    -webkit-text-stroke: 1.5px #000;
    font-family: inherit;
}

#main-launcher {
    background: var(--kuroi);
    border: 4px solid #000;
    box-shadow: 10px 10px 0px var(--konata), 20px 20px 0px #000;
    width: 95%;
    max-width: 800px;
    padding: 20px;
    margin: 30px auto;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
}

#main-launcher::before {
    content: var(--hub_exe);
    display: block;
    background: linear-gradient(90deg, #000, var(--konata));
    color: white;
    padding: 5px 10px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 3px solid #000;
    text-align: left;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

nav li a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    background: var(--tsukasa);
    color: #fff;
    font-weight: bold;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    text-decoration: none;
    transition: all 0.1s ease;
    min-width: 150px;
    height: 50px;
}

nav li a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background: var(--miyuki);
}

#main-content {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: stretch;
    width: 100%;
}

article {
    background: var(--kagami);
    border: 3px solid #000;
    padding: 20px;
    margin: 5px 0;
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1);
    cursor: pointer;
    flex: 1 1 240px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

article:hover {
    transform: translateY(-2px);
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1), 4px 4px 0px #000;
}

article h2 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #000;
}

article p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #222;
}

footer {
    width: 100%;
    margin-top: auto;
    padding: 10px;
    background: var(--kuroi);
    border-top: 3px solid #000;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: bold;
}

footer p {
    margin: 0;
}

.messages-object ~ footer {
    justify-content: flex-start;
    gap: 40px;
}

#forum, #risk {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#forum::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("../../images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: -1;
}

#risk::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("../../images/risk.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: -1;
}

#error {
    display: block;
    background: #ff4d4d;
    color: #fff;
    border: 4px solid #000;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    box-shadow: 3px 3px 0px #000;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0.7; }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
        margin: 15px 0;
    }

    #main-launcher {
        width: 90%;
        box-shadow: 6px 6px 0px var(--konata), 12px 12px 0px #000;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2.2rem;
        text-shadow: 3px 3px 0px #000;
        -webkit-text-stroke: 1px #000;
    }

    #main-launcher {
        width: 100%;
        padding: 15px;
        box-shadow: 4px 4px 0px var(--konata), 8px 8px 0px #000;
        margin: 15px auto;
    }

    #main-launcher::before {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    nav li a {
        width: 100%;
        min-width: unset;
        height: 45px;
        padding: 5px 10px;
        font-size: 0.95rem;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
        padding: 15px;
    }
}

@media (max-width: 400px) {
    #main-launcher {
        box-shadow: 3px 3px 0px var(--konata), 6px 6px 0px #000;
        padding: 10px;
    }

    h1 { font-size: 1.8rem; }
}