
:root{
    --background-color: #2a2724;
    --border-color: rgba(255, 255, 255, 0.4);
    --border: 0px solid var(--border-color);
    --primary-color: #f4c0ff;
    --header-color: #f7e8f0;
    --hueRotate: 0;
}

html, body{
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

body {  
  box-sizing: border-box;
  background: var(--background-color);
  color: var(--primary-color);  
  font-family: "Helvetica Neue", Helvetica, sans-serif;  
  
  display: flex;
  align-items:  center;
  justify-content: center;
  flex-direction: column;
  

  &:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.747) 0%, rgba(149,70,252,0.9) 100%), url(./background.jpg);    
    background-size: cover;
    background-position: center;    
    z-index: -1;
    filter: hue-rotate(var(--hueRotate));
    transition: all 0.25s ease-out;
  }
}

.hofshyContainer{
  position: absolute;
  width: 330px;
  z-index: -1;
  top: calc(50% - 513px);
  left: calc(50% - 438px);
  transform: rotate(-20deg);
}

.hofshy{
  width: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

main {
  width: 570px;
  margin: 33px auto;
  border: var(--border);
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.5);  
  backdrop-filter: blur(25px);  
  -webkit-backdrop-filter: blur(10px);
}

h1 {
  padding-top: 1rem;
  color: var(--header-color);
  font-size: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin: 30px 43px;

  .row1{
    background: url(./ekoengineering_logo.svg);
    background-repeat: no-repeat;
    background-position: left 0px;
    text-align: left;
    height: 37px;
    font-size: 20px;
    padding-top: 12px;
    padding-left: 192px;        

  }
  
  .row2{
    text-align: left;
    font-size: 5.7rem;

  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 5px;
  grid-row-gap: 5px;
  justify-content: space-around;
  width: 30rem;
  aspect-ratio: 1;
  margin: 0 auto;
}

label {
  user-select: none;
  position: relative;   
  border: var(--border);
  border-radius: 15px;
  background-color: var(--background-color);  
  filter: hue-rotate(var(--hueRotate));
  transition: all 0.25s ease-out;
  direction: rtl;  
}

input {
  display: none;
}

input:checked + .mark {      
  background: var(--primary-color);
  color: var(--background-color);
}


.mark {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   
  padding: .2rem;
  border-radius: 12px;
  background: var(--background-color);
  font-size: .9em;
  text-align: center;
  transition: all 0.25s ease-out;
}


.footer{
    filter: hue-rotate(var(--hueRotate));
    transition: all 0.25s ease-out;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    gap: 8px;
    margin: 20px;
}

a, a:visited {
    color: var(--primary-color);
    font-size: small;
    text-decoration: none;
}

a:hover{
    color: color-mix(in srgb, white 50%, var(--primary-color));
}

#qrcode{
    display: none;
    margin: 10px;
}



@media (max-width: 600px){
  .grid { 
    width: 285px
  }
  
  main{
    width: 345px;
    margin-top: 160px;
  }

  h1{
    margin: 10px 25px;

    .row2{
      font-size: 50px;
    }
  }

  .hofshyContainer{
    top: calc(50% - 355px);
    left: calc(50% - 88px);
    transform: rotate(0deg);
  }

  .hofshy{    
    width: 170px;    
  }

  .footer{
    gap: 2px;
  }

  #cardUrl{
    font-size: 10px;
  }
}



@media print {
    :root{
        --horzShift: 75px;
    }
    
    main{
        position: relative;
        left: var(--horzShift);        
    }
    
    .hofshyContainer{
      left: calc(50% - 438px + var(--horzShift));
    }

    .hofshy{                
        
    }

    #controls{
        display: none;
    }

    #qrcode{
        display: block;
    }

    label .mark {
        background: white;     
        color: black;
    }

}