:root {
  --color-primary: #742CF2;
  --color-secondary: #5B4E73;
  --color-dark-light: #413D48;
  --color-alternative: #A87CF2;
  --color-dark: #2C2833;
  --color-white: #FFFFFF;
  --color-danger: #F25C2C;
  --color-success: #4E736A;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  color: var(--color-white);
  font-family: 'Helvetica', sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--color-dark);
}

/*Header*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 10vh;
  background-color: var(--color-secondary);
}

header .logo{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 100px;
  border: 0;
}

header .logo img{
  width: 100%;
  height: 100%;
}

header .title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

header .title h1 {
  font-size: 30px;
}

header .title svg {
  margin-left: 14px;
  width: 60px;
  height: 60px;
}

/*Main Container*/
main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

/*Footer*/
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 5vh;
  background-color: var(--color-dark-light);
}

footer div {
  display: flex;
  font-size: 14px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

footer div a {
  color: var(--color-white);
  text-decoration: none;
}

footer div a:hover {
  text-decoration: underline;
}

/*Main Menu*/
#mainMenu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#mainMenu a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  background-color: var(--color-secondary);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 10px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

#mainMenu a:hover {
  filter: brightness(1.2);
  transition: all 0.2s ease-in-out;
}

#mainMenu a svg {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

/* QR */
#qrGenerator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1000px;
  height: 600px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#qrResult {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40%;
  height: 100%;
  padding: 20px;
}

#qrImage {
  width: 300px;
  height: 300px;
  background-color: var(--color-white);
  border: 0;
  border-radius: 10px;
}

#qrImage img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.btns-container {
  width: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 0 auto;
}

.btn-download {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 40px;
  border: none;
  background-color: var(--color-alternative);
  color: var(--color-white);
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-download:hover {
  filter: brightness(1.2);
  transition: all 0.2s ease-in-out;
}

.btn-download-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* PDF */
#pdfGenerator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 500px;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

#pdfControls {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/*Notification*/
#notification {
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--color-white);
}

#notification.hide {
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

#notification.show {
  opacity: 1;
  transition: all 0.5s ease-in-out;
}

#notification.success {
  background-color: var(--color-success);
}

#notification.error {
  background-color: var(--color-danger);
}

/*Loader*/

.loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 3px solid var(--color-white);
  border-radius: 50%;
  border-top-color: var(--color-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/*Form*/
form {
  display: flex;
  background-color: var(--color-dark-light);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 60%;
  height: 100%;
}

form label {
  display: block;
  width: 100%;
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
}

form input[type="text"],
form input[type="file"]
{
  color: var(--color-dark);
  font-size: 14px;
  width: 100%;
  height: 40px;
  border: none;
  padding: 10px;
  margin-bottom: 10px;
  background-color: var(--color-white);
}

form input[type="color"]
{
  color: var(--color-dark);
  font-size: 14px;
  width: 100%;
  height: 40px;
  border: none;
  padding: 2px;
  margin-bottom: 10px;
}


form input[type="text"]:placeholder {
  color: var(--color-dark-light);
}

form button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 5px;
  background-color: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
}

@media (max-width: 1000px) {

  header {
    height: 10vh;
  }

  main {
    height: 85vh;
  }

  footer {
    height: 5vh;
  }

  #qrGenerator {
    display: block;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0;
  }

  form{
    width: 100%;
    height: 40%;
  }

  #qrResult {
    width: 100%;
    height: 60%;
  }

  #qrImage {
    width: 190px;
    height: 190px;
  }

  .btns-container{
    margin-top: 10px;
  }

  #notification{
    margin-top: 10px;
  }
  
}