/* General */
body {
  margin: 0;
  background-color: #000000;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: #290101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 8%;
}

/* Footer */
.site-footer {
  margin-top: 50px;
  padding: 20px 0;
  background-color: #460d0d;
  text-align: center;
}

.copyright p {
  font-size: 14px;
  color: #ffffff;
  margin: 0;
}

/* Container for the logo and text */
.logo-container {
  display: flex;
  align-items: center;
}

.minigame {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: end;
}

.listofgames {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 15%;
  height: auto;
  display: block;
}

.logo-text {
  font-weight: bold;
  font-size: 40px;
  font-family: "Rubik Wet Paint", system-ui;
  font-weight: 400;
  font-style: normal;
  color: #e61414;
  display: flex;
}

/* All links for the pages */
a {
  text-decoration: none;
  color: white;
}

/* All h1 - h6 and p styling */
h1 {
  color: rgb(247, 44, 44);
  text-align: center;
  font-size: 50px;
  padding-bottom: -20px;
  font-family: "New Rocker", system-ui;
}

h2 {
  color: rgb(203, 35, 35);
  text-align: center;
  font-size: 26px;
  font-family: "Cinzel Decorative", serif;
}

.intro {
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  padding-top: 2%;
}

/* Animation */
#loading-screen dotlottie-wc {
    width: 300px;
    height: 300px;
    aspect-ratio: 1 / 1;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    transform: translateZ(0); 
}

/* Navigation */
.navlist {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 0;
  padding: 15px 0;
  background-color: #460d0d;
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-size: 20px;
}

.navlist li a,
.communitynav li a {
  text-decoration: none;
  color: #ffffff;
  font-size: larger;
  position: relative;
  transition: color 0.3s ease;
  align-items: center;
}

.navlist li a:hover,
.communitynav li a:hover {
  color: #9e1717;
}

/* Homepage*/
.home-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px; 
}

/* Banner Styling */
.banner {
  width: 100%;
  height: 400px;
  background-image: url('../Images/Banner.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 5px solid #460d0d;
  animation: bannerGlitch 1.5s infinite;
}


/* banner glitch animation */
@keyframes bannerGlitch {
  0%   { transform: translate(0); filter: none; }
  20%  { transform: translate(0px, 0px); filter: hue-rotate(40deg); }
  40%  { transform: translate(0px, 0px); filter: hue-rotate(20deg); }
  60%  { transform: translate(0px, 0px); filter: contrast(-10%); }
  80%  { transform: translate(0px, 0px); filter: saturate(100%); }
  100% { transform: translate(0); filter: none; }
}


.welcome-box {
  background-color: #290101;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  padding-bottom: 10px;
}

.info-card {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 30px auto;
  background-color: #460d0d;
  padding: 40px;
  box-sizing: border-box;
  color: white;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 30px;
}

.card-image {
  flex: 0 0 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-text {
  flex: 1;
  color: white;

}

.card-text h2, .card-text h3 {
  text-align: left;
  margin-top: 0;
  color: #e61414;
}

.card-text p {
  font-family: "Quintessential", serif;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 18px;
}

.section-title {
  color: #ffffff;
  font-size: 40px;
  margin-bottom: 20px;
  font-family: "Cinzel Decorative", serif;
}


/* Mini Game */
.minigamebody {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Images/ShopBackground.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #000000; 
}

.lab-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 95%;
  max-width: 1300px;
  margin: 50px auto;
}

.wizard-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.wizard-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  border-color: #72ce4a;
  box-shadow: 0 0 30px #a4dd4e;
}

.ingredients{
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.shelf {
  background: #19151e;
  padding: 30px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border: 5px solid #a9cb76;
  flex: 1;
  height: fit-content;
}

.potion {
  cursor: grab;
  transition: transform 0.2s;
  background-color: #2b2b37;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Make the boxs of the potions squares */
  aspect-ratio: 1 / 1;
  width: 80%;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.potion:hover {
  transform: scale(1.1);
}

.cauldron-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1.5;
}

#status-text {
  font-size: 28px;
  font-weight: bold;
  color: #a9cb76;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Quintessential", serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cauldron {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border: 6px solid #ffffff;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 100%, #1a1a1a, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  color: #ffffff;
}

.cauldron.drag-over {
  border-color: #72ce4a;
  box-shadow: 0 0 30px #a4dd4e;
  transform: scale(1.05);
}

.cauldron.mixing {
  animation: shake 0.5s infinite;
  color: #ffffff;
}

.ui-panel {
  margin-top: 30px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#reset-btn {
  padding: 10px 20px;
  background: #72ce4a;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: black;
}

#reset-btn:hover {
  background: #315f1e;
  color: white;
}

/* Discussion Page */
.playedgames,
.communityfeed {
  margin: 1% 5% 1% 5%;
}

.recentgame {
  margin-left: 3%;
}

.box1 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  border: 0.1px solid #ffffff;
  border-radius: 10px;
}

.headerdescription {
  color: #ffffff;
  text-align: center;
  font-size: 30px;
  font-family: "EB Garamond", serif;
  padding-top: 0.5%;
}

.subheader {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #ffffff;
}

.listofgames {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 3px;
}

.game-info {
  display: flex;
  flex-direction: column;
}

.game-text {
  color: #ffffff;
  font-weight: bold;
}

.subtext,
.togglename {
  color: #ffffff;
  font-size: 13px;
}

.game-img {
  width: 30px;
  height: auto;
  display: block;
}

.search-bar {
  width: 80%;
  background: #101822;
  border: 1px solid #000;
  color: white;
  padding: 2%;
  border-radius: 3px;
}

.activity-feed {
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
}

.feed-tabs {
  border-bottom: 2px solid #2a475e;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  color: #fff;
  font-size: 14px;
}

/* Sorting Toggle */
.sorting-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: #8f98a0;
  margin-right: 5%;
}

.toggle-btns {
  display: flex;
  background: #000;
  gap: 1%;
}

.toggle-text {
  display: inline-block;
  background-color: #e61414;
  padding: 3%;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-size: 15px;
}

/* Guide Grid Styling */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin: 2% 5%;
}

.guide-card {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid #792229;
  display: flex;
  flex-direction: column;
}

.guide-card.large {
  grid-column: span 3;
}

.guide-card.small {
  grid-column: span 2;
}

.card-label {
  background: #381b1b;
  padding: 8px 12px;
  font-size: 14px;
  color: #c90f0f;
}

.card-main {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-flex {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.guide-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #000;
}

.guide-text h3 {
  font-size: 16px;
  color: #fff;
  margin: 0;
  text-align: left;
}

.guide-text p {
  font-size: 12px;
  color: #acb2b8;
  margin-top: 5px;
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #392020;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #66c0f4;
}

.rating, .stats {
  color: #862727;
}


/* Contact Page Section */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1%;
  gap: 0;
}

.contact-image-container {
  flex: 1;
  display: flex;
}

.contact-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-form-container {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-text {
  font-size: 18px;
}

/* --- Styling the Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
}

/* Groups Name and Contact Number on the same row */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  flex: 1;
}

.form-group.full-width {
  flex: none;
  width: 100%;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 14px;
  color: white;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  background-color: #f0f0f0;
  font-family: inherit;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white;
  margin-top: 10px;
}

.checkbox-group label {
  font-size: 16px;
  cursor: pointer;
}

.contact-form textarea {
  resize: vertical;
}

#addressSection {
    display: block;
    width: 100%;
    margin-top: 20px;
    clear: both;
}

#addressSection label {
    display: block;
    margin-bottom: 8px;
}

#addressSection textarea {
    width: 100%;
    min-height: 100px;
    display: block;
    box-sizing: border-box;
}

.submit-button {
  align-self: flex-start;
  padding: 10px 30px;
  background-color: #5f0e0e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 15px;
  color: white;
}

/* Shop for Games Page */
.games {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 3%;
  flex-direction: row;
  justify-content: center;
  margin-left: 5%;
  margin-right: 5%;
}

.gamesdeveloped {
  background-color: #110b01;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2%;
  text-align: center;
  min-height: 600px;
  justify-content: flex-start;
  width: 40%;
  border: 1px solid white;
  border-radius: 5%;
}

.gamepicture {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.download-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80%;
}

/* Individual Button Styling */
.download-btn {
  padding: 10px;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.download-btn:hover {
  transform: scale(1.05);
}

/* Brand specific colors */
.appstore {
  background-color: #292929;
  color: white;
}

.playstore {
  background-color: #34a853;
  color: white;
}

/* Merchandise Main Page */
.productssection {
  max-width: 1200px; 
  margin: 0 auto 40px auto; 
  padding: 0 1%; 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

.product-card {
  border: 1px solid #5b1e1e; 
  border-radius: 5px; 
  overflow: hidden; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.product-image {
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
  display: block; 
}

.product-info {
  background-color: #5f0909; 
  padding: 15px; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  min-height: 100px; 
}

.product-info p {
  margin: 0 0 5px 0; 
  font-size: 20px;
}

.product-name {
  font-weight: bold; 
  color: #ffffff;
}

.product-price {
  color: #ffffff; 
  margin-bottom: 10px;
}

.cartcontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.cartbutton, .seemorebutton, .minigamebutton, .addtocartbutton, .proceedcheckout {
  display: inline-block;
  background-color: #d52f2f;;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  font-family: "Quintessential", serif;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-items: center;
  border-radius: 5px;
}

.cartbutton:hover, .seemorebutton:hover, .minigamebutton:hover, .addtocartbutton:hover, .proceedcheckout:hover {
  background-color: #000000;
  color: #e61414;
  border: 1px solid #e61414;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 20, 20, 0.4);
}

/* Product and review individual pages buttons */
.returnbutton {
  grid-column: 1; 
  grid-row: 1;
  margin: 0 0 10px 0;
  padding: 0;
  text-align: left;
  color: #ffffff;
  display: block;
  font-size: 60px;
}


/* --- Main product detail section --- */
.product-detail-main-section {
  display: grid;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1%;
  gap: 2%;
}

.sketchfab-embed-wrapper {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.product-summary {
  grid-column: 2;
  grid-row: 1 / span 2; 
  padding-left: 10px;
  text-align: left;
}

.product-summary h2 {
  margin-top: 15%;
  text-align: left;
  color: rgb(203, 35, 35);
  font-size: 40px;
}

.description-box {
    background-color: #f0f0f0;
    padding: 20px;
    min-height: 150px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.price {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
}

.product-summary {
    font-size: 20px;
    margin-bottom: 30px;
}

.add-to-cart {
  padding: 15px 30px;
  background-color: #ccc; 
  border: none;
  width: 100%; 
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s;
}

/* Cart Page Styling */
.cart-page-content {
    max-width: 900px;
    margin: 40px auto; 
    padding: 0 5%;
    gap: 25px; 
    text-align: center;
}

.cart-header {
    text-align: left;
    border-bottom: 2px solid #e61414;
    padding-bottom: 15px;
}

/* --- Cart List Styling --- */
.cart-items-list {
    border: 1px solid #460d0d;
    border-radius: 8px;
    background-color: #1a1a1a;
    padding: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 100px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #290101;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-details {
    font-family: "Quintessential", serif;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.3em;
}

.item-subtotal {
    font-weight: 700;
    color: #e61414;
    text-align: right;
    font-size: 1.2em;
    letter-spacing: 0.5px;
}

.cart-summary-box {
    border: 1px solid #e61414;
    border-radius: 12px;
    padding: 30px;
    background: linear-gradient(145deg, #290101, #1a0101);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(230, 20, 20, 0.1);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-family: "Quintessential", serif;
}

.grand-total {
    border-top: 1px solid #e61414;
    margin-top: 15px;
    padding-top: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #e61414;
}

/* --- Buttons --- */
.remove-button {
    background-color: transparent;
    color: #e61414;
    border: 1px solid #5f0e0e;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-self: end;
}

.remove-button:hover {
    background-color: #e61414;
    color: white;
}

.checkout-button {
    width: 100%;
    background-color: #e61414;;
    color: white;
    border: 2px solid #e61414;;
    padding: 20px;
    font-size: 1.4em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkout-button:hover {
    background-color: transparent;
    color: #ff4d4d;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(230, 20, 20, 0.4);
}

/* --- Mobile Responsive --- */
@media (max-width: 496px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 20px 2%;
  }

  .logo {
    margin-bottom: 10px;
    justify-content: center;
  }

  .logo-img {
    width: 50px;
  }

  .logo-text {
    font-size: 40px;
  }

  .logo-container {
    width: 100%;
    justify-content: center;
  }

  .navlist{
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .navlist li a,
  .communitynav li a {
    font-size: 18px;
  }

  .headerdescription {
    margin-left: 3%;
    margin-right: 3%;
  }

  .banner {
  height: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  border-bottom: 2px solid #460d0d;
}

  .info-card {
    flex-direction: column;
    text-align: center;
  }
  .card-text h2, .card-text h3 {
    text-align: center;
    margin-bottom: 0px;
  }

  .box1 {
    grid-template-columns: 1fr;
    margin: 10px;
    padding: 15px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    margin: 10px;
  }

  .guide-card.large,
  .guide-card.small {
    grid-column: span 1;
    margin-right: 3%;

  }

  .playedgames,
  .communityfeed {
    margin: 0 10px;
  }

  .search-bar {
    width: 80%;
  }

  .contact-section {
    flex-direction: column;
    padding: 0 5%;
  }

  .contact-image-container {
    height: 300px;
    margin-bottom: 10px;
  }

  .contact-form-container {
    flex: 1;
    width: 100%;
    padding: 20px 0;
  }

  .form-group {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    display: inline-block;
  }

  .contact-form br {
    display: none;
  }

  .contact-form label {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }

  .submit-button {
    width: 100%;
  }

  .games {
    flex-direction: column;
    gap: 30px;
    margin: 5% 5% 5% 5%;
  }

  .gamesdeveloped {
    width: 100%;
    padding-bottom: 5%;
  }

  .lab-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 10px;
    margin: 10px auto;
  }

  .wizard-area {
    height: auto;
    margin-bottom: -10px;
  }

  .wizard-img {
    max-width: 200px;
    user-select: none;
    -webkit-user-drag: none;
  }

  .wizard-area,
  .cauldron-area,
  .shelf-area {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .cauldron {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .shelf {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 80%;
    max-width: 380px;
    margin: 0 auto;
    padding: 12px;
    gap: 8px;
  }

  .potion {
    aspect-ratio: 1 / 1;
    font-size: 10px;
    padding: 4px;
    width: 85%;
  }

  #status-text {
    font-size: 18px;
    margin: 10px 0;
  }

  .productssection {
    grid-template-columns: 1fr;
  }

  .product-detail-main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5%;
    gap: 15px;
  }

  .returnbutton {
    align-self: flex-start;
    font-size: 40px;
    margin: 10px 0;
  }

  .sketchfab-embed-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .sketchfab-embed-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-summary {
    width: 100%;
    padding-left: 0;
  }

  .product-summary h2 {
    margin-top: 5%;
    text-align: left;
    font-size: 28px;
  }

  .description-box {
    width: 100%;
    box-sizing: border-box;
  }

  .checkout-button{
    width: 60%;
    align-self: center;
  }
  
}
