*{box-sizing: border-box}
img {max-width:100%}
body {font-family: sans-serif}

body {
    padding: 0;
    margin: 0;
    border-top: 6px solid #0e2b67;
    border-bottom: 6px solid #dc5634;
    background: white;
}

h1 {
    color: #0e2b67;
}

hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 2em;
}

footer {
    margin-top: 2em;
    text-align: center;
    color: #555;
}

/* Layout */
.even-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 5px;
}

/* Index */

#container {
    padding: 1em;
}

@media screen and (min-width: 500px) {
    .row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 10px;
    }
}

#qrcodes {
    margin-top:15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

ol {
    padding: 0;
    margin: 0;
    list-style: inside;
}

textarea {
    width: 95%;
}

figure {
    margin: 0;
}
figcaption {
    text-align: center;
}

#template,
#temp {
    display: none;
}

.button {
    background: #dc5634;
    color: white;
    padding: .8em 1em;
    display: block;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #0e2b67;
    border-radius: 999px;
}
.secondary.button {
    background: lightgrey;
    background: linear-gradient(to bottom right, #efefef, lightgrey);
    color: #0e2b67;
}
.button:hover {
    transform: translateY(-2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
.button:active{
    transform: translateY(1px);
}

.card {
    padding: .5em;
    border: 1px solid lightgrey;
    box-shadow: 0 3px 5px -1px lightgray;
    border-radius: 5px;
    margin: 1em;

}
.card .content {
    padding: .5em;
}
.card .content h2 {
    font-size: 1em;
    margin: 0;
}


/* QR showing page */

body.qr {
    background: #f4f4f4;
}

.product {
    text-align: center;
}

.product-image {
    max-width: 100%;
    max-height: 300px;
}

.actions {
    text-align: center;
    margin-bottom: 2em;
    padding: 0 2em;
}

.actions a {
    margin-bottom: .8em;
    display: block;
    position: relative;
    /* height: 2em; */
    /* color: #222; */
    text-align: left;
    padding-left: 2em;
    display: flex;
    justify-content: space-between;
}
.actions a:after {
    content: "→";
    /* position: absolute; */
    right: 0;
    top: 0;
}

.action a:hover {
    background-color: #ddd;
}

.dump {
    display: none;
}

.gs1-videos,
.videos {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
}

.certificates {
  text-align: center;
}

.certificates img {
    width: 100%;
}


.videos {
    /* display: none; */
}
.videos iframe {
    width: 100%;
}


a.top-back {
    display: block;
    text-align: center;
    color: #222;
    text-decoration: none;
}
a.top-back:hover {
    text-decoration: underline;
}


.gs1-social-icons a,
.social-icons a {
    color: #0e2b67;
    text-decoration: none;
    padding: .4em;
    margin: .3em;
    border-radius: 10px;
    display: inline-block;
    transition: all .3s;
}
.gs1-social-icons a:hover,
.social-icons a:hover {
    background: lightgrey;
    /* color: white; */
}