/*==============================================================================================*/

html {
    scroll-behavior: smooth;
}

/*==============================================================================================*/

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(270deg, #88515f, #a38a89, #7492b1, #34414f);
    background-size: 800% 800%;
    animation: degradaciónFondo 10s ease infinite, slide 3s ease 1;
}
@keyframes degradaciónFondo {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
@keyframes slide {
    from {
    translate: 150vw 0;
    scale: 200% 1;
    }
    to {
    translate: 0 0;
    scale: 100% 1;
    }
}   

/*==============================================================================================*/

.header-info{
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    width: fit-content;
    margin: 0 auto;
    height: 300px;
    align-items: flex-end;
    color: rgb(222, 238, 255);
    font-size: 13px;
}

/*==============================================================================================*/

h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 100px; 
    color: rgb(52, 65, 79);
    height: 150px;
    width: fit-content;
    margin: 0 auto;
    animation-duration: 3s;
    animation-name: slide;
}

/*==============================================================================================*/

h2 {
    color: #3c0e10;
    font-family: Arial, Helvetica, sans-serif;
    width: fit-content;
    margin: 0 auto;
    height: 240px;
}

/*==============================================================================================*/

a{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: rgb(222, 238, 255);
    background-color: #34414f;
    font-size: 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    margin: 0 auto;
    display: block;
    animation: pulse 1.5s ease-in-out infinite;
    padding: 10px 20px;
    
}
@keyframes pulse {
    0% {
    transform: scale(1);
    }
    50% {
    transform: scale(1.03);
    }
    100% {
    transform: scale(1);
    }
}
a:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.568);
}
a:active {
    transform: translateY(1px);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.212);
}

/*==============================================================================================*/

.Space{
    height: 100px;
}

/*==============================================================================================*/

h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgb(222, 238, 255);  
    font-size: 60px;
    display: block; 
    width: fit-content;
    margin: 0 auto;
    height: 200px;
    text-align: center;
}

/*==============================================================================================*/

.palette {
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    height: 160px;
    justify-content: center;
    border-radius: 15px;
}

/*==============================================================================================*/

.color {
    color: #c9cad3;
    padding: 20px;
    margin: 5px;
    text-align: center;
    border: 2px solid #c9cad3;
    border-radius: 15px;
    flex: 1;
}

/*==============================================================================================*/

label{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: rgb(222, 238, 255);
    font-size: 25px; 
    border-radius: 5px;
    display: block; 
    width: fit-content;
    margin: 0 auto;
}

/*==============================================================================================*/

select {
    width: 150px;
    padding: 10px 12px;
    background-color: #88515f;
    color: rgb(222, 238, 255);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    outline: 2px solid transparent;
    display: block;
    margin: 0 auto;
}
select:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 12px rgba(0,0,0,0.3);
}
select:active {
    box-shadow: 0px 0px 0px 2px rgba(136, 81, 95, 0.4);
}

/*==============================================================================================*/

button {
    height: 100px;
    padding: 10px 20px;             
    color: rgb(222, 238, 255);
    border: none;
    border-radius: 20px;
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.226);
    transition: all 0.5s ease;
    display: block; 
    width: fit-content;
    margin: 0 auto;
    background: linear-gradient(270deg, #2f64aa, #771717, #b35d61, #254786);
    background-size: 500% 500%;
    animation: degradaciónBoton 6s ease infinite;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.568);
}
button:active {
    transform: translateY(1px);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.212);
}

    @keyframes degradaciónBoton {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/*==============================================================================================*/

.toggle {
    position: relative;
    width: 170px;
    height: 45px;
    border: 2px solid #c9cad3;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    font-family: system-ui;
    margin: 20px auto;
}
.toggle input {
    display: none;
}
.toggle label {
    flex: 1;
    text-align: center;
    z-index: 2;
    cursor: pointer;
    font-size: 16px;
    color: rgb(19, 27, 34);
    transition: 0.2s;
}
.slider {
    position: absolute;
    width: 50%;
    height: 80%;
    background: rgb(52, 65, 79);
    border-radius: 20px;
    left: 5px;
    transition: 0.3s ease;
}
#hex:checked ~ .slider {
    left: 5px;
}
#hsl:checked ~ .slider {
    left: 90px;
}
#hex:checked ~ label[for="hex"],
#hsl:checked ~ label[for="hsl"] {
    color: rgb(222, 238, 255);
}

/*==============================================================================================*/

@media (max-width: 768px) {
    h1 {
        font-size: 50px;
        height: auto;
    }
    h2 {
        font-size: 20px;
        height: auto;
    }
    h3 {
        font-size: 30px;
        height: auto;
    }
    .color {
        font-size: 14px;
        padding: 10px;
    }
    button {
        font-size: 20px;
        height: auto;
        padding: 10px;
    }
    .toggle {
        width: 140px;
        height: 40px;
    }
    select {
        width: 120px;
    }
}
