*{ 
    margin: 0;padding: 0;
    box-sizing: border-box;
    outline: none; border:none;
    text-decoration: none;
    text-transform: uppercase;
}
.container1{
    top:0;
    position: relative;
    overflow: hidden;
    margin-top: 150px;
    margin-left: 18%;
    margin-right: 18%;
    margin-bottom: 1.5%;
    width: 65%;
    height: 600px;
    border-radius: 15px;
    background-color: #f9f0d1;
}
.container1 .slide-container .slide{
    
    min-height: 50vh;
    z-index: -1;
}
.container1 .slide-container .slide img{
    position: absolute;
    top: 0; left:0;
    z-index: 0;
    height:100%;
    width: 100%;
    object-fit: cover;
    animation:fadeIn .4s linear ;
} 
@keyframes fadeIn{
    0%{
        transform: scale(1.2); 
    } 
}
.container1 .slide-container .slide .content{
    min-height: 100vh;
    display: flex;
    flex-flow: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.178);
    z-index: 0;
}
.container1 .slide-container .slide h5{
    font-size: min(30em,4.5vh);
    color: white;
    text-shadow: 0 5px  7px rgba(0, 0, 0, 0.374);
    z-index: 0;
    animation:animate 1 linear .4s backwards;
}
.container1 .slide-container .slide p{
    font-family: 'Times New Roman', Times, serif;
    font-size: min(30em,1.9vh);
    padding: 10px;
    border-radius: 15px;
    position: absolute;
    right: 15px;
    bottom: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.681);
    font-weight: lighter;
    max-width: 60%;
    z-index: 1;
    transition: 0.2s;
    animation:right .4s linear ;
}

@keyframes right{
    0%{
        opacity: 0;
        transform: translatex(60px)
    } 
}

.container1 .slide-container{
    display: none;
    transition: opacity 0.5s ease-in-out;
}
.container1 .slide-container.active{
    display: block;
    transition: opacity 0.5s ease-in-out;
}
.container1 #next, 
.container1 #prev{
    position: absolute;
    top:45%;
    z-index: 1;
    background: rgba(255, 255, 255, 0.401);
    color: rgb(255, 255, 255);
    font-weight: lighter;
    height: 60px;
    width: 50px;
    line-height: 55px;
    font-size: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.4s;
}
.container1 #next{
    right:0;
    border-radius: 20px 0px 0px 20px;
}
.container1 #prev{
    left:0;
    border-radius: 0px 20px 20px 0px;
}
.container1 #next:hover{
    right:0;
    width: 60px;
    border-radius: 20px 0px 0px 20px;
}
.container1 #prev:hover{
    left:0;
    width: 60px;
    border-radius: 0px 20px 20px 0px;
}


.color-box {
    width: 200px;
    height: 200px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .colorbtns{
    display: flex;
    flex-flow: row;
    background-color: blanchedalmond;
    padding: 4px;
    width: 100%;
    overflow: auto;
    white-space: nowrap;
  }
  .colorbtns a{
    border-radius: 0 15px 0 15px;
    outline: 2px solid rgb(126, 126, 126);
    padding: 10px;
    min-width: 150px;
    min-height: 130px;
    margin: 20px 20px 20px 20px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.282);
  }

  .colorbtns a:hover{
    padding: 5px;
    margin: 10px 20px 30px 20px;
    outline: 3px solid white;
    box-shadow: 2px 12px 5px rgba(0, 0, 0, 0.282);
    cursor: pointer;
  }

  .colorbtns a:focus{
    opacity: 90%;
   }

  .colorbtns a:active{
    opacity: 50%;
    max-width: 20px;
    max-height: 80px;
  }


@media (max-width: 995px){
    .container1{
        margin-left: 10%;
        margin-right: 12%;
        width: 80%;
    }
}
@media (max-width: 775px){
    .container1{
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5%;
        width: 100%;
    }
}
@media (max-width: 500px){
    .container1{
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5%;
        width: 100%;
        height: 400px;
        border-radius: 0;
    }
    .colorbtns{
        display: flex;
        flex-flow: row;
        background-color: blanchedalmond;
        padding: 4px;
        margin-top: 30px;
        margin-bottom: 30px;
        width: 100%;
        overflow: auto;
        white-space: nowrap;
    }
}
@media (max-width: 400px){
    .container1{
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5%;
        width: 100%;
        height: 300px;
    }
    .container1 #next, 
    .container1 #prev{
        top:125px;
        height: 45px;
        width: 30px;
        line-height: 42px;
        font-size: 25px;
    }
}