*{

  margin:0;
  padding:0;
   box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg-url: url(./assets/bg-dark2.jpg);
  --stroke-color: rgba(255, 255, 255, 0.5);
  --surface-color: rgba(255, 255, 255, 0.1);
  --text-color: white;
  --switch-bg-url: url(./assets/moon-stars.svg);
  --highlight-color: rgba(255, 255, 255, 0.2);
  --bg-initial: #0e1828;
}

.light {
  --bg-url: url(./assets/bg-light2.jpg);
  --stroke-color: rgba(0, 0, 0, 0.5);
  --surface-color: rgba(0, 0, 0, 0.01);
  --text-color: black;
  --switch-bg-url: url(./assets/sun.svg);
  --highlight-color: rgba(0, 0, 0, 0.2);
  --bg-initial: #e3fbff;
}

body{

background: var(--bg-url)no-repeat center / cover;
height:100vh;
transition:0.5s;

display: flex;
  justify-content: center;
padding-top:50px;
font-family: inter;
}

#initialpage a {

  display:inline;
  padding:8px;
  border-radius: 20px;
  background: var(--bg-initial);
  color: var(--text-color);
  border:2px solid var(--highlight-color);
  font-size: 13px;
  text-decoration: none;
transition:0.3s;
}



#initialpage a:hover{

  font-size:13.5px ;
}

img{
  display:flex;
  margin:auto;
  width: 200px;
  padding-bottom: 15px;
}

h1 {
  color: var(--text-color);
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  padding: 10px 0px;
}



ul{
color:var(--text-color);
  list-style: none;
  width:800px;
  border:1px solid var(--stroke-color);
  border-radius: 20px;
  background:var(--surface-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

ul li{

  font-size: 15px;
  font-weight: 400;
  padding: 10px;
}

#switch {
  position: relative;
  width: 64px;
  margin: 4px auto;
}

#switch button {
  width: 32px;
  height: 32px;
  background: white var(--switch-bg-url) no-repeat center;
  border: 1px solid var(--stroke-color);
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);

  animation: slide-back 0.4s;
}

.light #switch button {
  animation: slide-in 0.4s forwards;
}

#switch button:hover {
  outline: 8px solid var(--highlight-color);
  transition: outline 0.2s;
}

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
}

#social-links {

 

  display: flex;
  justify-content: center;

  gap: 16px;
  padding: 24px 0px;
  font-size: 24px;

  
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--text-color);

  border-radius: 50%;
  transition: background 0.4s;
}

#social-links a:hover {
  background: var(--highlight-color);
}


footer {

  color: var(--text-color);
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  padding-bottom: 50px;
}

@keyframes slide-in {
  from {
    left: 0;
  }
  to {
    left: 52%;
  }
}

@keyframes slide-back {
  from {
    left: 52%;
  }
  to {
    left: 0;
  }
}
/*mobile*/

@media (max-width: 370px) {
  :root {
    --bg-url: url(./assets/bg-darkmobile.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-lightmobile.jpg);
  }

  body {
    height: 252vh;
  }

  h1 {
    width: 250px;
    margin: auto;
  }
  ul {
    width: 250px;
    margin: auto;
  }

  #switch button:hover {
    outline: 0;
    transition: 0;
  }
}

@media ((min-width: 375px) and (max-width: 380px)) {
  :root {
    --bg-url: url(./assets/bg-darkmobile.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-lightmobile.jpg);
  }

  body {
    height: 200vh;
  }

  h1 {
    width: 350px;
    margin: auto;
  }
  ul {
    width: 350px;
    margin: auto;
  }

  #switch button:hover {
    outline: 0;
    transition: 0;
  }
}
@media ((min-width: 390px)and (max-width: 395px)) {
  :root {
    --bg-url: url(./assets/bg-darkmobile.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-lightmobile.jpg);
  }

  body {
    height: 158vh;
  }
  h1 {
    width: 350px;
    margin: auto;
  }
  ul {
    width: 350px;
    margin: auto;
  }

  #switch button:hover {
    outline: 0;
    transition: 0;
  }
}

@media ((min-width: 400px)and (max-width: 420px)) {
  :root {
    --bg-url: url(./assets/bg-darkmobile.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-lightmobile.jpg);
  }

  body {
    height: 182vh;
  }
  h1 {
    width: 350px;
    margin: auto;
  }
  ul {
    width: 350px;
    margin: auto;
  }

  #switch button:hover {
    outline: 0;
    transition: 0;
  }
}

/* desktop */


@media ((min-width: 1280px) and (max-width: 1290px)) {
  :root {
    --bg-url: url(./assets/bg-dark2.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-light2.jpg);
  }
  body {
    height: 155vh;
  }
}
@media ((min-width: 1360px)and (max-width: 1370px)) {
  :root {
    --bg-url: url(./assets/bg-dark2.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-light2.jpg);
  }
  body {
    height: 178vh;
  }
}

@media ((min-width: 1600px)and (max-width: 1900px)) {
  :root {
    --bg-url: url(./assets/bg-dark2.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-light2.jpg);
  }
  body {
    height: 198vh;
  }
}

@media ((min-width: 1920px)and (max-width: 1980px)) {
  :root {
    --bg-url: url(./assets/bg-dark2.jpg);
  }
  .light {
    --bg-url: url(./assets/bg-light2.jpg);
  }
  body {
    height: 115vh;
  }
}