/* Stil för temaväxlare */
.theme-switch-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    top: 15px;
    right: 36px;
    z-index: 1000;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 42px;
  order: 1;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 16px;
}

input:checked + .slider {
  background-color: #060f16;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/* Ljus tema (standard) */
[data-theme="light"] body {
  background-color: #f2f6f6;
  color: #333;
}

/* Mörkt tema */
[data-theme="dark"] body {
  background-color: #2B3944;
  color: #f2f6f6;
}
[data-theme="dark"] a {
  color: #f2f6f6;
}
[data-theme="dark"] .timer-part {
  background-color: #0c1820;
}
[data-theme="dark"] .timer-colon {
    color: #f2f6f6;
}
[data-theme="dark"] select {
    background-color: #87a2ab;
}
[data-theme="dark"] .bar {
  background-color: #f2f6f6;
}
[data-theme="dark"] .site-title {
    color: #f2f6f6;
}



/* IKONER I SWITCH */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

#sun-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

#moon-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: lightyellow;
}

#sun-icon {
  display: block;
}

#moon-icon {
  display: none;
}

.theme-switch:checked ~ #sun-icon {
  display: none;
}

.theme-switch:checked ~ #moon-icon {
  display: block;
}





/* Grundläggande stilsättning för hela sidan */

#stopEffectsButton.hide {
    animation: hideButton 1s forwards;
}

@keyframes hideButton {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}


html, body {
      
    text-align: center;
    background-color: #f2f6f6;

  margin: 0;
  padding: 0;
}

/* Grundläggande stil för länkar */
a {
  color: #fe298d; /* Mörkgrå färg */
  text-decoration: none; /* Tar bort understruket */
  position: relative; /* För att positionera den animerade linjen korrekt */
  transition: color 0.3s ease; /* Fade in-effekt för färgändring */
}

/* Stil för länkar vid hover */
a:hover {
  color: #ff69b4; /* Rosa färg vid hover */
}
a:active {
  color: #ff69b4; /* Rosa färg vid hover */
}

/* Lägger till en linje under länken på hover */
a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px; /* Höjd på linjen */
  bottom: 0;
  left: 0;
  background-color: #ff69b4; /* Rosa färg för linjen */
  visibility: hidden;
  transition: all 0.3s ease; /* Fade in-effekt och animering */
}

/* Visar och expanderar linjen vid hover */
a:hover::before {
  visibility: visible;
  width: 100%;
}

/* Stilsättning för huvudrubrik */
h1 {
    font-family: 'Major Mono Display', monospace;
    color: #D07176;
    font-size: 18px;
    margin-bottom: 32px;
    margin-top: 0;
    font-weight: normal;
}

/* Stil för timer-container */
.timer-container {
  display: flex;
  align-items: center;
}

/* Stil för timme och minut på timer */
.timer-part {
    background-color: #2B3944;
    padding: 38px 22px;
    margin-right: 0px;
    color: white;
    border-radius: 27px;
    font-family: 'Major Mono Display', monospace;
    border: solid 1px black;
    border-bottom: 16px solid black;
    box-shadow: 
    -16px 16px 64px rgba(37, 52, 42, 0.2), /* First box-shadow */
    16px 16px 32px rgba(37, 52, 42, 0.2), /* First box-shadow */
    0px 4px 8px rgba(0, 0, 0, 0.6); /* Second box-shadow */
}

/* Tar bort högermarginal för den sista delen av timern */
.timer-part:last-child {
  margin-right: 0;
}
.right {
  border-radius: 25px 25px 32px 10px;
}
.left {
  border-radius: 25px 25px 10px 32px;
}

.timer-colon {
  height: inherit;
  color: #2B3944;
  font-family: 'Major Mono Display', monospace;
}

/* Stil för knappar */


.kokar, .resume  {
  color: white;


  background-image: linear-gradient(-45deg, #ee7752, #e73c7e, #FFA317, #EBD5AB);
  background-size: 400% 400%;
  animation: gradient 3s ease infinite !important;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.is-paused {
  background: radial-gradient(circle, rgba(242,246,246,1) 38%, rgba(183,201,201,1) 99%);
  color: black !important;
}

.button-container {
    margin-bottom: 32px;
}

button {
    font-family: 'Sacramento', cursive;
    font-size: 2.5em;
    background-color: #FFEC82;
    color: black;
    padding: 25px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border: solid 1px #051315;
    border-bottom: 16px solid #051315;
    background: radial-gradient(circle, rgba(255,162,68,1) 0%, rgba(255,183,48,1) 34%, rgba(255,226,94,1) 100%);
    -webkit-transition: border-bottom .3s cubic-bezier(.5,2.5,.7,.7),box-shadow.3s cubic-bezier(.5,2.5,.7,.7) ,margin-top .3s cubic-bezier(.5,2.5,.7,.7);
    -o-transition: border-bottom .3s cubic-bezier(.5,2.5,.7,.7),box-shadow.3s cubic-bezier(.5,2.5,.7,.7) ,margin-top .3s cubic-bezier(.5,2.5,.7,.7);
    transition: border-bottom .3s cubic-bezier(.5,2.5,.7,.7),box-shadow.3s cubic-bezier(.5,2.5,.7,.7) ,margin-top .3s cubic-bezier(.5,2.5,.7,.7);

    box-shadow: 
    -16px 16px 64px rgba(37, 52, 42, 0.2), /* First box-shadow */
    16px 16px 32px rgba(37, 52, 42, 0.2), /* First box-shadow */
    0px 4px 8px rgba(0, 0, 0, 0.6); /* Second box-shadow */
}

/* Effekt när knappen hovras */
button:hover {
    opacity: 1;
    background-color: #FFD482;
    border-bottom: 18px solid #051315;
    margin-top: -2px;
    box-shadow: 
    -16px 16px 64px rgba(37, 52, 42, 0.2), /* First box-shadow */
    22px 22px 32px rgba(37, 52, 42, 0.2), /* First box-shadow */
    0px 5px 9px rgba(0, 0, 0, 0.6); /* Second box-shadow */
}

button:active {
    border-bottom: 4px solid #051315;
    margin-top: 12px;
    box-shadow: 
    -8px 8px 32px rgba(37, 52, 42, 0.2), /* First box-shadow */
    8px 8px 16px rgba(37, 52, 42, 0.2), /* First box-shadow */
    0px 4px 8px rgba(0, 0, 0, 0.6); /* Second box-shadow */
    
}

/* Stil för inaktiva knappar */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #C5C2C7 !important;
    color: #333;
}

/* Stil för pausade knappar */
button:disabled, button.is-paused {
    background-color: #C5C2C7 !important;
    color: #333;
}


/* Stil för rullgardinsmenyn */
select {
  display: block;
  width: 100%; /* Ändra till 100% för att fylla hela select-wrapper */
  background-color: white;
  padding: 16px;
  padding-left: 24px;
  border-radius: 5px;
  font-family: 'Roboto Mono', monospace;
  border: 1px solid #ccc;
  appearance: none;
}

/* Lägg till dessa rader för att styla hover- och fokus-stater */
select:hover {
  border-color: #888;
}

select:focus {
  outline: none;
  border-color: #333;
}
/* Stil för select-wrapper */
.select-wrapper {
  display: block;
  position: relative;
  width: 300px;
  margin: 32px auto;
}
/* Lägg till en pil som pekar nedåt */
.select-wrapper::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 56%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-top-color: #2b3944;
    pointer-events: none;
    border-radius: 4px;
}

/* Stil för timern */
#timer {
    font-size: 3.5em;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    margin: 32px auto;
    margin-top: 0;
}

/* Animering för blinkande bakgrund */
@keyframes blink {
    0%, 100% { background-color: #f2f6f6; }
    50% { background-color: #D07176; }
}
.blink {
    animation: blink 1s ease-in-out infinite;
}

/* Animering för äggikon */
@keyframes eggAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
img.egg {
    width: 100px;
    height: 140px;
    margin: 0 auto 0px;
    animation: eggAnimation 1s ease-in-out infinite;
    animation-play-state: paused;
    display: block;
    margin-bottom: 32px;
}

/* Animering för snurrande objekt */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Animering för pulserande objekt */

label {
  font-family: 'Roboto Mono', monospace;
}
.reset-link {
  font-family: 'Roboto Mono', monospace;
  color: #2b3944;
  text-decoration: none;
}

/* Effekt när knappen trycks på mobil */
button.active-mobile {
    border-bottom: 4px solid #051315;
    margin-top: 12px;
}


/* Animering för blinkande bakgrund med rosa färg */
@keyframes blink-pink {
    0%, 100% { background-color: #f2f6f6; }
    50% { background-color: #D07176; }
}
.blink-pink {
    animation: blink-pink 1s ease-in-out infinite;
}

/* Animering för att låta knappen studsa nedåt */
@keyframes slideDownBounce {
    0% {
        transform: translateY(-100%);
    }
    60% {
        transform: translateY(20%);
    }
    100% {
        transform: translateY(0%);
    }
}

/* Stil för översta informationsraden */
.infoRowTop {
    display: flex;
    align-items: center;
    background-color: transparent;
    text-align: left;
    padding: 16px 0 0 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #A8AFAA;
    margin-bottom: 16px;
    flex-wrap: wrap;
}






/* Stil för COOKIE NOTICE */

#cookieIcon {
  width: 80px; /* Adjust the size of the icon */
  height: 80px; /* Adjust the size of the icon */
}
.cookie-image-container {
    width: 689px !important;
    bottom: 155px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: left;
}


.cookie-notice {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: bottom 1.5s ease-in-out, opacity 3s ease-in-out; /* Combine both transitions here */
}

.cookie-notice.show {
  bottom: 0;
  opacity: 1;
}


.cookie-notice p {
  text-align: left;
  margin: 0 auto;
  padding-bottom: 32px;
  max-width: 616px;
}

.cookie-notice a {
  color: #30FFA0;
  text-decoration: none;
}

.cookie-notice button {
  margin-top: 0;
}

#acceptCookies {
  background-color: #30FFA0;
  color: black;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  margin-bottom: 16px; /* Add this line */
}

#denyCookies {
  background-color: #193943;
  color: #219e7a;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
}

.cookie-buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 0px auto;
    gap: 16px;
}


/**/
.cookie-policy {
  font-family: 'Roboto Mono', monospace;
  max-width: 650px;
  margin: 0 auto;
  padding: 30px;
  line-height: 1.5;
  text-align: left; /* Lägg till denna rad för vänsterjustering */
}

.cookie-policy h1 {
  font-family: 'Sacramento', cursive;
  font-size: 4rem;
  text-align: left;
  margin-bottom: 20px;
}

.cookie-policy h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.cookie-policy p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.cookie-policy a {
  color: #CB516A;
  text-decoration: underline;
}

.cookie-policy a:hover {
  color: #D07176;
}

/* Tillbaka-knappen */
.cookie-policy .back-button {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  margin: 30px 0;
  padding: 10px 20px;
  color: white;
  background-color: #CB516A;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.cookie-policy .back-button:hover {
  background-color: #D07176;
  color: white;
}

/* FOOTER  */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background-color: #0C1820;
    margin-top: 64px;
}
footer a {
  color: #f2f6f6;
}

.infoRowBottom {
    display: flex;
    align-items: center;
    background-color: transparent;
    text-align: left;
    padding: 16px 0 0 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #487a74;
    margin-bottom: 16px;
    flex-wrap: wrap;
    flex-direction: column;
}

.infoRowBottom .infoItem {
  margin: 2px 10px;
  font-size: 12px;
  font-family: 'Roboto Mono', monospace;
}

/* Header styles */
.header-wrapper {
  width: 100%;
  height: auto;
  position: relative;
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: transparent;
    border-bottom: 1px solid #dddddd80;
}

.site-title {
    font-size: 24px;
    margin: 0;
    color: #0C1820;
}

.hamburger {
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 12px 24px 12px 12px;
}

.bar {
  width: 150%;
  height: 5px;
  background-color: #0C1820;
  transition: all 0.6s ease;
  border-radius: 4px;
}

.change .bar1 {
  transform: translateY(7px) rotate(45deg) translateX(9px) rotate(180deg);
}

.change .bar2 {
    opacity: 0;
    transform: rotate(135deg);
    margin-top: 0;
    margin-left: 12px;
}

.change .bar3 {
  transform: translateY(-7px) rotate(-45deg) translateX(9px) rotate(180deg);
}

.dropdown-menu {
  max-height: 0;
  height: 0;
  overflow: hidden;
  position: inherit;
  right: 0;
  left: auto;
  top: 100%;
  background-color: #fff;
  z-index: 100;
  transform: translateY(1px);
  transition: max-height 0.9s ease-in-out;

}

.dropdown-menu a {
    display: block;
    text-decoration: none;
    padding: 24px 16px;
    color: #333;
    font-family: 'Roboto Mono', monospace;
    font-size: 22px;
    border-bottom: 1px #f2f6f6 solid;
}

.dropdown-wrapper {
  overflow: hidden;
  height: 0;
  transition: height 0.9s ease-in-out;
  }

.dropdown-menu a:hover {
  color: pink;
  text-decoration: none;
}
.dropdown-menu  a::before {
  height: 0;
}
.show {
  display: block;
  height: 200px;
}

@media screen and (max-width: 768px) {
  .cookie-buttons {
    flex-direction: column;
    align-items: center;
  }

  #acceptCookies {
    margin-bottom: 0;
  }
  
  .cookie-image-container {
    max-width: 628px !important;
    top: -39px;
    position: absolute;
  }

}
