:root {
    --bg-gray: #f2f2f2;
    --bg-darkgray: #d6d6d6;
    --bg-comments: #f0f0f0;
    --animation-time: 0.35s;
}

@font-face {
    font-family: "amatic";
    src: url("../fonts/amaticsc-regular.ttf");
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: "amatic";
    src: url("../fonts/amaticsc-bold.ttf");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: "arima";
    src: url("../fonts/arima.ttf");
    font-weight: normal;
    font-display: swap;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.no-margins-v {
    margin-top: 0;
    margin-bottom: 0;
}

.no-margins-h {
    margin-left: 0;
    margin-right: 0;
}

.bold {
    font-weight: bold;
}

/* Utility classes end */

html {
    background-color: var(--bg-gray);
    font-family: "amatic";
}

.nav-banner-area {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
}

.nav-banner {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.nav-title {
    margin: 0px;
    font-size: 3rem;
}

.nav-subtitle {
    margin-top: 0.5em;
    margin-bottom: 0;
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1rem;
    max-width: 700px;
    font-size: 1.25rem;
}

.nav-link {
    color: black;
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline;
}

@media screen and (min-width: 1024px) {

    .entries {
        max-width: 60%;
        margin-left: auto;
        margin-right: auto;
    }
    
}

.entries {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 20px;
}

.entry {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    min-height: 200px;
    padding-bottom: 2rem;
}

.entry-day {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 25%;
    height: 100px;
    margin-bottom: 1rem;
    background-color: var(--bg-darkgray);
    font-size: 2rem;
    border-radius: 10px;
}

.entry-day h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content {
    width: 100%;
    font-family: 'arima';
    font-size: 1.25rem;
}

.entry-content > * {
    margin: 0;
}

.entry-link-section a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-image-section {
    display: flex;
    justify-content: center;
}

.entry-image {
    margin-top: 1rem;
    width: 100%;
    max-width: 500px;
}

.entry-comment-divider {
    width: 100%;
}

.entry-comment-section {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-comments);
    border-radius: 5px;
}

.entry-comment-header {
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    font-size: 1.25rem;
}

.entry-comment-header .comment-toggle {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    transition: transform var(--animation-time);
    transition-timing-function: ease-in-out;
    cursor: pointer;
}

.entry-comment-header .comment-toggle-open {
    transform: rotate(180deg);
    transition: transform var(--animation-time);
    transition-timing-function: ease-in-out;
}

.entry-comment-body {
    max-height: 350px;
    transition: max-height 1s;
}

.entry-comment-body.collapsed {
    max-height: 0px;
    overflow: hidden;
}

/* Keeps inputs in the form from being visible to screen reader-type programs such as Dashlane while collapsed */
.entry-comment-body.collapsed input {
    display: none;
}

.entry-comment-form {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    margin-top: 1rem;
}

.entry-comment-form div:not(:last-child) {
    padding-bottom: 0.5rem;
}

.entry-comment-form.collapsed {
    transition: display 1s;
    transition-timing-function: ease-in;
}

.entry-comment-form label {
    font-size: 1.50rem;
    font-weight: bold;
}

.entry-comment-form .form-element:not(:last-child) {
    margin-bottom: 1rem;
}

.entry-comment-form #poster-name {
    width: 40%;
}

.entry-comment-form #body {
    width: 100%;
}

@media screen and (min-width: 1024px) {

    .entry {
        flex-flow: row wrap;
        align-items: flex-start;
    }

    .entry-day {
        width: 15%;
    }

    .entry-content {
        width: 85%;
    }

    .entry-content > * {
        padding: 0.5rem 1rem;
    }

    .entry-image {
        width: 75%;
    }

    .entry-comment-section {
        width: 80%;
        margin-top: 0;
        margin-right: 0;
    }

    .entry-comment-form #body {
        width: 60%;
    }
    
    
}

.comment {
    display: flex;
    flex-flow: column wrap;
    /*align-items: center;*/
    margin-bottom: 1rem;
}

.comment .comment-info {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
}

.comment .comment-contents {
    font-size: 1.25rem;
}

.comment .comment-author {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment .comment-body {
    margin-top: 0;
    margin-bottom: 0;
}

.about-description {
    font-family: 'arima';
    font-size: 1.25rem;
}

@media screen and (min-width: 1024px) {

    .comment {
        flex-flow: row wrap;
    }

    .comment .comment-contents {
        max-width: 80%;
        padding-left: 1rem;
    }
    
}

.entry-share-buttons {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    margin-right: auto;
    margin-left: 0;
    width: 95%;
    font-size: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.entry-share-buttons .entry-share-ig-btn {
    color: black;
    text-decoration: none;
}

.page-nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    width: 30%;
    margin-left: auto;
    margin-right: auto;
}

.page-nav a {
    color: black;
    font-family: 'arima';
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.page-nav a:hover {
    text-decoration: underline;
}

.login {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    text-align: center;
}

.small-form {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.form-submit-btn-center {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

.form-submit-btn-left {
    margin-right: auto;
    margin-top: 1rem;
}

.yt-video-container {
    width: 350px;
    height: 197px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 800px) {

    .yt-video-container {
        width: 450px;
        height: 253px;
    }

}

@media screen and (min-width: 1000px) {

    .yt-video-container {
        width: 500px;
        height: 281px;
    }

}

@media screen and (min-width: 1200px) {

    .yt-video-container {
        width: 580px;
        height: 326px;
    }

}

.bg-selection {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    max-width: 100%;
    overflow-x: scroll;
}

.bg-selection .bg-entry {
    padding-right: 2rem;
}

.bg-selection .bg-entry .bg-image {
    max-width: 100%;
}

.bg-selection .bg-entry .bg-label {
    display: flex;
    flex-flow: column wrap;
    max-width: fit-content;
}

.bg-selection .bg-entry .bg-label label {
    width: 200px;
}

.hidden-input {
    position: absolute;
    left: -9999px;
  }
  
input[type=radio]:checked + label>.bg-image {
    border: 1px solid #fff;
    box-shadow: 0 0 3px 3px #090;
}

.timeline-entry {
    display: flex;
    flex-flow: row wrap;
    font-size: 1.6rem;
}

.timeline-entry .timeline-entry-day {
    width: 10%;
}

/**********************************/
/**********************************/
/**********************************/
/**********************************/


#timeline-text {
    max-width: 80%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.7rem;
}

.timeline {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

#new-timeline-entry {
    text-align: right;
    font-size: 1.8rem;
    margin-bottom: 0;
    margin-right: 5%;
}

#new-timeline-entry-btn {
    background-color: #b3dc64;
    border-radius: 15px;
    padding: 0.5rem;
    border: 2px solid black;
}

/* Container around content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #7fc002;
    border: 4px solid #5d8e00;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: -81px;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
}

.content h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2.25rem;
}

.content .date {
    margin-top: 0;
    margin-bottom: auto;
    font-size: 1.8rem;
}

.content .body {
    margin-bottom: 0;
    font-size: 1.6rem;
}

.content .link {
    text-align: right;
}

.content .link a {
    font-size: 1.4rem;
}

#return-timeline {
    font-size: 1.75rem;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {

    .timeline {
        position: relative;
        max-width: 85%;
        margin: 0 auto;
    }

    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    .timeline #new-timeline-entry {
        margin-bottom: revert;
    }

    /* Full-width containers */
    .container {
        width: 85%;
        padding-left: 60px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left::after,
    .right::after {
        left: 15px;
    }

    .left {
        left: 0;
    }

    /* Make all right containers behave like the left ones */
    .right {
        left: 0%;
    }
}
