@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500&family=Montserrat:wght@600&display=swap');


body {
  background-color: #1e1e1e;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  main {
    background-size: contain;
  }
}


/* Sidebar */
.sidebar {
  min-width: 50px;
  opacity: 95%;
  top: 0;
  left: 0;
  width: 7%;
  background-color: #787878;
  position: fixed;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: width 0.3s ease;
  border-top-right-radius: 2em;
  border-bottom-right-radius: 2em;
}

.sidebar:hover {
  width: 8%;
}

.sidebar img {
  height: auto;
  max-width: 100%;
  width: 70%;
  display: block;
  padding: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar img:hover {
  opacity: 0.7;
}

.sidebar img:last-child {
  margin-bottom: 10%;
}

/* Sidebar */

main {
  height: 100%;
  width: 100%;
  background-image: url(assets/background1.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

}

h1 {
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  text-align: center;
  margin-top: 0;
  padding: 10%;
  font-size: 300%;
  
}

/* menu */
.menu {
  margin-bottom: 30%;
  
}

.icons {
  width: 7%;
  height: 7%;
  margin: 0;
  transition: transform 0.2s;
  padding-top: 7%;
}

.icons:hover {
  transform: scale(1.2);
}

/* menu */

/* Progress */

/* Resources */
.resources {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.iconpacklabel {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto; 
}

h2 {
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 10%;
  font-size: 300%;
}

/* RGB Colour Mixer */
.container {
  margin-top: 8rem;
  margin-bottom: 3rem;
  font-family: 'DM Sans', sans-serif;
  border-radius: 1em;
  width: 20rem;
  background-color: rgb(50, 50, 50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px 5px rgba(131, 131, 131, 0.5);
  box-sizing: border-box;
  background-image: linear-gradient(45deg, #3a135f, #002f05, #9c6300);
  background-size: 600% 600%;
  animation: gradientAnimation 8s ease infinite;
  margin-bottom: 2rem;
  padding: 1em;
}

  @keyframes gradientAnimation {
    0% {
      background-position: 0% 50%; 
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  
h3 {
  color: white;
  font-weight: bold;
  font-size: xx-large;
}

#color-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px auto;
  border: 2px solid #ffffff;
  border-radius: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
  color: white;
  align-items: center;
  justify-content: center;
}

input[type="range"] {
  width: 100%;
  margin-bottom: 10px;
}

#final-value {
  color: white;
  font-weight: bold;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  font-size: x-large;
}

.copy-btn {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  border-radius: 1em;
  border: none;
  width: 15rem;
  height: 2rem;
  box-shadow: 0 0 10px 5px rgba(131, 131, 131, 0.5);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: 15px;
  text-shadow: 0 0 5px #cacaca; 
  margin-bottom: 5px;
  margin-top: 10px;
}

.resource-button {
  font-family: 'DM Sans', sans-serif;
  background-color: #373737;
  color: #ffffff;
  font-weight: bold;
  padding: 10px 20px;
  margin-bottom: 2%;
  margin-top: 5%;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 5px #9f9f9f, 0 0 5px #fff, 0 0 5px #fff;
}


.p3 {
  font-family: 'Montserrat', sans-serif;
  color: white;
  text-align: center;
  font-size: 15px;
  text-shadow: 0 0 5px #ffffff; 
  margin-bottom: 0;
}

.resource-button:hover {
  background-color: #cdcdcd;
  color: #2b2b2b;
  transition: background-color 0.5s ease;
  transition: color 0.5s ease;
  transition: box-shadow 0.5s ease;
  box-shadow: 0 0 5px #727892, 0 0 5px #ababab, 0 0 5px #676f94;
}

/* CPSTEST */
#cps-counter {
  margin-top: 0;
  color: white;
  font-size: 40px;
  margin-bottom: 20px;
}

#cps-timer {
  color: white;
  font-size: 30px;
  margin-top: 15px;
}

#cps-result {
  font-size: 24px;
  margin-top: 20px;
  color: white;
}

#live-cps {
  color: white;
  font-size: 18px;
  margin-top: 10px;
}

#cps-click-box {
  position: relative;
  max-width: 500px;
  width: 50rem;
  height: 200px;
  margin: 0 auto;
  background-color: #9d9d9d;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

#cps-click-box:hover {
  background-color: #b3b3b3;
}

.cps-ripple {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  animation: rippleEffect 1s ease-out;
}

@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

#cps-buttons {
  font-family: 'DM Sans', sans-serif;
  margin-top: 20px;
}

.cps-h {
  margin-top: 1rem;
  margin-bottom: 0;
  font-family: 'DM Sans', sans-serif;
  color: white;
}

.cps-container {
  box-shadow: 0 0 5px #888992, 0 0 5px #ababab, 0 0 5px #8e919e;
  margin-top: 20px;
  background-color: rgb(66, 66, 66);
  max-width: 1000px;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  padding: 10px;
}


.cps-button {
  font-family: 'DM Sans', sans-serif;
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.cps-button:hover {
  background-color: #377f3b;
}

#cps-reset-button {
  font-family: 'DM Sans', sans-serif;
  border: none;
  background-color: #f44336;
  margin-left: 10px;
  border-radius: 1rem;
  font-size: large;
  width: 5rem;
  height: 2.5rem;
}

#cps-reset-button:hover {
  transition: color 0.3s ease;
  transition: background-color 0.3s ease;
  color: white;
  background-color: #9f1a1a;
}

/* Footer */
.footer-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  max-width: 960px;
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.footer-h {
  font-family: 'Montserrat', sans-serif;
  color: white;
  text-align: center;
  font-size: 15px;
  text-shadow: 0 0 5px #ffffff; 
  margin-bottom: 0;
}


/* Mobile Warning */
@media (max-width: 767px) {
#warning-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #373737;
  z-index: 9999;
}
}

#warning-container h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

#continue-button {
  font-family: 'Montserrat', sans-serif;
  padding: 10px 20px;
  background-color: #004cb7;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  box-shadow: 0 0 10px 5px rgba(131, 131, 131, 0.5);
}

.m-background {
  max-width: 400px;
}