/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --yellow-color: #fcc737;
  --orange-color: #f26b0f;
  --pink-color: #e73879;
  --purple-color: #7e1891;

  --main-font: "Pixelify Sans", serif;
}

body {
  min-height: 100vh;
  font-family: var(--main-font);
}

.main-container {
  display: flex;
  justify-content: center;
  min-height: 90vh;
  height: 100%;  
}

.container {
  padding-top: 100px;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: 6em;
  text-align: center;
  background: linear-gradient(
    90deg,
    var(--yellow-color),
    var(--orange-color),
    var(--pink-color),
    var(--purple-color)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.subtitle {
  margin-top: 20px;
  font-size: 2.25em;
  color: var(--orange-color);
  text-align: center;
}

form {
  display: none;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
  width: 50%;
}

.active{
  display: flex;
  transition-property: all;
  transition-duration: 0.3s;
  transition-timing-function: ease-in;

  @starting-style{
    opacity:0;
    transform: translateY(-1rem);
    scale: 1.2;
  }
}

form  label {
  font-size: 1.5em;
  color: var(--orange-color);
  padding: 10px 0 0 10px;
}

form > input {
  height: 30px;
  padding: 10px;
  border: 0.5em solid;
  border-image: linear-gradient(
      15deg,
      var(--yellow-color),
      var(--orange-color),
      var(--pink-color),
      var(--purple-color)
    )
    10;
  outline: none;
  font-size: 1.3em;
  font-family: var(--main-font);
  transition: all 0.6s ease-in-out;
}

form > input:focus {
  border-image: linear-gradient(
      360deg,
      var(--yellow-color),
      var(--orange-color),
      var(--pink-color),
      var(--purple-color)
    )
    10;
  scale: 1.1;
  box-shadow: 5px 5px 100px var(--orange-color);
}

form  button {
  width: 150px;
  height: 50px;
  font-size: 1.5em;
  font-family: var(--main-font);
  border: none;
  background: linear-gradient(45deg, var(--pink-color), var(--yellow-color));
  background-size: 1000%;
  background-repeat: no-repeat;
  cursor: pointer;
  color: white;
  border-radius: 15px;
  align-self: end;
  transition: all 0.6s ease-in-out;
}

form  button:hover {
  background-size: 130%;
  scale: 1.1;
}
.shake-animation {
  position: relative;
  animation: shake 1s linear;
  background-color: red;
}

@keyframes shake {
  0% {
    left: 10px;
  }
  25% {
    left: -10px;
  }
  50% {
    left: 5px;
  }
  100% {
    left: 0px;
  }
}
/* FOOTER SECTION */
footer {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: linear-gradient(
    -45deg,
    var(--yellow-color),
    var(--orange-color),
    var(--pink-color),
    var(--purple-color)
  );
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  color: white;

  transition: all 1s ease-in;

  @starting-style{
    opacity:0;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

footer > p {
  margin-top: 20px;
}

.footer-links{
  display: flex;
  width: 10%;
  min-width: 100px;
  justify-content: space-evenly;
}

.footer-links img{
    width: 20px;
    transition: scale 0.3s ease-in-out;
}
.footer-links img:hover{
  scale: 1.2;
}
/* QRCODE MODAL WINDOW */
.qrcode-window {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.qrcode-container {
  background-color: white;
  height: 500px;
  width: 500px;
  padding: 20px;
  text-align: center;
  border-radius: 25px;
  box-shadow: 10px 10px 50px black;
  position: relative;
  animation: appear 0.3s linear 1;
}
@keyframes appear {
  from {
    top: -20px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.qrcode-container > h2 {
  font-size: 2.25em;
}

#qrcode {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 50px 0;
}

#qrcode > img {
  width: 60%;
  object-fit: contain;
}

#action-block {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn {
  text-decoration: none;
  height: 30px;
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: whitesmoke;
  border-radius: 10px;
  min-width: 100px;
  transition: all 0.3s ease-in-out;
}

.dwn-link {
  background-color: lightgreen;
}

.cp-link {
  background-color: skyblue;
}
.cls-link {
  background-color: lightcoral;
}

.btn:hover {
  scale: 1.1;
}

.dwn-link:hover {
  background-color: green;
}
.cp-link:hover {
  background-color: blue;
}
.cls-link:hover {
  background-color: red;
}

/* ANIMATION APPEAR */
.appearOnLoad{
  transition-property: all;
  transition-duration: 0.6s;
  transition-timing-function: ease-in;
  transition-delay: calc(200ms * var(--i));

  @starting-style{
    opacity:0;
    transform: translateY(-1rem);
    scale: 1.5;
  }
}


/* TABS STYLES */
.tab-buttons{
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  width: 50%;
}

.tab-button{
  width: 150px;
  height: 50px;
  font-size: 2em;
  font-family: var(--main-font);
  border: none;
  background-color: transparent;
  color:var(--pink-color);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-weight: bold;
}

.tab-button::after{
  content: "";
  display: block;
  position: relative;
  top: 10px;
  height: 3px;
  background-color: var(--pink-color);
  width: 0;
  left: 50%;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.activeBtn{
  color: var(--purple-color);
  scale: 1.1;
}

.activeBtn::after{
  content: "";
  display: block;
  position: relative;
  top: 10px;
  height: 3px;
  background-color: var(--pink-color);
  width: 100%;
  left: 0;
}

.tab-button:hover{
  /* background-color: var(--yellow-color); */
  color:var(--purple-color);
  scale: 1.05;
}
.tab-button:hover::after{
  width: 100%;
  left: 0;
}


/* WI-FI QR FORM */
#net-qr-code-tab{
  margin-top: 30px;
  gap:15px
}

form select{
  border: none;
  outline: none;
  background-color: var(--orange-color);
  color:white;
  height:30px;
  font-size: 1em;
  width: 150px;
  margin-left: 10px;
  border-radius: 10px;
  font-family: var(--main-font);
  text-align: center;
}

/* MODAL WINDOW STYLES */
.modal{
  opacity: 0;
  z-index: -1000;
  
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  height: 100vh;
  width: 100%;

  background-color: rgba(0, 0, 0, 0.5);

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(5px);
}

.modal-window{
  background-color: whitesmoke;
  
  min-height: 350px;
  max-width: 400px;
  width: 50%;

  border-radius: 15px;

  padding: 10px;
}

.modal-title{
  font-size: 1.5rem;
  text-align: center;

  margin-top: 10px;
}

.error-title{
  color: var(--pink-color);
  font-weight: 900;
}

.error-description{
  margin-top: 30px;
  text-align: center;
}

.reasons-title{
  margin-top: 30px;
  text-align: center;

  font-weight: bold;
  font-size: 1.5rem;
}

.error-reasons{
  margin: 10px auto;
  list-style:square;
  width:80%;

  line-height: 1.2;
}

.reason{
  margin-bottom: 5px;
}

.modal a {
  cursor: pointer;
  margin: 15px auto;
}

.show-modal{
  opacity: 1 !important;
  z-index: 1000;
}