/*code used to give every element an outline, I use this for troubleshooting*/
/** { outline: 1px solid black;*/
/*    outline-offset: -1px;*/
/*}*/

/*setting body margin to zero for continuing among all browsers*/
body {
    margin: 0;
}

/*setting margin for main section*/
main {
    margin-left: 1%;
    margin-right: 1%;
}

/*setting padding and margin for main section on smaller screens*/
@media screen and (max-width: 600px) {
    main {
        padding-top: 0;
        margin-left: 5%;
        margin-right: 5%;
    }
}

/*custom scrollbar*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
}

::-webkit-scrollbar-thumb {
    background: cornflowerblue;
}

::-webkit-scrollbar-thumb:hover {
    background: dodgerblue;
    box-shadow: inset 0 0 5px grey;
}

/*colors*/
.black {
    color: #000000FF;
}

.beige {
    color: #F5F5DCFF;
}

.blue {
    color: #0033CC;
}

.hover-blue {
    color: #6767FFFF;
}

.darkblue {
    color: #00008BFF;
}

.lightblue {
    color: #ADD8E6FF;
}

.lightgreen {
    color: #04AA6D;
}

.mediumpurple {
    color: #9370DBFF;
}

/*text and inline links*/
h1 {
    font-family: monospace;
    font-size: 30px;
}

h2 {
    font-family: monospace;
    font-size: 25px;
}

p, label, input, textarea{
    font-family: Verdana, serif;
}

.inline-link {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.inline-link:hover {
    text-decoration: underline;
    font-weight: bold;
    color: #9370DBFF;
}

/*general class to center everything in an element*/
.is-centered{
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

/*navbar including icon, links, and queries for smaller screens*/
nav {
    display: flex;
    flex-direction: row;
    z-index: 2;
    width: 100%;
    position: fixed;
    top:0;
    background-color: #0033CC;
    justify-content: center;
    transition: top 300ms;
}

.nav-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    width: 50%;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.nav-links a, .nav-hamburger {
    font-family: monospace;
    padding: 15px;
    color: beige;
    font-size: 20px;
    text-decoration: none;
}

.nav-links a:hover, .nav-hamburger:hover   {
    background-color: #6767FFFF;
    border-radius: 35px;
    transition: .5s ease;
}

.nav-icon-container {
    position: relative;
    width: 100%;
    max-width: 60px;
    max-height: 60px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 5px;
}

.nav-icon {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.nav-icon-overlay {
    position: absolute;
    border-radius: 50%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60px;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .3s ease;
    background-color: #ADD8E6FF;
}

.nav-icon-overlay-icon {
    color: white;
    font-size: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.nav-icon-container:hover .nav-icon-overlay {
    opacity: 1;
}

.nav-container .nav-hamburger {
    display: none;
}

@media screen and (max-width: 600px) {
    nav {
        top: unset;
        bottom: 0;
        transition: bottom 300ms;
    }
}

@media screen and (max-width: 990px) {
    .nav-container .nav-links {display: none;}
    .nav-container .nav-hamburger {
        position: absolute;
        top: 5px;
        right: 5px;
        display: block;
    }
}

@media screen and (max-width: 990px) {
    .nav-container.responsive {
        flex-direction: column;
        justify-content: space-evenly;
    }
    .nav-container.responsive .nav-hamburger {
        position: absolute;
        top: 5px;
        right: 5px;
        display: block;
    }
    .nav-container.responsive .nav-links{
        display: flex;
        height: fit-content;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        padding: 15px 0;
    }
    .nav-container.responsive .nav-links .nav-link {
        margin: 15px auto;
    }
}

/* dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.drop-list {
    border-radius: 35px;
    background: #0033CC;
    display: none;
    position: absolute;
    z-index: 1;
    top: 35px;
    animation: rotateMenu 300ms ease-in-out forwards;
    transform-origin: top center;
}

@keyframes rotateMenu {
    0% {
        transform: rotateY(-90deg);
    }
    70% {
        transform: rotateY(-30deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.drop-list a {
    display: block;
    font-size: medium;
}

.dropdown:hover > div.drop-list {
    display: block;
}

/* footer */
footer {
    display: flex;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 50px;
    background-color: #0033CC;
    justify-content: center;
    align-items: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-inline: 25px;
}

.footer-text p, .footer-text a {
    color: beige;
    line-height: 0;
    font-size: 14px;
    font-family: monospace;
}

#scroll-btn {
    background-color: #04AA6D;
    border: none;
    border-radius: 50%;
    color: beige;
    cursor: pointer;
    font-size: 16px;
    line-height: 50px;
    width: 50px;
    transition: 0.5s;
}

#scroll-btn:hover {
    background-color: #0033CC;
    box-shadow:  0 0 0 5px #04AA6D;
}

/* images */
.muffin-img {
    max-width: 30%;
    border-radius: 20px;
}

.london1-img {
    background-image: url("/img/london1.jpg");
    background-size: cover;
}

.london2-img {
    background-image: url("/img/london2.jpg");
    background-size: cover;
}

.london3-img {
    background-image: url("/img/london3.jpg");
    background-size: cover;
}

.london4-img {
    background-image: url("/img/london4.jpg");
}

.calais1-img {
    background-image: url("/img/calais1.jpg");
    background-size: cover;
}

.placeholder-img {
    background-image: url("/img/placeholder.jpg");
    background-size: cover;
}

.cv-banner-img {
    background-image: url("/img/cv-banner.jpg");
}

/* banner */
.large-banner {
    background-image: url("/img/banner1.png");
    max-width: 1200px;
    height: 85vh;
    background-position: 70% top;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: 0 15px 20px rgba(0,0,0,0.5);
    margin: 60px auto 30px;
}

@media screen and (min-height: 800px) {
    .large-banner {
        height: 50vh;
        background-position: top;
    }
}

@media screen and (max-width: 600px) {
    .large-banner {
        height: 60vh;
        margin: auto auto 30px;
        background-position: 70%;
    }
}


.large-banner-text {
    padding: 20px;
    margin-left: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    height: 100%;
    color: black;
    font-family: "Monaco", monospace;
}

.small-banner {
    max-width: 1200px;
    height: 400px;
    background-position: 50%; 
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: 0 15px 20px rgba(0,0,0,0.5);
    margin: 60px auto 30px;
}

@media screen and (max-width: 600px) {
    .small-banner {
        margin: auto auto 30px;
    }
}

.small-banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: beige;
    font-family: "Monaco", monospace;
    position: relative;
    top: 50%;
    transform: translate(0%, -50%);
    background: rgba(0, 0, 0, 0.65);
    padding: 5px;
}

/*row class*/
.row {
    max-width: 1200px;
    margin: 80px auto;
}

.contact-row {
    display: flex;
    justify-content: center;
    align-items: start;
    column-gap: 8%;
    row-gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 80px auto;
}

.contact-row > div {
    width: 40%;
    min-width: 550px;
}

.contact-row iframe {
    width: 100%;
    border-radius: 20px;
}

@media screen and (max-width: 600px) {
    .contact-row > div {
        min-width: 400px;
    }
}

/*columns*/
.article-column {
    max-width: 700px;
    margin: auto;
    background: #e0e4fc;
    border-radius: 20px;
    padding: 10px 30px;
    overflow-wrap: break-word;
    z-index: 0;
}

.cv-column {
    max-width: 900px;
    margin: auto;
    background: #e0e4fc;
    border-radius: 20px;
    padding: 10px;
    overflow-wrap: break-word;
}

.journal-content-column {
    max-width: 800px;
    margin: auto;
    background-color: white;
    overflow-wrap: break-word;
}

/*collage*/
.collage-container {
    display: flex;
    flex-wrap: wrap;
}

.collage-item {
    position: relative;
    width: 25%;
}

@media screen and (max-width: 600px) {
    .collage-container {
        padding: 10px;
    }

    .collage-item {
        width: 50%;
    }
}

.collage-item > img {
    margin: -3px -5px;
    max-width: 100%;
    height: auto;

}

.collage-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    margin: -3px -5px;
    transition: .3s ease;
    background-color: darkblue;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
}

.collage-item-overlay h3 {
    text-align: center;
    color: beige;
    font-family: monospace;
    width: 75%;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.collage-item:hover .collage-item-overlay {
    opacity: 0.8;
}

/*three boxes for journal links*/
.box-row {
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 100px auto;
}

.three-box-container {
    display: flex;
    min-height: 295px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-around;
  }

.three-box {
    border-radius: 5px;
    margin: 25px auto;
    padding: 20px;
    width: 25%;
    min-width: 225px;
    height: 200px;
    box-shadow: 0 0 15px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: 300ms ease;
    opacity: 0.9;
}

.three-box:hover {
    border: 3px solid #0033CC;
    opacity: 1;
    padding: 17px;
}

.three-box > h2 {
    color: beige;
    background: rgba(0, 0, 0, 0.65);
    padding: 5px;
    border-radius: 20px;
    text-decoration: none;
    font-family: monospace;
}

/*contact form*/
.form-container{
    display: block;
    background: #e0e4fc;
    margin: auto;
    max-width: 600px;
    padding: 20px;
    border-radius: 20px;
}
.field {
    padding: 5px;
    margin-top: 10px;
}

input[type=text], input[type=email], textarea[id=message]{
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 1px;
}

textarea[id=message] {
    resize: none;
    height: 130px;
}

textarea[id=message]::-webkit-scrollbar {
    width: 8px;
}

textarea[id=message]::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

textarea[id=message]::-webkit-scrollbar-thumb {
    background: #0033CC;
    border-radius: 10px;
}

textarea[id=message]::-webkit-scrollbar-thumb:hover {
    background: #6767FFFF;
}

input[type=text]:focus, input[type=email]:focus, textarea[id=message]:focus {
    outline: 2px solid #ccc;
}

.form-button-div{
    display: flex;
    justify-content: space-between;
}

input[type=submit] {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    margin-right: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #0ed21a;
}

input[type=reset] {
    background-color: #ce0303;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=reset]:hover {
    background-color: #ff0000;
}

.field.error input, .field.error textarea {
    border-color: red;
}

.field.success input, .field.success textarea {
    border-color: limegreen;
}

.field small {
    color: red;
    font-family: monospace;
}

/*table used for cv*/
table {
    width: 100%;
    padding: 20px;
}
td {
    padding: 5px;
}

.td-top-border {
    border-top: 1px solid black;
}

.td-bottom-border {
    border-bottom: 1px solid black;
}

.td-date {
    text-align: end;
}

th{
    width: 15%;
    padding: 10px;
}

/*buttons, including social buttons*/
.button {
    padding: 20px;
    text-align: center;
    border-radius: 20px;
    color: beige;
    background-color: #0033CC;
    text-decoration: none;
    transition: 300ms ease;
}

@media screen and (max-width: 600px) {
    .button {
        width: 80%;
    }
}

.button:hover {
    background-color: #6767FFFF;
    box-shadow:  0 0 0 5px #0033CC;
}

.social-buttons-container {
    display: flex;
    flex-direction: row;
    column-gap: 25px;
    justify-content: center;
    margin-top: 20px;
}

.social-buttons {
    font-size: 30px;
    color: white;
    background: #0033CC;
    padding: 15px;
    border-radius: 50%;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    transition: 300ms ease;
}

.social-buttons:hover {
    background-color: #6767FFFF;
    box-shadow:  0 0 0 5px #0033CC;
}

/*journal tabs, including banners and links*/
.tab-link-container{
    max-width: 1200px;
    margin: auto;
    position: sticky;
    top: 70px;
    transition: top 300ms;
    z-index: 1;
}

@media screen and (max-width: 600px) {
    .tab-link-container {
        top: 0;
    }
}

.tab-link {
    background-color: #555;
    color: white;
    float: left;
    clear: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    width: 33.3333333%;
}

.tab-link:hover {
    background-color: #777;
}

.tab-banner {
    display: none;
    max-width: 1200px;
    height: 400px;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: 0 15px 20px rgba(0,0,0,0.5);
    margin: 60px auto 0;
    text-align: center;
    color: beige;
}

@media screen and (max-width: 600px) {
    .tab-banner {
        margin: auto auto 0;
    }
}

.tab-content {
    display: none;
}

#ibm {background-image: url("/img/london1.jpg");}
#isdb {background-image: url("/img/london2.jpg");}
#ddi {background-image: url("/img/london3.jpg");}

/*accordion for journals*/
details summary {
    cursor: pointer;
    padding: 20px;
    background-color: #eeeeee;
    box-shadow: 0 3px 10px 1px black;
    transition: 0.5s;
    list-style-type: '';
}

details summary:after {
    content: '\002B';
    font-weight: bold;
    font-size: 20px;
    float: right;
    clear: none;
    margin-left: 5px;
    transform: rotate(0);
    transform-origin: center;
    transition: .5s transform ease;
}

details[open] summary {
    list-style-type: '';
    background-color: #ccc;
}

details[open] summary:after {
    content: "\2212";
    transform: rotate(360deg);
}

details summary:hover {
    background-color: #cccccc;
}

details summary > h2 {
    display: inline;
    font-family: monospace;
    margin-left: 5px;
}

details p {
    line-height: 25px;
    font-family: "Times New Roman", serif;
}

details .details-content {
    padding: 0 15px 15px;
}

details iframe {
    max-width: 100%;
    max-height: 400px;
    width: 80vw;
    height: 45vw;
}

/*timeline for about me page*/
.timeline {
    width: 75%;
    height: 20px;
    list-style: none;
    text-align: justify;
    margin: 100px auto 200px;
    cursor: default;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 45%, rgb(103, 103, 255) 51%, rgba(255,255,255,0) 57%, rgba(255,255,255,0) 100%);
}

.timeline:after {
    display: inline-block;
    content: "";
    width: 100%;
}

.timeline li {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #6767FFFF;
    text-align: center;
    line-height: 1.2;
    position: relative;
    border-radius: 50%;
    transition: 100ms ease;
}

.timeline li:hover {
    box-shadow:  0 0 0 5px #6767FFFF;
}

.timeline li:hover > .timeline-content {
    display: block;
    cursor: crosshair;

}

.timeline .timeline-content {
    display: none;
    position: absolute;
    background-color: #0033CC;
    box-shadow:  0 0 0 5px #6767FFFF;
    z-index: 2;
    width: fit-content;
    height: fit-content;
    color: beige;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: timeline-open 500ms ease-in-out backwards;
    transform-origin: top left;
}

@media screen and (max-width: 600px) {
    .timeline .timeline-content img {
        width: 50vw;
    }
}

@keyframes timeline-open {
    0% {

        transform: scale(0%) translate(-50%, -50%)
    }
    100% {

        transform: scale(100%) translate(-50%, -50%)
    }
}

.timeline .timeline-content img {
    width: 20vw;
}

.timeline .timeline-content p {
    height: 30%;
    padding: 0 5px;
    font-family: "Trebuchet MS", serif;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.timeline li:before {
    display: inline-block;
    content: attr(data-year);
    font-size: 26px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline li:nth-child(odd):before {
    top: -40px;
}

.timeline li:nth-child(even):before {
    bottom: -40px;
}

.timeline li:after {
    display: inline-block;
    content: attr(data-text);
    font-family: monospace;
    font-size: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline li:nth-child(odd):after {
    bottom: 0;
    margin-bottom: -10px;
    transform: translate(-50%, 100%);
}

.timeline li:nth-child(even):after {
    top: 0;
    margin-top: -10px;
    transform: translate(-50%, -100%);
}

.timeline-header{
    margin-left: 50px;
}

@media screen and (max-width: 600px) {
    .timeline {
        width: 85%;
        margin: 100px auto 100px;
    }

    .timeline-header {
        margin-left: auto;
    }

    .timeline-header:before {
        display: inline-block;
        content: attr(data-text);
        font-family: monospace;
        font-size: 18px;
        position: absolute;
        left: 50%;
        top: 10%;
        transform: translateX(-50%);
    }

    .timeline li:after {
        display: none
    }

    .timeline .timeline-content {
        position: fixed;
        box-shadow:  0 0 0 5px #0033CC;
    }

    .timeline .timeline-content img {
        width: 80vw;
    }

    .row-shrink {
        transform:scale(0.85);
    }
}

/*list for my values on about me page and quotes on quotes page*/
.value-list li {
    padding: 0.5rem 1.5rem 1rem;
    z-index: 1;
    border-radius: 1.5rem;
    background: rgba(126, 189, 220, 0.41);
}

.value-list li {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 16px;
}

.value-list li::marker {
    font-weight: 600;
    color: #0e0e26;
    font-size: 1.8rem;
}
