/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  /*
    5. Improve media defaults
  */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /*
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /*
    8. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

/* roboto-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-500 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-v30-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

body {
    font-family: Roboto !important;
}

.hidden {display: none;}

section {
    width: 70vw;
    min-width: 500px;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 50px;
    position: relative;
}

section a.newlink, #generateqr{
  
  cursor: pointer;
 
    text-align: center;
    color: #54595f;
    text-decoration: none;
    border: 1px solid #54595f;
    padding: 5px;
    font-size: .7rem;
    font-weight: 100;
    transition: all .1s;
}

.menu, #generateqr {
  position: absolute;
  top: 20px;
  right: 20px;
}

.menu {
  position: sticky;
  top:0px;
  z-index: 22;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 20px;
  background-color: rgba(255,255,255,.9);
}

section > a.newlink:hover, #generateqr:hover {
    background: #54595f;
    color: #fff;
}

.form, .editform {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  text-align: center;
  align-content: center;
  flex-direction: column;
}

.form > div, .editform > div {
  margin-bottom: 20px;
  width: 100%;
  text-align: left;
  font-size: 20px;
  font-weight: 100;
  display: inline-flex;
  align-items: baseline;
}

.form > div  input, .form > div label + select, .editform > div label + select, .editform > div  input {
  width: 100%;
  padding: 10px;
}

.form > div label + input,
.form > div label + select,
.editform > div label + input,
.editform > div label + select {
  width: 80%;
}

.form > div input, .form > div select,  .editform > div select{
  font-weight: 100;
}

.form > div label,.editform > div label {
  width: 20%;
  
}

input[readonly] {
  background-color: #54595f;
    color: #fff;
    
}

#generateqr {
  position: relative;
  align-self: center;
  left: auto;
  top:auto
}

h1 {
    margin: 30px 0 50px;
    font-size: 5rem;
    width: 70%;
    line-height: 100%;
    min-width: 500px;
}

.qrentries {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(1, 100%);
    gap: 40px;
}

.qrentry {
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    padding: 0 20px 20px 20px;
}

h4 {
    background-color: #54595f;
    color: #fff;
    width: calc(100% + 40px);
    margin-bottom: 10px;
    margin-left: -20px;
    padding: 10px;
    font-size: 2rem;
    font-weight: 100;
    position: relative;
    font-weight: 500;
    transition: all .1s;

}

h4 span {
  position: absolute;
  right: 20px;
  opacity: .2;
}

.qrentry:hover h4 {
    background: #bccf00;
    color: #54595f;
}

h4::before{
    content: "tanqr.de/";
    display: inline-block;
    opacity: .2;
    font-weight: 100;
}

.entrygrid {
    display: grid;
    width: 100%;
    grid-template-columns: 60% 30%;
    gap: 10%;

}

.qrcontainer {
    
    display: grid;
    justify-content: center;
}

a {
 
    color: #54595f;
}


a:hover {
    color: #000;
}

.qrcontainer a, input[type="submit"] {
    text-align: center;
    color: #54595f;
    text-decoration: none;
    border: 1px solid #54595f;
    padding: 5px;
    font-size: .7rem;
    font-weight: 100;
    transition: all .1s;
    cursor: pointer;
}

.qrcontainer a:hover, input[type="submit"]:hover {
    background: #54595f;
    color: #fff;
}

.qrcontainer img{
    max-height: 150px;
}

.forms {
  padding: 20px 0;
  margin-top: 20px;
  width: 100%;
  position: relative;
  border-top: 1px solid #e2e2e2;
  display: inline-flex;
  justify-content: flex-start;
}

.forms form{
  margin-right: 30px;
}