
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --nav-bg: #f0f0f0;
}

body.dark {
    --bg-color: #121212;
    --text-color: #ffffff;
    --nav-bg: #1e1e1e;
}


body {
    transition: background 0.25s ease, color 0.25s ease;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--text-color);
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    padding: 10px 20px;
}

#logo {
    max-width: 180px;
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a {
    font-weight: bold;
}

.theme-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
}

main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}


.random-layout {
    position: relative;
    width: 100%;
    height: 700px;
    margin-top: 40px;
}

.pic-slot {
    position: absolute;
    width: min(20vw, 260px);
    height: min(20vw, 260px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--text-color);
    background: var(--nav-bg);
}

.pic-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.speech-bubble {
    position: absolute;
    bottom: 40px;
    right: 60px;
    max-width: 220px;
    background: var(--nav-bg);
    color: var(--text-color);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--text-color);
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 30px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--nav-bg) transparent transparent transparent;
    filter: drop-shadow(0 -2px 0 var(--text-color));
}


.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.contact-form button:hover {
    background: #555;
}


.ship-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 25px;
}

.ship-gallery .main-image img {
    width: 500px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.3s;
}

.ship-gallery .main-image img:hover {
    transform: scale(1.05);
}

.thumbs {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.thumbs img {
    width: 140px;
    height: 100px;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumbs img:hover {
    transform: scale(1.1);
}

body.dark .ship-gallery img {
    box-shadow: 0 6px 16px rgba(255,255,255,0.1);
}


footer {
    text-align: center;
    padding: 15px;
    background: var(--nav-bg);
    color: var(--text-color);
    border-top: 1px solid var(--text-color);
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    #logo {
        max-width: 140px;
    }

    nav {
        flex-direction: column;
    }

    .random-layout {
        height: 800px;
    }

    .pic-slot {
        width: 30vw;
        height: 30vw;
        max-width: 140px;
        max-height: 140px;
    }

    .speech-bubble {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        align-self: center;
    }

    .ship-gallery .main-image img {
        width: 100%;
    }

    .thumbs {
        gap: 30px;
    }

    .thumbs img {
        width: 100px;
        height: 70px;
    }
}


.info-bubble {
    background: var(--nav-bg);
    color: var(--text-color);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: left;
}

.info-bubble h2 {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}
