* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
  /* Light mode colors */
  --bg-color: #ffffff;
  --text-color: #333333;
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --border-color: #dee2e6;
  --nav-bg: #e8e9eb;
  --input-bg: #f8f9fa;
  --input-border: #ced4da;
  --nes-color: #fff;
  --shade-color: rgba(0, 0, 0, 0.2);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

:root.is-dark {
  /* Dark mode colors */
  --bg-color: #000;
  --text-color: #e0e0e0;
  --primary-color: #3498db;
  --secondary-color: #6c757d;
  --border-color: #444444;
  --nav-bg: #1e1e1e;
  --input-bg: #2d2d2d;
  --input-border: #444444;
  --nes-color: #212529;
  --shade-color: rgba(255, 255, 255, 0.3);
  --shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.dark-mode-checkbox {
    display: flex;
    height: 100%;
    align-items: center;
    flex: 1;
    min-width: max-content
}

.dark-mode-checkbox label {
    margin: 0 !important;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-color) !important; /* Override nes.css background */
}

html, body, pre, code, kbd, samp {
    /* font-family: "Press Start 2P"; */
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    overflow: auto;
}

.seperator {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0 20px 0;
}

.spacer {
    height: 50px;
}
/* Below the navbar */
main {
    padding: 2rem;
    min-width: fit-content;
    min-height: fit-content;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* There is a main and .page so that the scrollbar is on the far left of the page 
Looks better 
*/
main .page {
    margin: 0 auto;
    max-width: 1200px;
}

p, span, div, #editor::placeholder {
    font-family: "Inter", sans-serif;
    color: var(--text-color);
}

.nes-text, .nes-container .title, .nes-btn, .nes-input, .nes-select, .nes-textarea, .nes-radio, .nes-checkbox, .nes-dropdown, .nes-badge span {
    font-family: "Press Start 2P", sans-serif !important;
}

/* When is-dark is enabled, this breaks the scrolling. Manuall set background */
.nes-table, .nes-container {
    background-color: var(--bg-color) !important;
}

/* Navbar styles */
.navbar {
    box-shadow: var(--shadow);
    background-color: var(--nav-bg);
    color: white;
    padding: 5px 15px;
    width: 100%;
    z-index: 100;
    position: sticky;
    top: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: right;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.navbar-brand {
    text-decoration: none;
    /* font-size: 1.5rem; */
}

.nav-item {
    display: inline-block;
}

.nav-link.selected {
    font-weight: 900;
    color: var(--primary-color);
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
}

.nav-link:hover {
    text-decoration: underline;
}



/* For the editor */
#editor {
    /* font-family: "Press Start 2P", sans-serif; */
    font-family: "Inter", sans-serif;
}

.ql-container {
    /* font-family: "Press Start 2P", sans-serif !important; */
    font-family: "Inter", sans-serif !important;
}

.blog-snippet iframe,
.ql-container iframe {
    border: none;
    width: 100%;
    height: 700px;
}

.ql-font-press2p {
    /* font-family: "Press Start 2P", sans-serif; */
    font-family: "Inter", sans-serif;
}


/* Media query for mobile devices */
@media only screen and (max-width: 768px) {
    main {
        /* 80px is the size of the search bar on iphone */
        padding: 5px 5px 85px 5px;
    }

    #mb-badge {
        display: none;
    }

    .navbar-container {
        flex-direction: column-reverse;
    }

    .navbar-nav {
        justify-content: space-around;
    }

    /* .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    } */
}
