:root {
    --primary: rgb(55, 55, 100);
    --secondary: rgb(30, 30, 80);
    --nav: rgb(10, 10, 60);
    --textcolor: white;

    --transitiontime: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: var(--primary);    
    margin: 0px;
        
    transition: var(--transitiontime);
}

nav {
    background-color: var(--nav);
    min-height: 100px;
    display: flex;
    align-items: center;

    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;

    transition: var(--transitiontime);
}

.nav_left {
    justify-self: start;
    align-items: center;
}

.nav_right {
    margin-right: 25px;
    margin-left: auto;
    justify-content: end;
    display: flex;
    align-items: center;
}

nav h2 {
    margin-left: 25px;
    margin-right: 50px;
    color: var(--textcolor);

    transition: var(--transitiontime);
}

nav a {
    text-align: center;
    font-size: 20px;
    text-decoration: none;
    color: var(--textcolor);
    display: flex;
}

.nav_btn {
    background-color: var(--nav);
    color: var(--textcolor);
    border-radius: 128px;
    
    transition: var(--transitiontime);
}

.nav_btn:hover {
    color: black;
    background-color: white;
}

nav .disco {
    color: var(--nav);
}

.disco-left {
    width: 10px;
    height: 10px;
    margin: 0 50px;
}

.row_con {
    display: flex;
    align-items: center;
}

nav article {
    margin-right: 25px;
}

#disco-btn {
    height: 34px;
    width: 34px;
    justify-self: center;
    color: var(--nav);
    background-color: var(--nav);
    border: none;
    border-radius: 128px;
    
    transition: var(--transitiontime);
}

.darkmode-btn {
    height: 34px;
    color: yellow;
    background-color: var(--nav);
    border: none;
    border-radius: 128px;
    
    transition: var(--transitiontime);
}

.darkmode-btn:hover, #disco-btn:hover {
    background-color: white;
    color: black;

    cursor: pointer;
}

.darkmode-btn .fa {
    font-size: 20px;
}

.nav-fill {
    height: 128px;

    transition: var(--transitiontime);

    bottom: 0;
}

/* index */
.welcome-screen {
    min-height: 100vh;
}

.welcome-box {
    margin: 50px 15% 0 15%;
    padding: 20px 50px;
    background-color: var(--secondary);
    border-radius: 5px;

    color: var(--textcolor);
    text-decoration: none;
    
    transition: var(--transitiontime);
}

.welcome-box h2 {
    margin: 10px 0;
    justify-self: center;
}

.welcome-box p {
    margin: 20px 50px;
    justify-self: center;
    text-align: center;
}

.grid-box {
    margin: 80px 25% 112px 25%;
    display: grid;
    grid-template-columns: auto;
    justify-content: center;

    /* For when i have 2 cards
    grid-template-columns: auto auto;
    justify-content: space-between;
    */
}

.grid-box a {
    text-decoration: none;
}

.grid-box .project-card {
    height: 300px;
    width: 300px;
    background-color: rgb(220,220,225);
    border-radius: 15px;
    box-shadow: 5px 5px rgba(0,0,0,0.2);

    transition: var(--transitiontime);
}

.grid-box .project-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 10px var(--textcolor);
}

.grid-box .project-card figure {
    margin: 0;
    height: 50%;
}

.grid-box .project-card figure img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    
}

.grid-box .project-card .text {
    font-size: x-large;
    height: 50%;
    color: black;
    justify-self: center;
    align-self: center;
    padding-top: 15%;
}

.text h3 {
    margin: 0;
}

.projects {
    display: block;
}

.project-link {
    color: var(--textcolor);
    text-decoration: none;
}

.project-link:hover {
    color: gray;

    transition: var(--transitiontime);
}


.git-btn {
    height: 34px;
    width: 100px;
    margin-left: 5%;
    margin-bottom: 50px;
    background-color: var(--secondary);
    border-radius: 128px;
    justify-content: center;
    align-items: center;
    display: inline-block;

    color: gray;

    transition: var(--transitiontime);
}

.git-btn div p {
    margin: 0;
    margin-top: 5px;
}

.git-btn:hover{
    background-color: white;
    color: black;
}

.project1, .project2 {
    color: var(--textcolor);
    margin: 0px 0 32px 0;
    background-color: var(--secondary);
    padding: 5px 0;

    scroll-margin-top: 100px;

    transition: var(--transitiontime);
}

.project1 h1, .project2 h1 {
    margin: 25px 0 0 0;
    width: 90%;
    justify-self: center;
}

.project1 h2, .project2 h2 {
    margin: 0;
    width: 90%;
    justify-self: center;
}

.project1 p, .project2 p {
    margin: 15px 0 50px;
    width: 90%;
    justify-self: center;
}

/* img slider */
.my-slider, .my-slider2 .my-slider3 {
    display: block;
}

#slider {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 1600px;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;

    width: 100%;
}

.subcontainer {
    width: 95%;
    margin: auto;
}

.controller {
    display: flex;
    justify-content: space-between;
}

.controls {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: auto 95% auto;
    justify-content: center;
}

.block {
    display: block;
}

.controls i{
    color: white;
    font-size: 1rem;
}

.previous, .next {
    margin: 0 5px;
    padding: 2px;
    width: 40px;
    height: 40px;
    align-self: center;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    transition: 0.4s ease-in-out;
    border: 3px solid white;
    background-color: black;
    box-shadow:  0 0 5px #bbb;
}

.previous:hover, .next:hover {
    border: 3px solid gray;
}

.slide-img {
    width: 100%;
    height: 275px;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 15px;
}

.slide p {
    margin: 0;
}

.img-1 {
    background-image: url(img/1st.jpg);
}

.img-2 {
    background-image: url(img/placeholder.png);
}

.img-3 {
    background-image: url(img/1st.jpg);
}

.img-4 {
    background-image: url(img/placeholder.png);
}

/* project 1 img */
.p1-img-1 {
    background-image: url(img/p1/p1_scr_1.png);
}

.p1-img-2 {
    background-image: url(img/p1/p1_scr_2.png);
}

.p1-img-3 {
    background-image: url(img/p1/p1_scr_3.png);
}

.p1-img-4 {
    background-image: url(img/p1/p1_scr_4.png);
}

.p1-img-5 {
    background-image: url(img/p1/p1_scr_5.png);
}

/* project 2 img */
.p2-img-1 {
    background-image: url(img/p2/p2_scr_5.png);
}

.p2-img-2 {
    background-image: url(img/p2/p2_scr_6.png);
}

.p2-img-3 {
    background-image: url(img/p2/p2_scr_1.png);
}

.p2-img-4 {
    background-image: url(img/p2/p2_scr_2.png);
}

.p2-img-5 {
    background-image: url(img/p2/p2_scr_4.png);
}
/* img end */

/* Footer */
.footer-about {
    margin-top: 390px;
}

footer {
    background-color: var(--secondary);
    height: 100px;
    color: var(--textcolor);
    padding: 8px 32px;

    bottom: 0;

    transition: var(--transitiontime);
}

footer section {
    justify-self: center;
}

footer p {
    margin: 8px 0 0 0;
}

/* Rainbow text */
.rainbow-text {
    animation: rainbowText;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}


/* Responsiveness */
@media screen and (width <= 1300px) {
    .grid-box{margin: 80px 15% 112px 15%;}
}

@media screen and (width <= 1024px) {
    .grid-box .project-card {
        height: 200px;
        width: 200px;
    }
    .grid-box .project-card .text{font-size: medium;}
    .container {width: 90%;}
}

@media screen and (width <= 800px) {
    .welcome-screen{
        max-height: 100%;
        height: 100%;
    }
}

@media screen and (width <= 700px) {
    .welcome-box p {margin: 20px 20px;}

    #disco-btn {display: none;}
    .disco-left {display: none;}

    .grid-box .project-card figure {display: none;}
    .grid-box .project-card {
        height: 100px;
        width: 100px;
        text-align: center;
    }
    .grid-box .project-card .text{font-size: smaller;}    
}

@media screen and (width <= 600px) {
    .grid-box {
        grid-template-columns: auto auto;
    }
    .grid-box .project-card { margin-bottom: 40px;}
    .container {width: 80%;}
    .welcome-box {
        margin: 50px 20px;
        padding: 20px 0;
    }
}

/* Animation(s) */
@keyframes rainbowText {
  0% {--textcolor: red}
  25% {--textcolor: yellow}
  50% {--textcolor: greenyellow}
  75% {--textcolor: aqua}
  100% {--textcolor: red}
}