* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root {

  --bg-color: #b897d8;
  --text-color: #000000;
  --header-bg: #4945ba;
  --menu-link-color: #040307;
  --menu-link-hover: #ffffff;
  --button-bg: #6f6aff;
  --button-bg-hover: #5e55c7;
  --button-text: #000000;
  --modal-bg: #b897d8;
  --modal-border: #b897d8;
  --footer-bg: #4945ba;
}

.dark {
  --bg-color: #4f405e;
  --text-color: #ffffff;
  --header-bg: #222131;
  --menu-link-color: #e6e6e6;
  --menu-link-hover: #aa71cc;
  --button-bg: #222131;
  --button-bg-hover: #aa71cc;
  --button-text: #ffffff;
  --modal-bg: #3c2f47;
  --modal-border: #aa71cc;
  --footer-bg: #222131;
}


header {
  background-color: var(--header-bg);
  text-decoration: none;
  height: 10vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-horizontal {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu-horizontal li a {
  margin-right: 30px;
  font-size: 1.4em;
  text-decoration: none;
  color: var(--menu-link-color);
  transition: color 0.3s ease;
}

.menu-horizontal li a:hover {
  color: var(--menu-link-hover);
}
#switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

#switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #aa71cc;
}

input:focus + .slider {
  box-shadow: 0 0 1px #aa71cc;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
.pai {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding-left: 200px;
  padding-top: 150px;
}

.pai button {
  height: 20vh;
  width: 20vh;
  margin-top: 10px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pai button:hover {
  background-color: var(--button-bg-hover);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: var(--modal-bg);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--modal-border);
  width: 80%;
  color: var(--text-color);
}

.close {
  color: var(--text-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: var(--menu-link-hover);
  text-decoration: none;
  cursor: pointer;
}

footer {
  text-align: center;
}

footer > div {
  font-size: 1.5em;
  padding-top: 10vh;
  margin-top: 150px;
  background-color: var(--footer-bg);
  height: 20vh;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}
