@font-face {
    font-family: 'Beaufort';
    src: url('../font/Beaufort-Regular.eot');
    src: url('../font/Beaufort-Regular.eot?#iefix') format('embedded-opentype'),
        url('../font/Beaufort-Regular.woff2') format('woff2'),
        url('../font/Beaufort-Regular.woff') format('woff'),
        url('../font/Beaufort-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary-color: #411a0d;
    --secondary-color: #ebc199;
    --dark-color: #34120A;
}

html {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--primary-color);
    overflow: hidden;
    min-height: 95vh;
    font-family: "Inter", sans-serif;
}

.app {
    text-align: center;
    padding-top: 130px;
}

.app .app-logo {
    max-width: 60px;
}

.app .main-title {
    font-size: 40px;
    opacity: 0;
    transition: all 1s;
    text-transform: uppercase;
    padding: 20px 0 20px 0;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: "Beaufort", sans-serif;

    background: linear-gradient(90deg, #F0CC9B, #FAD9A4, #FFF3B6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.main-title.main-title-active {
    opacity: 1;
}

.app .instruction {
    color: var(--secondary-color);
    margin-top: 18px;
}

.app-container {
    width: 229px;
    height: 156px;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 0 3rem 4px rgb(235, 193, 153, .36);
    position: relative;
    text-align: center;
    transition: transform .4s ease;
}

.results-list-wrapper {
    height: 152px;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    background: linear-gradient(36deg, rgba(251,226,201,1) 0%, rgba(235,193,153,1) 61%);
    border: 2px solid var(--secondary-color);

    position: relative;
    box-shadow: -2px 13px 20rem 20px rgba(237, 201, 166, .35);
    border-radius: 2px;
}

.results-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5px; 
    margin: 0;
    height: 142px;
    box-shadow: 
    inset -6px 8px 11px 2px rgba(131, 87, 72, .43),
    -5px 5px 5px 2px rgba(0, 0, 0, .33);
}

.app-container.active {
    transform: scale(1.25);
}

.results-list li {
    color: var(--dark-color);
    display: none;
}

.results-list li h2 {
    margin: 0;
    font-size: 24px;
    text-transform: uppercase;
}

.results-list li img {
    display: inline;
    width: 100px;
    margin-left: 5px;
}


.results-list li .results-list-subtext {
    display: flex;
    flex-direction: column;
    margin: 0;
    align-items: center;
    font-weight: bold;
    margin-top: 5px;
    font-size: 14px;
}

.results-list li .results-list-subtext span {
    display: block;
}

.app-cover-image img {
    width: 272px;
    max-width: 215%;
    transform: translate(-25px, -4px);
    height: 177px;
    object-fit: contain;
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

.app-active .app-cover-image img {
    opacity: 1;
}

.app-cover-image {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transition: transform .4s ease-in-out;
    cursor: grab;
    z-index: 99;
}

.app-cover-image.active {
    transform: rotate(10deg) scale(1.1);
}

.refresh-btn {
    background-color: #441d10;
    display: inline-block;
    color: var(--secondary-color);
    padding: 10px;
    margin-top: 3px;
    font-size: 12px;
    border-radius: 0 0 10px 10px;
    display: inline-flex;
    gap: 10px;
    opacity: 0;
    transition: opacity .4s ease-in-out;
    text-decoration: none;
}

.refresh-btn img {
    width: 10px;
}


/* on load */
#top-box {
    position: fixed;
    top: -43%;
    left: -50%;
    width: 200%;
    max-width: 200%;
    height: 90%;

    z-index: 9;
    background: linear-gradient(90deg, rgba(242, 226, 192, 1) 0%, rgba(218, 177, 90, 1) 8%, rgba(196, 145, 60, 1) 20%, rgba(210, 179, 114, 1) 38%, rgba(224, 201, 153, 1) 50%, rgba(218, 177, 90, 1) 65%, rgba(172, 127, 52, 1) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom bottom;
    background-image: url("../images/gold-back-v3.png");
    transition: transform 1s ease-in-out;
}

#bottom-box {
    position: fixed;
    bottom: -36%;
    left: -50%;
    width: 200%;
    height: 90%;
    max-width: 200%;
    z-index: 9;
    background: linear-gradient(90deg, rgba(242, 226, 192, 1) 0%, rgba(218, 177, 90, 1) 8%, rgba(196, 145, 60, 1) 20%, rgba(210, 179, 114, 1) 38%, rgba(224, 201, 153, 1) 50%, rgba(218, 177, 90, 1) 65%, rgba(172, 127, 52, 1) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top top;
    background-image: url("../images/gold-back-v3.png");
    transition: transform 1s ease-in-out;
}

@media (max-width: 767px) {
    #top-box {
        top: -17%;
        height: 70%;
    }

    #bottom-box {
        bottom: -22.9%;
        height: 70%;
    }
}

#top-box.active,
#bottom-box.active {
    transform: rotate(-20deg);
}

@keyframes sizeCycle {
    0%, 100% {
      transform: scale(.8);
    }
    50% {
      transform: scale(1);
    }
  }
  
  .cycle-text {
    animation: sizeCycle 1.4s infinite;
    -webkit-backface-visibility: hidden;
    font-size: 14px;
  }
