/* Import the Roboto font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html, body {
    height: 100%; /* Ensure the html and body elements occupy the full height */
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;  /* Increased line spacing */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: auto; /* Ensure overflow is handled */
}

/* Light and Dark theme variables */
:root {
    --background-color: #fff;
    --text-color: #000;
    --link-color: #1a0dab;
    --link-hover-color: #d40804;
    --blockquote-background: #f9f9f9;
    --blockquote-border: #ccc;
    --blockquote-color: #555;
}

[data-theme="dark"] {
    --background-color: #333;
    --text-color: #fff;
    --link-color: #4f8cff;
    --link-hover-color: #ff4f4f;
    --blockquote-background: #444;
    --blockquote-border: #666;
    --blockquote-color: #ddd;
}

/* Navigation bar styling */
header {
    background: var(--background-color);
    color: var(--text-color);
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2cm;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

/* Theme toggle button styling */
.theme-toggle-wrapper {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 10px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 10px;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* Link styling */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Blockquote styling */
blockquote {
    background: var(--blockquote-background);
    border-left: 4px solid var(--blockquote-border);
    color: var(--blockquote-color);
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    quotes: "“" "”" "‘" "’";
    font-style: italic; /* Make the blockquote italic */
    text-align: center; /* Center the blockquote */
}


blockquote p {
    display: inline;
}


/* Main content styling */
main {
    padding: 2rem;
    min-height: calc(100vh - 4cm); /* Ensure main content takes up space to push footer */
    box-sizing: border-box;
}

section {
    margin-bottom: 2rem;
}

h1, h2 {
    font-weight: 700;
}

/* Footer styling */
footer {
    background: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}
