/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* {
  font-family: 'Kanit', sans-serif;
  transition: all .4s;
}

body {
  background-color: #EAD2AC;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  width: 28rem;
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  background-image: url(image/map.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #e7eaf6;
  position: relative;
}

.card img {
  width: 3rem;
}
.card .title {
  color: #000000;
}
.card .code {
  color: #282A3A;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .4rem;
}
.card .valid {
  color: #735F32;
}
.card .date, .card .id {
  color: #C69749;
}

.toggle {
  width: 4rem;
  height: 4rem;
  position: absolute;
  top: 4rem; right: 4rem;
  font-size: 3rem;
  cursor: pointer;
  background-color: #857cec81;
  border-radius: 1000vmax;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none !important;
}

.circle {
  border-radius: 100vmax;
  padding: 2rem;
}

.circle.red {
  position: absolute;
  right: 1rem; bottom: .5rem;
  background-color: #eb001b;
  opacity: .9;
}
.circle.orange {
  position: absolute;
  right: 3.5rem; bottom: .5rem;
  background-color: #ff5f00;
  opacity: .9;
}