@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

/* Variables for colors so I dont have to repeat myself with the colors */
:root {
    --background-color: black;
    --text-color: #f0f8ff;
    --accent-color: #0ddec0;
    --secondary-color: #ccc;
    --link-background-color: rgb(43, 48, 48);
    --blockquote-border-color: #ccc;
    --blockquote-text-color: #888;
}

/* Global Styles */
body {
    font-family: "Roboto Mono", monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--background-color);
    background-size: cover;
    border-image: fill 0 linear-gradient(#0003,#000);  /* That nice gradient effect */
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

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

/* Main Container Styles */
main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 0 20px;
    transition: transform 1s;
}

main.blog {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    height: auto;
}

main.comments {
    flex-direction: column;
    align-items: center;
    display: flex;
    padding: 20px;
    height: auto;
    transition: transform 2s;
}

/* Divider for Blog */
.divider-blog {
    width: 70%;
    height: 1px;
    background-color: var(--secondary-color);
}

/* Logo Block Styles */
#logo-block {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 50%;
    text-align: left;
    margin-bottom: 20px;
}

main.blog #logo {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
}

#logo {
    font-size: 3.5rem;
    font-weight: 700;
}

#quote-of-the-day {
    font-style: italic;
    margin: 5px 0 10px;
    font-weight: 300;
}

main.blog #quote-of-the-day {
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: center; 
}

nav a {
    background-color: var(--link-background-color);
    padding: 8px 25px;
    color: inherit;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin: 5px 0;
}

/* Article Header Styles */
.article-header {
    background-color: rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 5px rgba(156, 152, 152, 0.7);
    z-index: 1;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 50%;
    margin-left: auto;
}

.article-header h2 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
}

/* Blog Article Styles */

article {
    text-wrap:pretty;
}

.blog-article {
    background-color: rgba(0, 192, 163, 0.1);
    border-radius: 8px;
    max-width: 90vh;
    margin: 20px 20px;
    padding: 0 5vw;
    text-align: left;
    box-sizing: border-box;
}

.blog-article header h2 {
    font-size: 3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.blog-article header p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.blog-article article p {
    line-height: 1.7;
    margin: 10px 0;
    font-weight: 400;
}

.blog-article article h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 20px;
}

.blog-article article blockquote {
    font-style: italic;
    color: var(--blockquote-text-color);
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--blockquote-border-color);
    font-weight: 300;
}

main.blog footer {
    position: static;
} 

footer {
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: var(--accent-color);
    font-weight: 500;
}

/* Image Styles */
figure {
    margin: 20px 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out; /* Funny little animation for the image boxes */
}

figure img:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

figcaption {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Video Styles */
video {
    display: block;
    max-width: 100%;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    margin: 20px auto;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;  /* Funny little animation for the video boxes */
}

video:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.back-to-top {
    display: block;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Form Container */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
}

/* Form Labels */
form label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Form Inputs and Textareas */
form input, form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-family: "Roboto Mono", monospace;
    color: var(--text-color);
    background-color: var(--background-color);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
}

/* Form Button */
form button {
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #0ac4a9; /* Slightly lighter shade for hover */
    transform: scale(1.03);
}


/* Cloudflare Turnstile */
.cf-turnstile {
    margin-top: 1rem;
    text-align: center;
}


/* Responsive Styles for Smaller Devices */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    figure, video, audio {
        margin: 1rem auto;
        max-width: 90vw;
    }

    #logo-block, .article-header {
        max-width: 90%;
        margin: 1rem;
        align-items: center;
        text-align: center;
    }

    .divider-blog {
        width: 100%;
        margin: 1.5rem auto;
    }

    #logo, .article-header h2 {
        font-size: 2.2rem;
    }

    footer {
        position: static;
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Additional tweaks for very small devices */
@media (max-width: 480px) {
    main {
        padding: 1.5rem;
    }

    #logo-block, .article-header {
        max-width: 100%;
        margin: 0.5rem;
        align-items: center;
        text-align: center;
    }

    #logo, .article-header h2 {
        font-size: 1.8rem;
    }

    figure img, video {
        max-width: 85vw;
    }

    footer {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
}