:root{
  --black:#444;
  --bg:#fff;
  --light-bg:#eee;
  --light-color:#666;
  --border:1px solid rgba(0,0,0,.1);
  --box-shadow:0 5px 10px rgba(0,0,0,.1);
}

*{
  font-family: 'Poppins', sans-serif;
  margin:0; padding:0;
  box-sizing: border-box;
  outline: none; border:none;
  text-decoration: none;
  /* text-transform: capitalize; */
  transition:.2s linear;
}

body.active{
  --black:#fff;
  --white:#222;
  --bg:#262626;
  --light-bg:#333;
  --light-color:#888;
  --border:1px solid rgba(255,255,255,.1);
  --box-shadow:0 5px 10px rgba(0,0,0,.3);
}

#theme-open{
  position: fixed;
  top:100px; right:20px;
  font-size: 40px;
  color:var(--primary); 
  cursor: pointer;
  z-index: 1000;
  animation: rotate 2s linear infinite;
}
@keyframes rotate{
100%{
    transform: rotate(360deg);
}
}

@media (max-width:500px){
  #theme-open{
    top:268px; 
    right:20px;
    font-size: 28px;
  }
}

.themes-container{
  position:fixed;
  top:0; right:-100%;
  background:var(--bg);
  border-left: var(--border);
  height:100vh;
  width:350px;
  z-index: 1000;
  text-align: right;
  padding:20px;
}

.themes-container.active{
  right:0;
}

.themes-container #theme-close{
  margin-top: 80px;
  font-size: 40px;
  color:var(--black);
  cursor: pointer;
}

.themes-container h3{
  text-align: center;
  color:var(--black);
  border-top: var(--border);
  border-bottom: var(--border);
  padding:15px 0;
  margin:20px 0;
}

.themes-container .theme-toggler{
  display:flex;
  align-items: center;
  justify-content: center;
}

.themes-container .theme-toggler span{
  color:var(--light-color);
}

.themes-container .theme-toggler .toggler{
  height:40px;
  width:100px;
  border-radius: 50px;
  background:var(--light-bg);
  position: relative;
  cursor: pointer;
  border:var(--border);
  margin:0 10px;
}

.themes-container .theme-toggler .toggler::before{
  content:'';
  position: absolute;
  top:5px; left:5px;
  height:28px;
  width:28px;
  border-radius: 50%;
  background:#fff;
  transition:.2s linear;
}

.themes-container .theme-toggler.active .toggler::before{
  left:65px;
}

.themes-container .theme-colors{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap:15px;
}

.themes-container .theme-colors .color{
  border-radius: 5px;
  height:50px;
  width:50px;
  cursor: pointer;
}

.themes-container .theme-colors .color:hover{
  opacity: .5;
}

.container{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  margin:10px;
  min-height: 100vh;
}

.container .content{
  background: var(--bg);
  border-radius: 5px;
  padding:20px;
  box-shadow: var(--box-shadow);
  border:var(--border);
  text-align: center;
  width:400px;
}

.container .content img{
  width:100%;
  margin-bottom: 10px;
  border-radius: 5px;
}

.container .content h3{
  color:var(--black);
  font-size: 25px;
}

.container .content p{
  color:var(--light-color);
  font-size: 15px;
  line-height: 2;
  padding:10px 0;
}

.container .content .btn{
  margin-top: 10px;
  display: inline-block;
  border-radius: 5px;
  padding:10px 30px;
  color:#fff;
  background: var(--primary);
  font-size: 17px;
}

.container .content .btn:hover{
  opacity: .8;
  letter-spacing: 1px;
}

/*----- scroll up START -----*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  background-color: var(--primary);
  border-radius: .25rem;
  padding: .45rem;
  opacity: 9;
  z-index: 10;
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--primary);
  opacity: 1;
}

.scrollup__icon {
  color: #fff;
  font-size: 2rem;
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 5rem;
}
/*----- scroll up END -----*/