/* MAIN */

body {
  background-color: #000014;
  background-image: linear-gradient(
    #000014 0%,
    transparent 40%,
    transparent 60%,
    #000014 100%
  );
  background-size: cover, 400% 400%;
  background-attachment: fixed;
  color: #aaa3cc;
  animation: gradient 10s ease infinite;
}
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

body, button, h1, h2, h3, h4, h5, p {
  color: #cccccc;
  font-family: "fertigo-pro", serif;
  text-align: center;
  font-weight: normal;
}

.wrapper_machina .headings, 
.wrapper_machina p{
  color: #000;
}

.intro img {
  margin-inline: auto;
}
.p1{
  font-size: 1.2em;
  line-height: 1.5em;
}
.p2{
  margin:revert;
}
p.teaser {
  max-width: 610px;
  margin:0.7em auto 4em auto;
  margin-inline: auto;
  color:#e6e6f2;
}
p.intro {
  max-width: 800px;
  margin:3em auto 4em auto;
  margin-inline: auto;
}
p.urd{
  max-width: 900px;
  margin:2em auto 3em auto;
  margin-inline: auto;
}
p.machina{
  max-width: 900px;
  margin:1em auto 3em auto;
  margin-inline: auto;
}
p.bonus-extra{
  max-width: 800px;
  margin:0em auto 2em auto;
}

main {
  background-position: top center;
  background-size: auto;
  background-repeat: repeat;
}


/* INTERFACE */
#interface {
  margin-block-start:0;
  margin-block-end: 20px;
  justify-content: center;
  align-items: stretch;
  gap:2vh 4vh;
  max-width:1000px;
  width:100%;
}

#interface.teaser{
  max-width:460px !important;
  gap:5vw 4vw;
  margin-top:-5vw;
  background:url(../images/bg-timer.png) top center no-repeat;
}

#interface .timer {
  font-size: 2.7rem;
  color: #f9cd8c;
  font-family: "fertigo-pro", serif;
}
#interface .timer p{
  color: #fff;
  padding-right:0.1em;
}
#interface .timer::before {
  content: 'A Venda começa em';
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  padding-top:2em;
}
#interface .label{
  font-size:clamp(25px, 3vw, 1.8em);
  color: #ffe5b3;
}
#interface.teaser button{
  max-width:440px;
}

#interface a,
#interface button {
  max-width:100%;
}
@media (width < 50rem) {
  #interface .timer {
    font-size: 1.875rem;
  }
  #interface a,
  #interface button {
    max-width: none;
  }
}
#interface button {
  --img: url('../images/button.png');
  display: inline-block;
  padding: 1.3em 16px; 
  color: #fff;
  border: 2px solid transparent; 
  border-image-source: var(--img);
  border-image-slice: 0 2 0 2 fill;
  border-image-repeat: stretch;
  background: transparent; 

  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

@media (hover: hover) {
  #interface button:hover {
    filter: brightness(140%);
    text-shadow: rgb(90, 87, 255) 0 0 25px;
  }
}
/* SECTION */

.container-grid .wrapper_urd{
  background:url(../images/bg-urd.webp) center center;
}

.container-grid .divider {
  grid-column: fluid-start / fluid-end;  
  height: 400px;
  margin-top:4em; 
  background: url(../images/devider.webp) center top no-repeat;
}

.container-grid .bottom {
  grid-column: fluid-start / fluid-end;  
  height:120px;
  background: url(../images/footer.webp) center top no-repeat;
}

@media screen and (max-width:1000px){
  .container-grid .divider {
  grid-column: fluid-start / fluid-end;  
  height: 200px;
  background: url(../images/devider.webp) center top no-repeat;
  background-size: 1000px auto;
  }
}

.container-grid .wrapper_machina{
  grid-column: fluid-start / fluid-end;  
  background:url(../images/bg-machina.webp) top center;
  padding: 0 var(--padding-inline) 3em var(--padding-inline);
}

.reward {
  margin:0 auto;
  display:flex;
  flex-direction: column;
  align-items: center;
}

/* ATTRIBUTES */
.attributes {
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
  width: unset;
  max-width: 800px;
  margin-block: 1.25rem;
  margin-block-end: 1rem;
  gap:0.8em;
}

.wrapper_machina .attributes{
  max-width: 600px;
}

.attributes:has(figure) {
  --grid-column-count: 3;
  max-width: 710px;
}
@media (width >= 50rem) {
  .attributes button:nth-of-type(6) {
    grid-column: 2;
  }
}
@media (width < 50rem) {
  .attributes {
    --grid-column-count: 4;
  }
}
@media (width <= 37.5rem) {
  .attributes {
    --grid-column-count: 3;
    gap: 1.25rem;
  }
}

.attributes [popover]:popover-open {
  width:330px;
  padding: 0.625rem 1rem;
  background: linear-gradient(to bottom, #000115, #000115);
  border: 1px solid;
  border-image: linear-gradient(to bottom, #cdb791, #726043) 1;
}
.attributes [popover]:popover-open h3 {
  color: #ffe5b3;
  font-size:1em;
  text-transform: uppercase;
  text-align: left;
}
.attributes [popover]:popover-open p {
  font-family:sans-serif, arial;
  color: #aea593;
  font-size:0.8em;
  text-align: left;
  line-height:1.4em;
  font-weight: 100;
}

.wrapper_machina .attributes [popover]:popover-open {
  width:330px;
  padding: 0.625rem 1rem;
  background: linear-gradient(to bottom, #e6e6f2, #ededf3);
  border: 1px solid;
  border-image: linear-gradient(to bottom, #cdb791, #726043) 1;
}
.wrapper_machina .attributes [popover]:popover-open h3 {
  color: #000;
  font-size:1em;
  text-transform: uppercase;
  text-align: left;
}
.wrapper_machina .attributes [popover]:popover-open p {
  font-family:sans-serif, arial;
  color: #000;
  font-size:0.8em;
  text-align: left;
  line-height:1.4em;
  font-weight: 100;
}

.attributes figure,
.attributes button {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.attributes button.tooltip {
  width: unset;
  height: unset;
  gap: 0;
  padding-inline: 0.5rem;
}
.attributes button.tooltip img {
  margin: unset;
  width: 100%;
  height: auto;
}
.attributes button p,
.attributes figure p {
  font-size: 0.875rem;
  text-align: center;
  margin-block-start: 0.125;
  text-wrap: balance;
}
.attributes figure p:nth-of-type(1) {
  color: white;
}

.headings {
  text-transform: uppercase;
  color: white;
  font-size: clamp(1.5em, 4vw, 28px);
  letter-spacing: 0em;
  padding:0 80px;
  margin:2em auto 1em auto;
  line-height: 1.2em;
  --inset:0px;
}

.headings::before,
.headings::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 28px;
  background-image: url('../images/att_deco.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (max-width:500px){
  .headings::before,
  .headings::after {
    width: 50px;
  }
  .headings {
    padding:0 60px;
  }
}

.wrapper_machina .headings::before,
.wrapper_machina .headings::after {
  background-image: url('../images/att_deco2.png');
}



/* EXTRAS */
.extra figure img {
  max-width: 25rem;
  background-image: url("../images/extras-bg.webp");
  background-position: center;
  background-size: cover;
}

/* REWARDS */
.rewards {
  margin-block-start: 4rem;
}
.rewards p:nth-of-type(2) {
  margin-block-start: 4rem;
}
.rewards div {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  margin-block: 2.5rem;
  flex-wrap: wrap;
}
.rewards div:last-of-type {
  margin-block-end: 8rem;
}
.rewards figcaption {
  font-size: 0.875rem;
  text-align: center;
  margin-block-start: 1.5rem;
}

/* MODALS */
.modal_close {
  color: white;
}




