body,
html {
  height: 100%;
  margin: 0;
}

a {
  text-decoration: none;
}

.emoji {
  font-size: 2rem;
}
.bg {
  background-image: url("images/spring.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Navigation Bar Styles */

.clock {
  position: fixed;
  bottom: 7px;
  right: 10px;
  background-color: #3daeff;
  border: 2px solid #1f007d;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 16px;
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  z-index: 420;
}

.windows-bar {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 45px;
  background: linear-gradient(to bottom, #2b62db, #0b3765);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  display: flex;
  align-items: center;
}

#startButton {
  background-color: #26921d;
  border: none;
  color: white;
  font-size: 25px;
  text-shadow: 2px 2px #4a4a4a;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  padding: 6px 45px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
}

#startButton:hover {
  background-color: #ff6c22;
}

@media only screen and (max-width: 768px) {
  #startButton {
    font-size: 10px;
    padding: 10px 10px;
    height: 45px;
  }
}
.startMenu {
  display: none;
  position: absolute;
  bottom: 45px;
  background-color: #d3e5fa;
  width: 400px;
  height: 550px;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1;
}
.startMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.startMenu ul li {
  margin-bottom: 25px;
  margin-top: 15px;
}

.grid-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.grid-item {
  padding: 10px;
}

.grid-item.top {
  grid-row: 1;
  grid-column: 1 / span 2;
  background: linear-gradient(to bottom, #2b62db, #0b3765);
  color: white;
  margin-top: -11px;
  margin-left: -11px;
  margin-right: -11px;
}

.grid-item.middle-left {
  grid-row: 2;
  grid-column: 1;
}

.grid-item.middle-right {
  background-color: #8cabff;
  grid-row: 2;
  grid-column: 2;
  margin-right: -11px;
}

.grid-item.bottom {
  grid-row: 3;
  grid-column: 1 / span 2;
  background: linear-gradient(to bottom, #2b62db, #0b3765);
  color: white;
  margin: -11px;
  text-align: end;
}

.counter {
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  color: #00ff00;
  font-size: 16px;
  z-index: 1420;
  margin-left: 15px;
  margin-top: 0 !important;
}

/* Icon Styles */
.icon-container {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
  padding-right: 10px;
  padding-left: 5px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  color: white;
  text-shadow: 1px 1px #4a4a4a;
  cursor: pointer;
  text-align: center;
  overflow: visible;
  padding: 3px;
}

.icon img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
}

.icon span {
  margin-top: -5px;
}

/* Styles for the main iframe container */
.iframe-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background-color: white;
  border: 3px solid #333;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  display: none;
  overflow: hidden;
  z-index: 999;
}

/* Header (top band) for the iframe container */
.iframe-header {
  background-color: #4a4a4a;
  color: white;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
}

/* Close button positioned within the header */
#closeButton {
  background-color: #f100c9;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
}

/* Make iframe fill the container below the headerr */
#websiteFrame {
  display: block;
  width: 100%;
  height: calc(100% - 40px);
  border: none;
}

iframe {
  border: none;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
  z-index: 1;
}

@media only screen and (max-width: 768px) {
  .emoji {
    font-size: 1rem;
  }

  .bg {
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    height: auto;
  }

  .icon {
    position: relative;
    overflow-y: auto;
  }

  .icon img {
    width: 35px;
    height: 35px;
  }

  .clock {
    font-size: 12px;
  }

  .iframe-container {
    width: 90%;
    height: 80%;
  }

  html,
  body {
    min-height: 100vh;
    height: auto;
  }

  .icon-container {
    padding-bottom: 120px;
  }
}
