@import url('https://fonts.cdnfonts.com/css/depixel');
@import url('https://db.onlinewebfonts.com/c/04e986e3ccdc13161f96c47d85d49928?family=Five+Fonts+at+Freddy%27s+Regular');
@import url('https://db.onlinewebfonts.com/c/2d7e955a777af1b72db92888237a1ab1?family=Chicago+12.1');
@import url('https://db.onlinewebfonts.com/c/cf0b115eef741c19e69d34617ca24392?family=Monaco+9');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  height: 100%;
  cursor: url('https://gist.github.com/user-attachments/assets/fb1db2b3-1799-4001-b2df-b83f52577c8e'),
    auto;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(150, 150, 150);
  background-image: radial-gradient(circle, #000000 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

button {
  color: black;
}

button:hover,
li:hover,
#calc-name:hover {
  cursor: url('https://gist.github.com/user-attachments/assets/75d84b70-ab73-4a1e-8da6-6c1b810c2ce4'),
    auto;
}

.flex {
  display: flex;
}

.container {
  display: none;
  position: absolute;
  width: 245px;
  height: 405px;
}

.calculator {
  display: block;
  width: 240px;
  height: 400px;
  border: 1.5px solid black;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 5px 5px black;
}

header {
  width: 100%;
  height: 50px;
  border-bottom: 1.5px solid black;
  padding: 13px 20px;
  background-color: rgb(245, 245, 245);
  justify-content: space-between;
  align-items: center;
}

#close-button {
  width: 15px;
  height: 15px;
  border-radius: 0;
  outline: 1px solid black;
  border-top: 2px solid gray;
  border-left: 2px solid gray;
  border-bottom: 2px solid lightgray;
  border-right: 2px solid lightgray;
  background-color: rgb(225, 225, 225);
}

#close-button:hover {
  background-color: white;
}

h3 {
  font-family: 'DePixel';
  font-size: 18px;
  color: rgb(33, 33, 33);
  text-shadow: 1px 1px 0 white;
  padding-top: 3px;
}

main {
  padding: 30px;
  width: 100%;
  height: calc(100% - 50px);
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  background-image: radial-gradient(circle, #000000 1px, transparent 1px),
    radial-gradient(circle, #000000 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
}

.display {
  width: 100%;
  height: 17%;
  border: 1.5px solid black;
  text-align: right;
  align-content: center;
  padding: 10px;
  font-size: 30px;
  font-family: 'DePixel';
  background-color: white;
}

.buttons {
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.row {
  height: 20%;
  justify-content: space-between;
}

.button {
  width: 20%;
  height: calc((240px - 60px) / 5);
  background-color: transparent;
  border: 1.5px solid black;
  box-shadow: 3px 3px 0 black;
  font-size: 15px;
  font-family: "Five Fonts at Freddy's Regular";
  padding: 6.5px 0 0 1.6px;
  background-color: rgb(240, 240, 240);
}

.button:hover {
  background-color: white;
}

.button:active {
  box-shadow: 2px 2px 0 black;
  transform: translate(1px, 1px);
}

#icon {
  position: absolute;
  top: 45px;
  left: 15px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

#calc-icon {
  position: relative;
  right: 2px;
  width: 60px;
  height: 60px;
  background-color: rgb(240, 240, 240);
  background-color: white;
  background-image: radial-gradient(circle, #000000 1px, transparent 1px),
    radial-gradient(circle, #000000 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  border-radius: 10px;
  border: 1px solid black;
  box-shadow: 3px 3px 0 black;
  padding: 2px 2px;
  column-gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.icon-in-icon {
  font-family: 'depixel';
  font-size: 14px;
  background-color: rgb(240, 240, 240);
  padding-top: 3px;
  width: 35%;
  height: 35%;
  border-radius: 3px;
  border: 1px solid black;
  box-shadow: 2px 2px 0 black;
  text-align: center;
  align-content: center;
  letter-spacing: -2px;
}

.icon-in-icon:nth-child(2),
.icon-in-icon:nth-child(3) {
  padding-top: 2px;
}

#calc-name {
  font-family: 'Monaco 9';
  font-size: 21px;
  padding: 1px 5px;
  text-align: center;
  border: none;
  border-radius: 0;
  background-color: white;
}

#menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  width: 100%;
  height: 30px;
  padding: 0 20px;
  border-bottom: 1px solid black;
  justify-content: space-between;
  align-items: center;
  font-family: 'Chicago 12.1';
  font-size: 21px;
}

ul {
  list-style: none;
  height: 100%;
  gap: 0px;
}

li {
  height: 100%;
  padding: 0 10px;
  align-content: center;
  text-align: center;
}

li:hover {
  background-color: #000000;
  color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.alert-container {
  position: absolute;
  width: 480px;
  height: 150px;
  justify-content: center;
  align-items: center;
  border: 1px solid black;
  background-color: white;
  z-index: 1000;
}

.alert {
  font-family: 'Chicago 12.1';
  font-size: 20px;
  width: 472px;
  height: 142px;
  padding: 20px 15px 15px 30px;
  border: 2.5px solid black;
  gap: 15px;
}

.alert > img {
  width: 32px;
  height: 32px;
  gap: 15px;
}

#ok-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-family: 'Chicago 12.1';
  font-size: 18px;
  padding: 3px 20px;
  background-color: white;
  border: 1.5px solid black;
  border-radius: 10px;
}

#ok-button:active {
  border-top: 2px solid black;
  border-left: 2px solid black;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
}

@media screen and (max-width: 576px) {
  #date-time {
    display: none;
  }

  #time {
    display: block;
  }
}

@media screen and (min-width: 576px) {
  #date-time {
    display: block;
  }

  #time {
    display: none;
  }
}

@media screen and (max-height: 895px) {
  .calculator {
    position: relative;
    top: 30px;
  }
}
