/* Base responsive styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #196eb4;
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a, a:link, a:visited {
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
}

a:hover {
  text-decoration: underline;
}

h1 {
  color: white;
  margin: 15px 0 0 0;
}

h2, h3, h4, h5, h6 {
  color: #196eb4;
}

li {
  margin-bottom: 14px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
  overflow-x: auto;
}

.how-to-use pre {
  display: inline;
  margin: 0 5px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

/* Header styles */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.logo {
  margin: 8px 15px;
}

.logo img {
  width: 200px;
  height: auto;
}

.title h1 {
  margin: 0;
  text-align: right;
}

/* Main content styles */
main {
  background-color: white;
  color: #1b1b1b;
  padding: 20px 30px;
  border-radius: 5px;
  margin-bottom: 20px;
}

main a {
  color: #1b1b1b;
  text-decoration: underline;
}

main a:hover {
  color: #1b1b1b;
  text-decoration: none;
}

/* Distribution boxes */
.distro-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.distro-box {
  background-color: white;
  flex: 1 1 300px;
  max-width: 350px;
  margin-bottom: 20px;
}

.distro-cell {
  background-color: lightblue;
  text-align: center;
  padding: 15px;
}

.distro-cell h2 {
  margin-top: 0;
}

.distro-cell a {
  white-space: nowrap;
  color: #196eb4;
  font-weight: bold;
}

.distro-cell pre {
  white-space: nowrap;
  overflow-x: auto;
}

.distro-cell img.logo-img {
  margin: 8px 15px;
}

/* Content sections */
section {
  margin-bottom: 30px;
  clear: both;
}

section h2 {
  color: #196eb4;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 20px 0;
}

footer a {
  margin: 0 10px;
}

/* Media queries */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px 0;
  }
  
  header {
    flex-direction: column;
    text-align: center;
    padding: 0 10px 20px 10px;
  }
  
  .title h1 {
    font-size: 1.5rem;
    margin-top: 10px;
    text-align: center;
  }
  
  .distro-box {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  main {
    padding: 15px;
    border-radius: 0;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  footer {
    padding: 20px 10px;
  }
  
  footer small {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  footer a {
    margin: 10px 0;
  }
  
  footer small span {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .distro-box {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

/* Debian-specific styles */
.debian-logo {
  float: right;
  margin: 0 0 20px 20px;
  max-width: 100px;
}

.version-selector {
  margin: 20px 0;
}

.version-btn {
  display: inline-block;
  padding: 6px 16px;
  margin: 0 4px 8px 0;
  border: 2px solid #196eb4;
  background: white;
  color: #196eb4;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
}

.version-btn.active {
  background: #196eb4;
  color: white;
}

.version-btn:hover {
  background: #1280d0;
  color: white;
}

.instructions tt {
  background: #ddd;
  padding: 2px 5px;
}

.instructions ol {
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 18px;
}

.disclaimer {
  margin-top: 30px;
  font-style: italic;
  color: #666;
}

@media (max-width: 768px) {
  .debian-logo {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
  }

  .version-btn {
    padding: 8px 12px;
    font-size: 13px;
    margin: 0 2px 6px 0;
  }

  .instructions tt {
    font-size: 12px;
    word-break: keep-all;
  }
}

@media (max-width: 480px) {
  .version-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 8px 0;
  }
}
