@font-face {
    font-family: 'Poppins';
    font-weight: 700;
    src: url('../Assets/fonts/Poppins-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 400;
    src: url('../Assets/fonts/Poppins-Regular.ttf') format('truetype');
}

* {
    /*border-box tells the browser to account for borders and padding*/
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins';
    font-size: 18px;
    font-weight: 400;
    justify-content: center;
    align-items: center;
}

html {
    scroll-behavior: smooth;
}


nav {
    height: 90px;
    background: #212331;
    overflow: hidden;
    /*Flexbox layout mode, allowing element alignment, spacing and order within a container*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    padding-right: 95px;
    border-bottom: 1px solid white;
}

.dark-mode{
    background-color: #111111;
    color: white;
}

.dark-mode nav{
    background: #111111;
    border-bottom: 3px solid #262626;
}

.dark-mode .hero-container{
    background-color: #111111;
    border-top: 2px solid #262626;
    border-bottom: 3px solid #262626;
}

.dark-mode .rza-application{
    border-top: 3px solid #262626;
    border-bottom: 3px solid #262626;
}

.dark-mode .footer{
    background-color: #111111;
    border-top: 3px solid #262626;
}

.arrow-left img {
    background: white;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    padding: 5px;
    transition: 0.4s ease;
    cursor: pointer;
}

.arrow-left:hover {
    transform: scale(1.02);
    transition: ease-in-out 0.3s;
}

.navbar-items {
    margin: auto;
    width: fit-content;
    transition: 0.2s;
}


nav a {
    color: #fff;
    text-decoration: none;
    padding: 0 1rem;
    border-bottom: 3px solid transparent;
}

/*:hover allows you to configure an element when the mouse is hovered over it*/
.navbar-items a:hover {
    border-bottom: 2px solid whitesmoke;
    padding-bottom: 10px;
}

.hero {
    background: #40445f;
}

.hero-container {
    padding-bottom: 150px;
    text-align: center;
    border-bottom: 3px solid black;
}

.column-center h1 {
    color: white;
    font-size: 60px;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-family: Happy Monkey;
    padding-top: 150px;
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;

}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.rza-application {
    text-align: center;
    padding-top: 75px;
    padding-bottom: 75px;
}

.project-title h1 {
    font-weight: 700;
    font-family: Happy Monkey;
    text-decoration: underline;
    font-size: 28px;
}

.project-demo {
    padding-top: 15px;
}

.project-demo iframe {
    padding-top: 25px;
    padding-bottom: 25px;
    background: #000;
    -moz-border-radius: 20px;
    border-radius: 20px;
    width: 540px;
    margin: 0 auto;
    overflow: hidden;
}

.project-description p {
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 350px;
    padding-right: 350px;
}

.rza-application button,
.programming-challenges button {
    background-color: #512DA8;
    border: 4px solid black;
    border-radius: 25px;
    color: white;
    padding: 5px 25px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.project-description button:hover {
    transform: scale(1.02);
}

.programming-challenges {
    text-align: center;
    padding-top: 75px;
    padding-bottom: 75px;
}

.footer {
    border-top: 3px solid black;
    background-color: #212331;
    text-align: center;
    padding-bottom: 45px;
    padding-top: 45px;
}

.footer h1 {
    color: white;
    font-weight: 700;
}

.footer a {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

#scroll-to-top-btn{
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: white;
    border: 2px solid black;
    border-radius: 25px;
    padding: 5px 15px;
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
}

#scroll-to-top-btn:hover{
    transform: scale(1.05);
    background-color: #212331;
    color: white;
    border-color: black;
    transition: ease-in-out 0.3s;
}

#dark-mode-btn{
    /* display = none; */
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: white;
    border: 2px solid black;
    border-radius: 25px;
    padding: 5px 15px;
    font-size: 24px;
    cursor: pointer;
}

#dark-mode-btn:hover{
    transform: scale(1.05);
    background-color: #212331;
    color: white;
    border-color: black;
    transition: ease-in-out 0.3s;
}

/* Media queries for responsiveness */
@media screen and (max-width: 1200px) {
    .project-description p {
        padding-left: 250px;
        padding-right: 250px;
    }

    .project-demo iframe {
        width: 380px;
        height: 285px;
    }
}

@media screen and (max-width: 992px) {
    .project-description p {
        padding-left: 150px;
        padding-right: 150px;
    }

    .column-center h1 {
        font-size: 48px;
    }

    .project-demo iframe {
        width: 340px;
        height: 255px;
    }
}

@media screen and (max-width: 768px) {
    .project-description p {
        padding-left: 50px;
        padding-right: 50px;
    }

    .project-demo iframe {
        width: 300px;
        height: 225px;
        margin: 5px;
    }

    .column-center h1 {
        font-size: 36px;
        padding-top: 100px;
    }

    .hero-container {
        padding-bottom: 100px;
    }

    .project-title h1 {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .project-description p {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-demo iframe {
        width: 280px;
        height: 210px;
        display: block;
        margin: 10px auto;
    }

    .column-center h1 {
        font-size: 24px;
        padding-top: 80px;
    }

    .hero-container {
        padding-bottom: 80px;
    }

    .project-title h1 {
        font-size: 20px;
    }

    .rza-application button,
    .programming-challenges button {
        font-size: 14px;
        padding: 5px 15px;
    }
}