* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Matt, Arial, sans-serif;
    color: white;
    background: linear-gradient(135deg, #6D6D6D, #2C2C2C);
    min-height: 100vh;
    user-select: none;
}

header, footer {
    background-color: rgba(50, 50, 50, 0.2);;
    padding: 10px 0px;
    position: fixed;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
}

header {
    top: 0;
    flex-direction: row;
    justify-content: center;
}

footer {
    bottom: 0;
    flex-direction: column;
}

header nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

header nav a, footer div a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer img {
    height: 24px;
    margin: 0 5px;
}

footer p {
    font-size: 0.9rem;
    text-align: center;
}

main {
    display: flex;
    justify-content: flex-start;
    /*justify-content: center;*/
    /*height: 100vh;*/
    flex-direction: column;
    align-items: center;
}

.slider {
    margin: 80px 40px;
    max-width: 1200px;
    width: 90%;
    display: flex;
    align-items: center;
    position: relative;
    background: white;
    /*border: 2px solid rgba(255, 255, 255, 0.2);*/
    border-radius: 40px;
    padding: 0px;
    height: 500px;
    overflow: hidden;
}

.slider-content {
    text-align: center;
    flex: 1;
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slider-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.slider-content h1 a {
    text-decoration: none;
    color: #2C2C2C;
}

.slider-content p {
    font-size: 1.2rem;
    color: black;
    min-height: 50px;
    padding: 0 10px;
}

.slider-content h1 a, 
.slider-content p {
    transition: opacity 0.2s ease-in-out;
}

.slider-content .text-change {
    opacity: 0;
}

.slider-image {
    height: 100%;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slider-image img {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slider-image img.active {
    opacity: 1;
    z-index: 1;
}

.slider-buttons {
    /*position: absolute;*/
    /*top: 90%;
    left: 20%;*/
    /*transform: translateY(-50%);*/
    display: flex;
    justify-content: center;
    width: 100%;
}

.slider-buttons button {
    background: linear-gradient(135deg, #6D6D6D, #2C2C2C);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    margin: 10px;
 }

.slider-navigation:focus {
    outline: none;
}


.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.nav-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6D6D6D, #2C2C2C);
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

svg {
    width: 24px;
    height: 24px;
}


@media (max-width: 950px) {
    
    .slider-content p {
        font-size: 1.1rem;
    }

}

@media (max-width: 640px) {

    main {
    }

    .slider {
        flex-direction: column;
        padding: 0px;
        margin: 70px 20px 120px 20px;
        /*height: auto;*/
        border-radius: 20px;
        /*width: 100%;*/
    }

    .slider-content {
        text-align: center;
        margin: 20px 0;
    }

    .slider-buttons {
        left: 40%;
   }

    .slider-image {
        flex: 2;
    }

    .slider-image img {
        border-radius: 0 0 20px 20px;
        /*max-height: 250px;*/
    }
}

@media (max-width: 480px) {
    
    .nav-projects {
        display: none;
    }

}

@media (max-width: 400px) {
    
    .slider-content p {
        font-size: 1rem;
    }

}

