* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*:focus {
  outline: none;
}

body {
  font-family: "VT323", monospace;
  font-size: 30px;

  background-color: gainsboro;
}

body::-webkit-scrollbar {
  display: none;
}

a {
  color: black;
}

h3 {
  font-weight: normal;

  margin-bottom: 6px;
}

ul {
  margin-left: 1rem;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;

  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.costco-red {
  color: rgb(227, 42, 54);
}

.costco-blue {
  color: rgb(0, 96, 169);
}

.dia-white {
  color: rgb(255, 255, 255);
}

.hide {
  display: none;
}

.transparent-background {
  background-color: transparent;
  box-shadow: none;
}

#main-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  width: 100wh;
}

#site-header {
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: gainsboro;
}

#header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 344px;

  border-bottom: 2px solid gray;
}

.title {
  font-size: 60px;
}

.info-title {
  font-size: 52px;
}

#info-button {
  font-family: "VT323", monospace;
  font-size: 55px;

  width: 30px;
  height: 60px;

  cursor: pointer;

  color: black;
  border: none;
  background: none;
}

#stat-button {
  font-size: 30px;

  width: 30px;
  height: 60px;

  cursor: pointer;

  border: none;
  background: none;
}

#site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 2px solid gray;
  background-color: gainsboro;
}

#database-link {
  margin-left: 12px;
}

#dev-name {
  margin-right: 12px;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf;
}

@media screen and (max-height: 900px) {
  #image-container {
    width: 275px;
    height: 275px;
  }

  #product-info {
    width: 275px;
  }
}

@media screen and (max-height: 850px) {
  #image-container {
    width: 250px;
    height: 250px;
  }

  #product-info {
    width: 250px;
  }
}

@media screen and (max-height: 825px) {
  #image-container {
    width: 225px;
    height: 225px;
  }

  #product-info {
    width: 225px;
  }

  #site-footer {
    font-size: 24px;
  }

  #game-stats {
    font-size: 24px;
  }
}

@media screen and (max-height: 785px) {
  #image-container {
    width: 200px;
    height: 200px;
  }

  #product-info {
    width: 200px;
  }
}

@media screen and (max-height: 760px) {
  #image-container {
    height: 175px;
  }

  #product-image {
    height: 175;
  }

  #product-info {
    font-size: 20px;
  }
}

@media screen and (max-height: 725px) {
  #image-container {
    height: 150px;
  }
}

@media screen and (max-height: 700px) {
  #image-container {
    height: 125px;
  }
}

@media screen and (max-height: 675px) {
  #info-card {
    margin-top: 20px;
  }
}

.footer-center {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  line-height: 1.1;
  overflow: hidden;
  word-wrap: break-word;
}

.footer-center .full-text {
  display: block;
}

.footer-center .short-text {
  display: none;
}

/* celu */
@media screen and (max-width: 400px) {
  .footer-center .full-text {
    display: none;
  }
  
  .footer-center .short-text {
    display: block;
    font-size: 20px;
  }
  
  #site-footer {
    font-size: 24px;
    padding: 6px 8px;
    gap: 6px;
  }
}

@media screen and (max-width: 360px) {
  .footer-center .short-text {
    font-size: 18px;
  }
  
  #site-footer {
    font-size: 22px;
  }
}

@media screen and (max-width: 320px) {
  #site-footer {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 8px;
    font-size: 20px;
  }
  
  .footer-center .short-text {
    font-size: 16px;
  }
}
/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-overlay.show {
  display: flex;
}

.popup-content {
  background-color: white;
  border: 4px solid rgb(227, 42, 54);
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: popupAppear 0.3s ease-out;
}

@keyframes popupAppear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-title {
  color: rgb(227, 42, 54);
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: normal;
}

.popup-text {
  color: #333;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 25px;
}

.popup-button {
  background-color: rgb(227, 42, 54);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 28px;
  font-family: "VT323", monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  font-weight: normal;
}

.popup-button:hover {
  background-color: rgb(200, 30, 40);
  transform: scale(1.05);
}

.popup-button:active {
  transform: scale(0.95);
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .popup-content {
    padding: 20px;
    max-width: 85%;
  }

  .popup-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .popup-text {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .popup-button {
    padding: 10px 30px;
    font-size: 24px;
  }
}
