@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap');

:root{
  --base-color: #FFFFFF;
  --text-color: #000000;
  --accent-color: #808080;
}

.darkmode{
  --base-color: #232C33;
  --text-color: #5A7D7C;
  --accent-color: #596475;
}

*{
  margin: 0;
  padding: 0;
  font-family: 'PT Mono';
}

body{
  background-color: var(--base-color);
  transition: background-color 0.4s ease, color 0.4s ease, opacity 0.6s ease;
  opacity: 0;
  
}


body.fade-in{
  opacity: 1;
}


body.fade-out{
  opacity: 0;
}




.clutter{
  font-size: 1.5rem;
  text-align: center;
  margin-top: 167px;
  color: var(--text-color);
}

a{
  color: var(--text-color);
  text-decoration: none;
}

header{
  display: flex;
  align-items: center;
 list-style-type: none;
  height: 65px;
  background-color: var(--base-color);
  color: var(--text-color);
  justify-content: space-between;
  padding: 20px 50px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.email li{
  list-style: none;
  display: inline-block;
  margin: 20px;
}
    
.email li a{
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.67rem;
}

.title{
  font-size: 1.67rem;
  color: var(--text-color);
}

.i{
  font-size: 1.6rem;
  color: var(--text-color);
  animation: flicker 1.5s infinite alternate;
  padding: 20px;
}

@keyframes flicker {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.o{
  color: var(--base-color);
  transition: color 0.4s ease, color 0.4s ease;
  position: fixed;
  bottom: 0px;
  font-size: 5px;
}

#theme-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  background-color: var(--base-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  overflow: hidden; 
}

#theme-switch:active {
  box-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color);
  transform: scale(0.95);
  transition: var(--text-color) 0.4s ease
}

#theme-switch .icon {
  position: absolute;
  fill: var(--text-color);
  transition: transform 0.6s ease, opacity 0.4s ease;
}

#theme-switch .sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#theme-switch .moon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

.darkmode #theme-switch .sun {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

.darkmode #theme-switch .moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.a{
  font-size: 1.8rem;
  align-items: center;
  color: var(--text-color);
  justify-content: center;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.mhm{
  text-align: center;
  color: var(--accent-color);
  position: absolute;
  top: 98%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.random{
  font-size: 1.6rem;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  color: var(--text-color);
} 

.privacy-policy{
  color: var(--accent-color);
}


.cookie-popup {
  position: fixed;
  bottom: -120px;
  left: 0;
  width: 100%;
  background: var(--base-color);
  color: var(--text-color);
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid var(--accent-color);
  font-size: 0.95rem;
  line-height: 1.4;
  z-index: 9999;
  box-sizing: border-box;
  transition: bottom 0.6s ease-in-out, background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Show animation */
.cookie-popup.show {
  bottom: 0;
}

/* Text & layout */
.cookie-popup p {
  margin: 0 auto;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Button styling */
.cookie-popup button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--text-color);
  color: var(--base-color);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookie-popup button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.random{
  font-size: 1.6rem;
}

.random a{
  color: var(--text-color);
  animation: flicker 1.5s infinite alternate;

}


/*Mobile*/
@media (max-width: 600px) {
header {
  flex-direction: column;
  height: auto;
  padding: 10px;
  text-align: center;
}

.title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.email li {
  margin: 10px 0;
  display: block;
}

.email li a {
  font-size: 0.9rem;
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);

}

.clutter {
  font-size: 1.3rem;
  margin-top: 65px;
  padding: 0 60px;
}

center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.links{
  margin-top: -50px;

}
.i{
  font-size: 1.2rem;
  display: block;
  padding: 10px 0;
}


#theme-switch {
  height: 40px;
  width: 40px;
  bottom: 10px;
  right: 10px;
}

.mhm {
  font-size: 0.5rem;
  top: auto;
  bottom: 5px;
  position: fixed;
}

.a{
  font-size: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 1rem;
  margin-top: 50px;
  padding: 0 60px;
  
}


.cookie-popup p {
  flex-direction: column;
  text-align: center;
  }

.cookie-popup button {
  margin-top: 10px;
  width: 100%;
  max-width: 250px;

  }
.cookie-popup button:hover {
  background: var(--text-color);
  transform: scale(1.05);
}

.mhm{
  font-size: 10px;
}

.random{
  font-size: 1rem;
}

.random a{
  color: var(--text-color);
  animation: flicker 1.5s infinite alternate;

}


}

/*tablet*/

@media (min-width: 601px) and (max-width: 1024px) {

header {
  flex-direction: column;
  height: auto;
  padding: 10px;
  text-align: center;
  }

.title {
  font-size: 3.8rem;
  margin-bottom: 10px;
  }

.email li {
  margin: 10px 0;
   display: block;
}

.email li a {
  font-size: 1.7rem;
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);

}

.clutter {
  font-size: 2.5rem;
  margin-top: 60px;
  padding: 120px;
}

center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.i {
  font-size: 2.5rem;
  display: block;
  padding: 10px 0;
}

.links{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  margin-top: 50px;
}


#theme-switch {
  height: 50px;
  width: 50px;
  bottom: 10px;
  right: 10px;
}

.mhm {
  font-size: 1rem;
  top: auto;
  bottom: 5px;
  position: fixed;
 }


.a{
  font-size: 1.67rem;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  
}

.mhm{
  font-size: 1.5rem;
}

}



/*pc*/


@media (min-width: 1025px) {
.clutter {
  font-size: 1.5rem;
  margin-left: 30px;
  margin-right: 30px;
}

.title {
  font-size: 1.67rem;
  }

.email li a {
  font-size: 1.5rem;
  }

.i {
  font-size: 1.6rem;
  }
}

.cookie-popup {
  font-size: 1.2rem;
}

