/* =========================================================
   RealSchool Skateboard Game - cleaned stylesheet
   ========================================================= */

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #383737;
  background-image: url("img/menuBG3.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #e8e8e8;
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

.navtop {
  background-color: #3e3b3b;
  min-height: 60px;
  width: 100%;
  border: 0;
  z-index: 10;
}

.navtop div {
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: 1000px;
  height: 100%;
  min-height: 60px;
}

.navtop img.nav-logo {
  height: 60px;
  width: auto;
  margin-right: 20px;
  align-self: center;
}

.navtop div a {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  text-decoration: none;
  color: #797777;
  font-weight: normal;
}

.navtop div a:hover,
.navtop div a:active,
.navtop div a.active {
  background-color: #3e3b3b;
  color: #ff0000;
  font-weight: bold;
}

.a-hide-text {
  display: inline;
}

/* ---------------------------------------------------------
   Main paint container
   Used by index.html, about.html and download.html
   --------------------------------------------------------- */

.main-content {
  width: calc(100% - 30px);
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 24px;
  box-sizing: border-box;
  
  /* Dunkles, leicht transparentes Schwarz */
  background: rgba(0, 0, 0, 0.85); 
  
  /* Hübsche Abrundung & feiner Rahmen im Skate-Style */
  border-radius: 16px;
  border: 1px solid rgba(14, 250, 226, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  color: #e8e8e8;
  overflow: visible;
  flex: 1 0 auto;
}

.main-content p,
.main-content li,
.main-content blockquote {
  color: #e8e8e8;
  line-height: 1.8;
}

.main-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.35);
  margin: 32px 0;
}

/* Optionaler Inhaltscontainer, falls eine Seite .content verwendet */
.main-content .content {
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */

h1,
h2 {
  color: #0efae2;
  font-weight: bold;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
}

h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  display: block;
}

h3 {
  color: #0efae2;
  font-weight: bold;
  line-height: 1.6;
}

p {
  line-height: 1.7;
}

ul {
  list-style-type: disc;
}

blockquote {
  font-style: italic;
  border-left: 4px solid #0efae2;
  padding-left: 20px;
  color: #cccccc;
}

/* ---------------------------------------------------------
   Download table/cards
   --------------------------------------------------------- */

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

td,
th {
  border: 0;
  empty-cells: hide;
}

td {
  width: 33.333%;
  vertical-align: top;
  padding: 10px;
}

.card {
  height: 100%;
  max-width: 220px;
  margin: auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 2px solid #0efae2;
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 15px rgba(14,250,226,0.35);
  overflow: hidden;
}

.card-body {
  flex: 1 1 auto;
  padding: 16px;
}

.card-actions {
  margin-top: auto;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.card h1 {
    font-size: 44px;
}

.price {
  color: #9b9b9b;
  font-size: 16px;
}

.info {
  color: #0efae2;
  background-color: transparent;
}

.card button,
.d-button {
  width: 100%;
  min-height: 65px;
  padding: 14px 18px;
  border: none;
  outline: 0;
  background-color: #0efae2;
  color: #000000;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  line-height: 1.4;
  border-radius: 0 0 10px 10px;
}

.card button:hover,
.d-button:hover {
  opacity: 0.8;
}

/* ---------------------------------------------------------
   Home / Landingpage helpers
   --------------------------------------------------------- */

.home-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  color: #e8e8e8;
  line-height: 1.8;
  text-align: center;
}

.hero-title {
  color: #0efae2;
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: clamp(20px, 2.6vw, 28px);
  color: #ffffff;
  margin-bottom: 35px;
}

.hero-buttons {
  margin: 35px 0;
}

.hero-buttons a {
  display: inline-block;
  margin: 10px;
  padding: 16px 32px;
  background: #0efae2;
  color: #000000;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.hero-buttons a.secondary {
  background: transparent;
  color: #0efae2;
  border: 2px solid #0efae2;
}

.section-title {
  color: #0efae2;
  margin-top: 60px;
  margin-bottom: 25px;
}

.feature-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.feature-box {
  border: 2px solid #0efae2;
  border-radius: 12px;
  padding: 25px;
  background: rgba(0,0,0,0.55);
}

.feature-box h3 {
  color: #0efae2;
  margin-top: 0;
}

.trailer-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 2px solid #0efae2;
  border-radius: 12px;
  background: #000000;
  margin-top: 25px;
}

.trailer-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid #0efae2;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

footer {
    width: 100%;
    margin-top: 40px;
    padding: 20px 0;

    background: rgba(0,0,0,0.75);
    border-top: 1px solid rgba(14,250,226,0.25);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-media-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-media-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  font-size: 30px;
  color: #0efae2;
  text-decoration: none;
}

.social-media-buttons p {
  margin-top: 12px;
  color: #ff0000;
}

.fa-facebook,
.fa-x-twitter,
.fa-instagram {
  color: #0efae2;
  font-size: 28px;
  padding: 10px;
  background-image: url("img/UI_Wide_Strip.png");
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------------------------------------------------------
   Scrollbar styling
   --------------------------------------------------------- */

html {
  scrollbar-width: thin;
  scrollbar-color: #0efae2 #111111;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: #0efae2;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #38fff2;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  td {
    padding: 12px 0;
  }

  .card {
    max-width: 360px;
  }
}

@media (max-width: 767px) {
  .navtop {
    min-height: 80px;
  }

  .navtop div {
    width: 100%;
    justify-content: center;
    min-height: 80px;
  }

  .navtop img.nav-logo {
    height: 55px;
    margin-right: 8px;
  }

  .navtop div a {
    padding: 0 12px;
    font-weight: bold;
  }

  .a-hide-text {
    display: inline;
  }

  .main-content {
    width: calc(100% - 8px);
    margin: 20px auto;
    padding: 36px 22px;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .home-content {
    padding: 30px 10px 60px 10px;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 300px;
  }

  .social-media-buttons a {
    font-size: 26px;
  }
}
