body {
    background-color: #1b1b1b;
    color: #c0c0c0;
    font-family: 'Courier New', Courier, monospace;
    padding: 50px 30px;
    max-width: 720px;
    margin-left: 40px;
    line-height: 1.6;
}

.nav {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #555;
}

.nav a {
    color: #79b6f2;
    text-decoration: underline;
}

.nav a:hover {
    text-decoration: none;
}

#random-image-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 25vw;
    max-width: 450px;
    min-width: 250px;
    z-index: 10;
    pointer-events: none;
}

#random-image-container img {
    width: 100%;
    height: auto;
    transform: rotate(2deg);
    opacity: 0.8;
}

/* Page header */
h1 {
    font-size: 1.6rem;
    font-weight: normal;
    color: #e0e0e0;
    border-bottom: 2px dashed #333;
    padding-bottom: 8px;
    margin-bottom: 40px;
    display: inline-block;
}

form {
    background: #222;
    border: 1px dashed #444;
    padding: 25px;
    margin-bottom: 50px;
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.03);
}

input,
textarea {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-family: inherit;
    background: #171717;
    border: 1px solid #444;
    color: #d0d0d0;
    border-radius: 4px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Button styling */
button {
    background: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px 18px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-shadow: 0 1px 0 #000;
}

button:hover {
    background: #3b3b3b;
    border-color: #777;
}

/* CAPTCHA / helper text */
#captchaQuestion {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #b07070;
}

/* Guestbook entries */
.entry {
    background: #212121;
    padding: 15px 20px;
    margin-bottom: 14px;
    border-left: 3px solid #555;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.1s ease;
}

.entry:hover {
    transform: translateX(2px);
}

.entry strong {
    display: block;
    font-weight: normal;
    text-decoration: underline;
    color: #999;
    margin-bottom: 4px;
}

/* optional timestamp */
.entry em {
    font-style: normal;
    color: #777;
    font-size: 0.85rem;
    margin-left: 6px;
}


.entry p {
    margin: 0;
    white-space: pre-wrap;
    color: #ccc;
}


.entry:nth-child(even) {
    margin-left: 6px;
}

.entry:nth-child(odd) {
    margin-left: 0;
}

/* Links inside entries */
.entry a {
    color: #79b6f2;
    text-decoration: underline;
}

.entry a:hover {
    text-decoration: none;
    text-shadow: 0 0 3px rgba(121, 182, 242, 0.5);
}


body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #1b1b1b;
}

body::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
    border: 2px solid #1b1b1b;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    body {
        padding: 30px 15px;
        margin-left: 0;
    }

    form {
        width: 100%;
    }

    #random-image-container {
        display: none;
    }
}