@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@300..700&display=swap');

.unspoken-word {
    opacity: 0;
}

.spoken-word {
    opacity: 1;
}

p {
    font-family: "DM Serif Text",serif;
    color: #fdf;
    font-weight: 200;
    font-size: 24px;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
}

.gold-text {
    color: #e6e;
    font-weight: 900;
}

.silver-text {
    color: #989;
    font-style: italic;
}


@keyframes animatedBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 200px 0;
    }
}

html, body {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #000;
    transition: background-color 1s ease-in-out;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/fortune/spin.png");
    animation: animatedBackground 10s infinite linear;
    opacity: 0.4;
    z-index: 1;
}

#tortbox {
    width: max-content;
    margin: auto;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.text-bubble-container {
    margin: 0 auto;
    width: max-content;
    white-space: nowrap;
}

.text-bubble {
    background-color: #1016;
    width: calc(80vw - 250px);
    min-height: 120px;
    border-radius: 20px;
    padding: 20px;
    margin-right: 45px;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.text-bubble:after {
	content: '';
	position: absolute;
	right: 0;
	top: 80px;
	width: 0;
	height: 0;
	border: 30px solid transparent;
	border-left-color: #1016;
	border-right: 0;
	margin-top: -15px;
	margin-right: -30px;
}

#tortle {
    height: 120px;
    width: auto;
    display: inline-block;
    position: relative;
    vertical-align: top;
    top: 10px;
    left: 10px;
    animation: blur 10s linear infinite;
}

@keyframes blur {
    0%  {opacity:0.9; filter: blur(0);}
    50% {opacity:0.5; filter: blur(0.5px);}
    100%  {opacity:0.9; filter: blur(0);}
}

.button {
    font-family: "DM Sans", sans-serif;
    font-size: 21px;
    background: #4246;
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    flex-grow: 1;
    margin: 0px 5px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hidden {
    opacity: 0;
}

.button-container {
    width: 100%;
    margin: 10px auto;
    display: flex;
    flex-direction: row;
}

#field {
    margin: 0 auto;
    width: 500px;
    height: 500px;
    position: relative;
}

#field-background {
    position: relative;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

.fortune {
    position: absolute;
    font-family: "Noto Emoji", sans-serif;
    font-weight: 500;
    font-size: 60px;
    width: 20%;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.first {
    right: 6.5%;
    top: 44%;
}

.second {
    top: 10%;
    left: 40%;
}

.third {
    left: 6.5%;
    top: 44%;
}

.fourth {
    left: 40%;
    bottom: 10%;
}

.core {
  top: 36%;
  left: 30%;
  width: 40%;
  height: 40%;
  font-size: 120px;
}

@media only screen and (max-width: 800px) {
    #tortle {
        display: none;
    }

    .button-container {
        flex-direction: column;
    }

    .text-bubble {
        width: 90vw;
        margin: 0 auto;
        min-height: unset;
    }

    .text-bubble:after {
        display: none;
    }

    #tortbox {
        width: auto;
    }

    #field {
        width: 90vw;
        height: 90vw;
    }

    .fortune {
        font-size: 10vw;
    }

    .core {
        font-size: 23vw;
    }
}