@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300..800;1,300..800&display=swap');

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   transition: 1s;
   background: #000;
}

.container {
   max-width: 1200px;
   margin: 50px auto;
   border: 7px solid rgba(200, 200, 200, 0.5);
   border-radius: 20px;
   padding: 25px;
   background: rgba(255, 255, 255, 0.5);
   color: #222;
}


header {
   flex-wrap: wrap;
   width: 100%;
   margin-top: 25px;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 20px;
}

h1 {
   font-family: "Nunito";
   font-weight: 500;
   font-size: 60px;
   color: #fafafa;
}

.header-logo{
   max-width: 100px;
}



.rgb-container {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   margin-top: 120px;
}

.rgb {
   flex: 2 1 400px;
}

.color-res {
   flex: 1 1 400px;
   min-height: 200px;
   border: 5px solid #222;
   border-radius: 10px;
   display: flex;
   justify-content: right;
   align-items: end;
   padding: 5px;
   font-size: 14px;
   color: #fff;
   font-family: "Open Sans";
}

.color-container {
   width: 100%;
   display: flex;
   align-items: center;
   gap: 10px;
   margin-top: 15px;
}

.color-label {
   font-size: 20px;
   font-family: "Arial";
}

.color {
   width: 100%;
   -webkit-appearance: none;
   border-radius: 20px;
}

.color::-webkit-slider-runnable-track {
  width: 100%;
  height: 15px;
  background: #ddd;
  border-radius: 20px;
  background: #111;
}

.color::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 5px;
   height: 30px;
   margin-top: -7px;
   background-color: #eee;
   border-radius: 5px;
}

.r::-webkit-slider-runnable-track {
   background: linear-gradient(to right, black, red);
}

.g::-webkit-slider-runnable-track {
   background: linear-gradient(to right, black, green);
}

.b::-webkit-slider-runnable-track {
   background: linear-gradient(to right, black, blue);
}

.color-number {
   font-size: 20px;
   width: 70px;
   background: #111;
   color: #fff;
   padding: 5px;
   outline: 0;
   border-radius: 5px;
   border: 0;
}

.results {
   width: 100%;
   max-width: 300px;
   flex: 1;
}

.res {
   background: #555;
   padding: 10px;
   width: 100%;
   margin-top: 10px;
   max-width: 200px;
   /* display: block; */
   color: #fff;
   font-family: "Consolas";
   cursor: pointer;
   border-radius: 5px;
}

.second {
   display: flex;
   gap: 10px;
   margin-top: 10px;
   flex-wrap: wrap;
}

footer{
   justify-content: center;
   margin-top: 75px;
   display: flex;
   align-items: center;
   gap: 20px
}

.footer-logo{
   max-width: 150px;
   border-right: 1px solid #fff;
   padding-right: 20px;
}
.footer-link{
   font-family: "Open Sans";
   color: #fff;
   text-decoration: none;
   transition: 0.3s;
}
.footer-link:hover{
   background: #000;
   color: #fff;
}