body {
    margin: 0%;
}

h1 {
    text-transform: uppercase;
    font-family: "Trebuchet MS", Optima;
    text-align: center;
    margin-top: 3%;
    color: #ffffff; /* changed to stay readable on dark panels */
}

h1:hover {
    filter: grayscale(5%);
    transform: scale(1.1);
    transition: transform 1s;
}

.white-text {
    color: #fff;
}

#About a {
    color: #d8a0ff;      /* soft purple */
    text-decoration: underline;
}

#About a:hover {
    color: white;
}

p {
    font-family: Perpetua, Rockwell Extra Bold;
    text-align: justify;
    letter-spacing: 1px;
    font-size: 20px;
    padding-left: 20px;
    padding-right: 20px;
    color: #ffffff; /* keeps text readable on dark panels */
}

p:hover {
    color: #00004d;
    transition: transform 1s;
    transform: scale(1.01);
}

.center {
    text-align: center;
}

.center:hover {
    transition: transform 2s;
    transform: scale(1.1);
}

a {
    color: #8ab4ff; /* nicer on dark background than pure blue */
}

q {
    font-style: italic;
}

img {
    filter: grayscale(75%);
    border-radius: 8px;
    max-width: 100%;
    height: 340px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img:hover {
    filter: grayscale(5%);
    transition: transform 1s;
    transform: scale(1.1);
}

@media screen and (max-width: 576px) {
    img {
        height: 100px;
        margin-top: 150px;
    }
}

footer {
    padding: 2%;
    background-color: #1a1a1a; /* was white */
    color: white;
}

footer a {
    color: #8ab4ff;
}

.Navbar {
    overflow: hidden;
    background-color: black;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    -webkit-animation: moveNav 5s;
    animation: moveNav 5s;
}

@keyframes moveNav {
    from {
        left: -100vw;
    }

    to {
        left: 0vw;
    }
}

.Navbar a {
    float: left;
    display: block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-family: Avant Garde, Arial, Helvetica;
    font-size: 20px;
    text-align: center;
    position: relative;
    -webkit-animation: moveNavText 5.75s;
    animation: moveNavText 5.75s;
}

@keyframes moveNavText {
    from {
        top: -100vw;
    }

    to {
        top: 0vw;
    }
}

@media screen and (max-width: 576px) {
    .Navbar a {
        width: 25%;
        font-size: 12px;
    }
}

.Navbar a:hover {
    background-color: #f4f4f4;
    color: black;
    font-weight: bold;
}

.Navbar a.active {
    background-color: darkgray;
}

#Background_Video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

@media screen and (max-width: 576px) {
    #Background_Video {
        display: none;
    }
}

.Video_Text {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    padding: 20px;
    position: relative;
    -webkit-animation: moveVideoText 5.75s;
    animation: moveVideoText 5.75s;
}

@keyframes moveVideoText {
    from {
        top: -100vw;
    }

    to {
        top: 0vw;
    }
}

* {
    box-sizing: border-box;
}

.Column_1 {
    float: left;
    width: 50%;
    padding: 10px;
    padding-top: 3%;
    min-height: 400px;
    background-color: #1e1e1e; /* was #f2f2f2 (light) */
    color: white;
}

#GitHub .Column_1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical center */
    align-items: center;
    /* horizontal center */
    text-align: center;
    /* center the text */
}

@media screen and (max-width: 576px) {
    .Column_1 {
        overflow: auto;
    }
}

.Column_2 {
    float: left;
    width: 50%;
    padding: 10px;
    padding-top: 1.9%;
    min-height: 400px;
    background-color: #2a2a2a; /* slightly darker than old #4d4d4d */
    color: white;
}

.Column_tall {
    padding-top: 3.5%;
    min-height: 450px;
}

.Row:after {
    content: "";
    display: table;
    clear: both;
}

input[type=text],
input[type=email],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    font-family: Perpetua, Rockwell Extra Bold;
}

input[type=text]:hover,
input[type=email]:hover,
textarea:hover {
    box-shadow: 0 0 5px #00004d inset;
}

input[type=submit] {
    background-color: black;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: Perpetua, Rockwell Extra Bold;
}

input[type=submit]:hover {
    background-color: white;
    color: black;
    transform: scale(1.5);
    transition: transform 1.5s;
}

form {
    border-radius: 5px;
    background-color: #1e1e1e; /* was #f2f2f2 (light) */
    padding: 10px;
    font-family: "Trebuchet MS", Optima;
    color: white;
}

/*SLIDESHOW-IMAGES AND BOX*/

#Slideshow_Background {
    background-color: rgba(0, 0, 0, 0.75);
    padding: 30px 0 50px 0;
}

#Slideshow_Container {
    width: 100%;
    max-width: 600px;
    margin: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.mySlides {
    display: none;
}

.Slideshow_Images {
    width: 100%;
    height: 600px;
    object-fit: contain;
    border-radius: 0px;
    filter: grayscale(30%);
}

.Slideshow_Images:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    transition: transform 0.8s;
}

.Previous,
.Next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.Next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.Previous:hover,
.Next:hover {
    background-color: rgba(0, 0, 0, 0.85);
}

.text {
    color: white;
    left: 0;
    font-size: 20px;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    border-radius: 0 0 10px 10px;
    background: rgba(0, 0, 0, 0.7);
}

.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

@media screen and (max-width: 576px) {
    #Slideshow_Container {
        width: 95%;
    }

    .Slideshow_Images {
        height: 250px;
    }

    .text {
        font-size: 16px;
    }
}

/*POP-UP CONTACT BOX*/

.Pop_Up_Button {
    position: fixed;
    bottom: 30px;
    right: 30px;

    padding: 18px 45px;
    /* bigger button */
    font-size: 18px;
    /* larger text */
    letter-spacing: 2px;
    /* more spacing between letters */

    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 4px;

    cursor: pointer;
    transition: 0.3s ease;
}

.Pop_Up_Button:hover {
    background-color: white;
    color: black;
}

.form-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    border: 3px solid #f1f1f1;
    z-index: 30;
    background-color: white;
    border-radius: 10px;
    width: 320px;
}

.form-container {
    max-width: 320px;
    padding: 16px;
}

.form-container input[type=text],
.form-container input[type=email] {
    width: 100%;
    padding: 12px;
    margin: 6px 0 14px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form-container .btn {
    background-color: black;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.form-container .btn:hover {
    background-color: #444;
}

.form-container .cancel {
    background-color: darkred;
}

.form-container .cancel:hover {
    background-color: #7a0000;
}

@media screen and (max-width: 576px) {
    .form-popup {
        width: 90%;
        right: 5%;
        bottom: 90px;
    }

    .form-container {
        max-width: 100%;
    }
}