:root {
  --mc-dark-bg: #1d1d1d;
  --mc-card-bg: #2d2d2d;
  --mc-text: #e0e0e0;
  --mc-green: #3c8527;
  --mc-green-hover: #4ca333;
  --mc-border: #000;
  --mc-highlight: #5b5b5b;
}

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

body {
  font-family: 'Press Start 2P', monospace;
  background-color: var(--mc-dark-bg);
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjMWMxYzFjIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSI0IiBoZWlnaHQ9IjQiIGZpbGw9IiMxZTFlMWUiPjwvcmVjdD4KPHJlY3QgeD0iNCIgeT0iNCIgd2lkdGg9IjQiIGhlaWdodD0iNCIgZmlsbD0iIzFlMWUxZSI+PC9yZWN0Pgo8L3N2Zz4=');
  color: var(--mc-text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 4px solid var(--mc-border);
  box-shadow: inset 0 -4px 0 var(--mc-highlight);
}

h1 {
  font-size: 2rem;
  color: #ffaa00;
  text-shadow: 4px 4px 0 #000;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 2rem;
}

.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  margin: 0 auto;
  border: 2px solid #333;
}

.top-ad, .bottom-ad {
  width: 728px;
  height: 90px;
  max-width: 100%;
  overflow: hidden;
}

.main-layout {
  display: flex;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
  width: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 320px;
}

.side-ad {
  width: 320px;
  height: 50px;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.download-card {
  background-color: var(--mc-card-bg);
  border: 4px solid var(--mc-border);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.5), inset 4px 4px 0 var(--mc-highlight);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.download-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

.download-card .desc {
  font-size: 0.7rem;
  color: #bbb;
  margin-bottom: 2rem;
}

.action-container {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mc-btn {
  font-family: 'Press Start 2P', monospace;
  background-color: #727272;
  color: #fff;
  border: 4px solid #000;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.3), inset 4px 4px 0 #9f9f9f;
  padding: 1rem 2rem;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s;
  width: 100%;
  max-width: 300px;
}

.mc-btn:hover {
  background-color: #828282;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.3), inset 4px 4px 0 #afafaf;
}

.mc-btn:active {
  box-shadow: inset 4px 4px 0 rgba(0,0,0,0.3), inset -4px -4px 0 #9f9f9f;
  padding: 1.1rem 2rem 0.9rem;
}

.mc-btn.download-btn {
  background-color: var(--mc-green);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.3), inset 4px 4px 0 #6bd049;
}

.mc-btn.download-btn:hover {
  background-color: var(--mc-green-hover);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.3), inset 4px 4px 0 #7ee85b;
}

.mc-btn.disabled {
  background-color: #333;
  color: #777;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.5), inset 4px 4px 0 #555;
  cursor: not-allowed;
}

.mc-btn.disabled:active {
  padding: 1rem 2rem;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.5), inset 4px 4px 0 #555;
}

/* Progress bar styles */
.progress-container {
  width: 100%;
  max-width: 300px;
  background-color: #000;
  border: 4px solid #555;
  height: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background-color: var(--mc-green);
  width: 0%;
  box-shadow: inset 0 4px 0 #6bd049;
  transition: width 0.1s linear;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  width: 100%;
  text-align: center;
}

.progress-desc {
  font-size: 0.6rem;
  color: #aaa;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 4px solid var(--mc-border);
  box-shadow: inset 0 4px 0 var(--mc-highlight);
  margin-top: auto;
}

.footer-text {
  font-size: 0.6rem;
  color: #666;
  margin-top: 1rem;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: var(--mc-card-bg);
  border: 4px solid var(--mc-border);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.5), inset 4px 4px 0 var(--mc-highlight);
  padding: 2rem;
  max-width: 90%;
  text-align: center;
}

.modal-header h3 {
  font-size: 1rem;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 1.5rem;
}

.modal-ad-container {
  width: 300px;
  height: 250px;
  background-color: #000;
  margin: 0 auto 1.5rem;
  border: 2px solid #333;
}

.modal-action {
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
  }
  
  .sidebar {
    width: 100%;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .content {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .top-ad, .bottom-ad {
    width: 320px;
    height: 50px;
  }
  
  .mc-btn {
    font-size: 0.6rem;
    padding: 0.8rem 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
}
