@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;1,300&display=swap');

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Loader (Attributed to Donewenfu on UIVerse.io) */
#loader-wrapper {
    background-color: #212121;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    text-align: center; }


.loader {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.jimu-primary-loading:before,
.jimu-primary-loading:after {
    position: absolute;
    top: 0;
    content: '';
}

.jimu-primary-loading:before {
    left: -19.992px;
}

.jimu-primary-loading:after {
    left: 19.992px;
    -webkit-animation-delay: 0.32s !important;
    animation-delay: 0.32s !important;
}

.jimu-primary-loading:before,
.jimu-primary-loading:after,
.jimu-primary-loading {
    background: rgb(0, 125, 100);
    -webkit-animation: loading-keys-app-loading 0.8s infinite ease-in-out;
    animation: loading-keys-app-loading 0.8s infinite ease-in-out;
    width: 13.6px;
    height: 32px;
}

.jimu-primary-loading {
    text-indent: -9999em;
    margin: auto;
    position: absolute;
    right: calc(50% - 6.8px);
    top: calc(50% - 16px);
    -webkit-animation-delay: 0.16s !important;
    animation-delay: 0.16s !important;
}

@-webkit-keyframes loading-keys-app-loading {

    0%,
    80%,
    100% {
        opacity: .75;
        box-shadow: 0 0 rgb(0, 125, 100);
        height: 32px;
    }

    40% {
        opacity: 1;
        box-shadow: 0 -8px rgb(0, 125, 100);
        height: 40px;
    }
}

@keyframes loading-keys-app-loading {

    0%,
    80%,
    100% {
        opacity: .75;
        box-shadow: 0 0 rgb(0, 125, 100);
        height: 32px;
    }

    40% {
        opacity: 1;
        box-shadow: 0 -8px rgb(0, 125, 100);
        height: 40px;
    }
}

/* Navbar Styling */
body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
}

.logo-div{
    display: flex;
    justify-content: center;
    align-items: center;
}

.topnav{
    overflow: hidden;
    background-color: rgb(0, 125, 100);
    position: sticky;
    top: 0;
}

.links{
    display: flex;
    justify-content: center;
    align-items: center;
}

.topnav img:hover {
    transform:scale(1.2) rotate(25deg);
    z-index: 2;
    transition: 0.5s;

}

.imgcontainer {
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.1);
}

.topnav a:not(#logo) {
    display: block;
    color: #000000;
    text-align: center;
    padding: 10px;
    margin: 5px;
    text-decoration: none;
    font-size: 17px;
    border-radius: 8px;
}

.topnav p {
    display: block;
    color: #000000;
    text-align: center;
    font-size: 17px;
}

.topnav .icon {
    display: none;
}

.topnav a:hover:not(#logo) {
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    transition: 0.5s;
}

/* Hero Image CSS */

.about, .contact, .projects, .hero-image {
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
}

.about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/about.jpg");
}

.contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/contact.jpg");
}

.projects {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/projects.jpg");
}

.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/banner.jpg");
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 2vh;
    height: 5vh;
    width: 5vh;
    border: none;
    outline: none;
    background-color: black;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 100%;
}

form {
    background-color: rgba(0, 125, 100, 0.75);
    padding: 16px;
    border-radius: 8px;
}

input {
    border: 1px solid black;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    margin: 5px;
    text-align: center;
}

#button:hover {
    transform:scale(1.2);
    z-index: 2;
    transition: 0.5s;
}
