* {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto Condensed", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    color: #fff5ec;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #151515;
}

header {
    padding: 10em 0;
    text-align: center;
    width: 100%;
    background-image: url("../images/header.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    user-select: none;
    border-bottom: #303030 2px solid;
}

button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

header h1 {
    font-size: 4em;
    font-weight: 700;
    margin: 0;
}

header p {
    font-size: 1.5em;
    font-weight: 500;
    margin: 0;
}

header div.social-media {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

header div.social-media a {
    font-size: 2em;
}

footer {
    width: 100%;
    margin-top: auto;
}

button.back-to-top {
    color: #151515;
    border: none;
    background-color: #fff5ec;
    width: 3em;
    height: 3em;
    border-radius: 1em;
    cursor: pointer;
    transition: all .16s ease-in-out;
    position: fixed;
    bottom: -5em;
    margin: 1em;
}

button.back-to-top:hover {
    background-color: #faddcd;
}

button.back-to-top i {
    font-size: 2em;
}

footer p { 
    border-top: #303030 2px solid;
    border-left: #303030 2px solid;
    float: right;
    padding: 1em;
    margin: 0;
    border-top-left-radius: 1em;
}

nav {
    width: 100%;
    position: absolute;
    top: 0;
    user-select: none;
    transition: top .16s ease-in-out;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    text-align: center;
    padding: 1em;
    text-decoration: none;
    color: #fff5ec;
    font-weight: 500;
    transition: all .16s ease-in-out;
}

nav ul li a:hover {
    color: #faddcd;
}

a {
    text-decoration-style: dashed;
    color: #fff5ec;
    transition: all .16s ease-in-out;

}

a:hover {
    color: #faddcd
}

section {
    width: 100%;
    border-bottom: #303030 2px solid;
}

section.image {
    display: flex;
    justify-content: space-between;
}

/* Mobile First (default styles) */
section div.text {
    padding: 1em 2em;
}

/* Tablet */
@media (min-width: 768px) {
  section div.text {
    padding: 1em 4em;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  section div.text {
    padding: 1em 6em;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  section div.text {
    padding: 1em 8em;
  }
}

section div.text h2.center {
    text-align: center;
}

section img {
    max-width: 40%;
    object-fit: cover;
}

section img.right {
    border-left: #303030 2px solid;
}

section.last {
    border-bottom: none;
}

ul.bio {
    list-style-type: none;
}

::selection {
    background: #faddcd61;
}

.text > p {
    margin-left: 40px;
}

blockquote p::before {
    content: '\201C';
  }
  
blockquote p::after {
    content: '\201D';
}
  
blockquote + p {
    text-align: right;
}

.activity .days {
    display: grid;
    grid-gap: 4px;
    padding: 20px;
    background-color: #151515;
    grid-template-columns: repeat(auto-fill, 16px);
    border: #303030 2px solid;
    border-radius: 1em;
    justify-content: center;
}

@media (max-width: 768px) and (orientation: portrait), 
       (max-width: 480px) {
    .activity .days {
        /* Keep the same grid but make it scrollable */
        max-height: 150px;
        overflow-y: scroll;
        padding: 15px;
        
        /* Make sure content can scroll */
        height: auto;
        min-height: 150px;
        
        /* Smooth scrolling */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

.activity .day {
    border-radius: 0.3em;
    height: 16px;
    background-color: #303030;
    transition: all .16s ease-in-out;

}

.activity .day:hover {
    background-color: #505050;
}

.activity .day-active {
    background-color: #00ff0d;
    transition: all .16s ease-in-out;
}

.activity .day-active:hover {
    background-color: #00d60b;
}

.activity {
    width: 100%;
    display: block;
}

p.right {
    text-align: right;
}

a.item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 1em;
    border-radius: 1em;
    background-color: #151515;
    border: 2px solid #303030;
}

.text > h3 {
    margin-top: 2em;
}

form.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em 5em;
}

form.contact-form input,
form.contact-form textarea {
    padding: 1em;
    border-radius: 1em;
    border: #303030 2px solid;
    background-color: #151515;
    color: #fff5ec;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
    outline: none;
    border: #faddcd 2px solid;
}

form.contact-form button[type="submit"] {
    padding: 1em;
    border-radius: 1em;
    background-color: #151515;
    border: #303030 2px solid;
    color: #fff5ec;
    cursor: pointer;
    transition: all .16s ease-in-out;
}

.inactive {
    cursor: not-allowed;
}

.inactive > * {
    opacity: 0.6;
    pointer-events: none;
}

ul.exercises {
  list-style: none; 
  padding: 0;  
  margin: 1em 0 0 0;    
  display: flex;
  gap: 1em; 
  flex-wrap: wrap;
}

div.collapsible {
    padding: 1em;
    border-radius: 1em;
    background-color: #151515;
    border: #303030 2px solid;
    transition: all .16s ease-in-out;
}


div.collapsible > button.trigger {
    font-family: inherit;
    color: #fff5ec;
    width: 100%;
    cursor: pointer;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.17em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    background-color: transparent;
    transition: all .16s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

div.collapsible > div.content {
    max-height: 0;
    overflow: hidden;
    transition: all .16s ease-in-out;
}

div.collapsible > button.trigger:hover, 
div.collapsible > button.trigger:hover::after {
    color: #faddcd;
}

div.collapsible > button.trigger:after {
    content: '\002B';   
    color: #fff5ec;
    font-family: "Noto Sans", "Segoe UI Symbol", sans-serif;
    transition: all .16s ease-in-out;
}

div.collapsible > button.trigger.active:after {
    content: '\2212'; 
}

div.exercise-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

table {
    border: #303030 2px solid;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1em;
    overflow: hidden;
}

th, td {
    border-right: #303030 2px solid;
    border-bottom: #303030 2px solid;
    padding: 1em;
}

/* Remove borders from the outer edges */
th:last-child, td:last-child {
    border-right: none;
}

tr:last-child th, tr:last-child td {
    border-bottom: none;
}

th:first-child, td:first-child {
    text-align: center;
}

[data-tooltip]:hover::after {
    display: block;
    position: absolute;
    content: attr(data-tooltip);
    border: #303030 2px solid;
    background-color: #151515;
    padding: .25em;
    border-radius: .5em;
    opacity: 0.75;
    margin-top: 0.25em;
}