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

:root {
    --bg-primary: rgb(25 25 25);
    --bg-secondary: rgb(45 45 45);
    --bg-tertiary: rgb(65 65 65);
    --text-primary: rgb(240 240 240);
    --text-secondary: rgb(200 200 200);
    --text-example: rgb(240 98 146);
    --accent-color: rgb(245 124 0);
    --accent-hover: rgb(245 140 0);
    --accent-secondary: rgb(0 150 136);
    --border-color: rgb(10 10 10);
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: rgb(255 255 255);
    --bg-secondary: rgb(235 235 235);
    --bg-tertiary: rgb(215 215 215);
    --text-primary: rgb(25 25 25);
    --text-secondary: rgb(45 45 45);
    --text-example: rgb(233 30 99);
    --accent-color: rgb(245 140 0);
    --accent-hover: rgb(245 124 0);
    --accent-secondary: rgb(0 150 136);
    --border-color: #cccccc;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    /* padding-top: 5%; */
    transition: background-color 0.3s ease, color 0.3s ease;
    hyphens: auto;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

.main-content {
    width: 75%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    border-bottom: 1px solid var(--accent-hover);
    background-color: rgba(245, 124, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.container {
    width:100%;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px var(--shadow);
    /* width: 130%; */
    z-index: 1;
}

h1 {
    color: var(--accent-color);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
}

h2 {
    color: var(--accent-color);
    font-size: 1.5em;
    margin: 40px 0 20px 0;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

h3 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin: 30px 0 15px 0;
}

p {
    margin-bottom: 15px;
}

.navigation {
    position: fixed;
    max-width: 10%;
    top: 70px;
    left: 20px;
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--shadow);
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin: 5px 0;
}

.navigation a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: none;
    font-size: 0.9em;
}

.highlight {
    background-color: var(--bg-tertiary);
    padding: 2px 4px;
    border-radius: 3px;
}

.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.topnav {
    /* position: fixed; */
    top: 0;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    overflow: hidden;
    width: 100%;
    /* z-index: 2000; */
}
  
.topnav a {
    float: left;
    display: block;
    color: var(--text-primary);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: none;
    font-size: 17px;
}

.topnav a.active {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.topnav .icon {
    display: none;
}

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
      float: right;
      display: block;
    }
}
  
@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: fixed; 
        top: 0;
        overflow: hidden;
        width: 100%;
        z-index: 2;
    }
    .topnav.responsive a.icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
}

html { scroll-behavior: smooth; }

/* :target {
    padding-top: 5%;
} */

footer {
    display: table;
    margin:1em auto;
    text-align: center;
}

.progress-bar {
    height: 0.5rem;
    background: var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2
}