:root {
    --main-bg: white;
    --main-text: black;
    --item-bg: rgb(243, 243, 243);
    --skill-bg: honeydew;
}

.dark_mode {
    --main-bg: rgb(27, 27, 27);
    --main-text: white;
    --item-bg: rgb(35, 35, 35);
    --skill-bg: rgb(82, 86, 82);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-bg);
    width: 100%;
    height: 100%;
    margin: 0px 0px;
    vertical-align: middle;
}

.main-content {
    background-color: var(--main-bg);
    align-self: center;
    box-sizing: border-box;
    padding: 10px;
    margin: auto auto;
    padding-top: 30px;
    width: 60%;
}

@media screen and (max-width: 1000px) {
    .main-content {
        width: 80%;
        padding-top: 20px;
    }
}

@media screen and (max-width: 700px) {
    .main-content {
        width: 100%;
        padding: 20px;
    }
}

h1 {
    color: var(--main-text);
    margin: 16px auto;
    padding-top: 0px;
    font-size: 2.6em;
    font-weight: normal;
    font-family: 'Roboto', 'Arial', 'Sans-Serif';
}

h2 {
    color: var(--main-text);
    font-size: 1.3em;
    font-weight: bold;
    font-family: 'Roboto', 'Arial', 'Sans-Serif';
}

h3,
h4 {
    color: var(--main-text);
    font-family: 'Roboto', 'Arial', 'Sans-Serif';
}

p {
    color: var(--main-text);
    font-size: 1.5em;
    line-height: 1.4em;
    font-family: 'Roboto', 'Arial', 'Sans-Serif';
}

footer {
    border-top: 1px solid #d5d5d5;
    font-size: .8em;
}

.banner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: gray;
}

input:focus+.slider {
    box-shadow: 0 0 1px gray;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.navbar {
    display: flex;
    justify-content: left;
    font-family: 'Roboto';
}

.navbar a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    color: red;
    margin-right: 20px;
}

section a {
    text-decoration: none;
    font-weight: bold;
    color: var(--main-text);
}

section a:hover {
    color: red;
}

.navbar a:hover {
    color: var(--main-text);
}

nav ul {
    font-family: 'Helvetica', 'Arial', 'Sans-Serif';
    padding: 0px;
    list-style: none;
    font-weight: bold;
}

.name {
    font-weight: bolder;
}

.name:hover {
    font-weight: bolder;
    color: red;
}

ul {
    list-style-type: none;
    display: flex;
    justify-content: left;
    padding-inline-start: 0;
    flex-direction: row;
    margin-right: 20px;
}

li {
    padding-right: 10px;
}

@media screen and (max-width: 300px) {
    ul {
        flex-direction: column;
    }

    li {
        padding-right: 0px;
    }
}

.expand-arrow {
    color: red;
    transform: rotate(-0.25turn);
    transition: 0.25s ease-in-out;
    -webkit-transform: rotate(-0.25turn);
    -moz-transform: rotate(-0.25turn);
    -o-transform: rotate(-0.25turn);
    -ms-transform: rotate(-0.25turn);
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;

}

.expand-arrow-active {
    transform: rotate(0turn);
    -webkit-transform: rotate(0turn);
    -moz-transform: rotate(0turn);
    -o-transform: rotate(0turn);
    -ms-transform: rotate(0turn);
}

.see-more {
    color: var(--main-text);
    margin-top: 0px;
    margin-bottom: 0px;
    display: inline-block;
}

.see-more:hover {
    color: red;
    cursor: pointer;
}

.material-icons {
    vertical-align: middle;
    font-weight: bold;
}

.fa {
    color: gray;
}

.fa:hover {
    color: red;
    cursor: pointer;
}

.cv-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
    margin-bottom: 20px;
}

.cv-section-active {
    max-height: 3000px;
}

.skill-section {
    display: flex;
    flex-direction: row;
    border-radius: 7px;
    width: fit-content;
    background-color: var(--skill-bg);
    align-items: center;
    align-content: space-around;
    height: 1.5vh;
    padding: 5px
}

.skill-item {
    font-weight: 400;
    font-size: 1.5vh;
    padding: 5px
}

.cv-column {
    display: flex;
    flex-direction: column;
    max-width: 48%;
}

@media screen and (max-width: 700px) {
    .cv-column {
        max-width: 100%;
    }
}

.cv-subsection {
    max-width: auto
}

.cv-header {
    color: red;
    margin-bottom: 10px;
    margin-top: 10px;
}

.cv-item {
    margin-bottom: 20px;
    background-color: var(--item-bg);
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 1%;
    padding-bottom: 1%;
    border-radius: 5px;

}

.cv-item h3,
p {
    margin: 8px auto;
}


ul.posts {
    margin: 20px auto 40px;
    font-size: 1.5em;
}

ul.posts li {
    list-style: none;
}

.skill-items h3 {
    margin: 0px auto;
    margin-bottom: 10px;
    font-weight: normal;
}


/* Scrollbar customization - always visible, 10px width, less obtrusive */
html {
    overflow: -moz-scrollbars-vertical;
    overflow-y: scroll;
}

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

::-webkit-scrollbar-track {
    background-color: transparent;
}

@media screen and (max-width: 700px) {
    ::-webkit-scrollbar-track {
        background-color: white;
    }
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
}