@font-face {
    font-family: 'fredoka';
    src: url('Fredoka-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

a,
a:hover,
a:active {
    text-decoration: none;
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-image: url("background.png");
    background-position: center;
    background-size: cover;

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fullscreenMain {
    justify-content: flex-start !important;
}

#canvas {
    /* Required because https://webglfundamentals.org/webgl/lessons/webgl-and-alpha.html */
    background-color: black;
}

.canvasDecorations {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 15px 20px;
    margin-top: 8px;

    max-height: 710px;
    max-width: 1100px; 
}

.expandedCanvas {
    max-height: 100%;
    max-width: 100%;
    height: 100%;
    width: 100%;
}


.framed {
    border-image-source: url("frame.png");
    border-image-slice: 21;
    border-image-repeat: round;
    border-image-width: 22px;
    border-image-outset: 8px;
    border-radius: 8px;
}

#loadingContainer {
    text-align: center;
    position:relative;
}

.fullscreenContainer {
    height: 100%;
    width: 100%;
}


#loadingOverlay {
    height: 100%;
    width: 100%;

    border-radius: 8px;

    background-image: url("pattern_candies.png"), radial-gradient(circle, #27abff 0%, #0d78b5 100%);
    background-repeat: repeat;
    background-size: 22%, auto;
    background-blend-mode: normal;

    position: absolute;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}


#loadingLogo {
    max-height: 50%;
    max-width: 50%;
    width: auto;
    height: auto;
}

#progressBar {
    background-color: rgba(0, 0, 0, 0.2);

    border: solid;
    border-color: white;
    border-radius: 15px;

    width: 56%;
    height: 6%;

    display: flex;
    align-items: center;
}

#progressCursor {
    background-color: white;
    border-radius: 9px;
        
    margin: 4px;

    width: 0%;
    height: 79%;
}

#loadingLabel {
    font-family: "fredoka";
    font-size: 4.5vmin;
    
    color: white;

    padding: 0;
    margin: 0;
    margin-top: -7%;
}

#reviews {
    width: 100%;
    height: 5%;

    position: absolute;
    top: 93%;
    left: 0;

    background-color: rgba(0, 0, 0, 0.53);

    overflow: hidden;

    display: flex;
}

#reviews_scroll {
    display: flex;
    flex-direction: row;
    gap: 20px;

    animation: ticker 15s infinite linear;
}

@keyframes ticker {
  100% {transform: translateX(-100%); }
}

.review {
    color: white;

    font-family: "fredoka";

    padding: 0;
    margin: 0;
    height: 100%;

    display: flex;
    flex-direction: row;

    white-space: nowrap;
}

.review > img {
    margin-right: 7px;
    margin-top: 6px;
    height: 2.2vh;
}

.review > p {
    margin: 0;
    margin-top: 3px;
    font-size: 2.2vh;
}

#widthAdjust {
    display: flex;
    flex-direction: column;
    height: 100%;
    place-content: center;
    align-items: center;
}

#footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1%;
    padding: 0;
    gap: 1%;

    width: 100%;
    max-width: 1100px;
}

@media (max-width:960px) {
    .hideFooterWhenNoSpace { 
        visibility: hidden;
        height: 0px;
        margin: 0px;
    }
}

@media (max-width:700px) {
    .hideFooterWhenNoSpaceFB { 
        visibility: hidden;
        height: 0px;
        margin: 0px;
    }
}

.footerIcon {
    height: 45px;
    display: block;
}

#footer a { 
    display: block;
    height: 40%;
}

#fullscreenButton {
    display: block;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
}


.left {
    margin-left: auto;
}

.hidden {
    visibility: hidden;
    height: 0px;
    margin: 0px;
}

/******* swal-2 *******/

.swal2-popup .swal2-title {
    font-family: "fredoka";
    font-size: 4rem !important;
    line-height: 7rem;
    height: 5rem;
    color: #fd7d9f !important;
}

.swal2-popup {
    font-family: "Helvetica" !important;
    border-radius: 1rem !important;
}

.swal2-actions button[type=button] {
    background-color: #fd7d9f !important;
    font-family: "fredoka";
    font-size: 2rem !important;
    line-height: 2rem;
}

.swal2-icon.swal2-warning {
    display: none !important;
    color: #ff456a !important;
    border-color: #ff456a !important;
}

#signInWithGoogleContainer {
    padding: 50px;
    background-color: white;
    text-align: center;
    width: 200px;

    position: relative;
}

.downloadError {
    font-family: 'fredoka', sans-serif;
}

.downloadErrorIcon {
    width: 40%;
}

.close {
    border-radius: 50%;
    
    width: 45px;
    height: 45px;

    background-image: url("button_close.png");
    background-size: contain;
    background-color: transparent;
    border: none;

    position: absolute;
}

.closeLogin {
    top: -12%;
    right: -6%;
}

.closePayment {
    top: -19px;
    right: -19px;
}

.modalBlock {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,0.4);

    animation-duration: 0.5s;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

#paymentSelectionContainer {
    padding: 50px;
    background-color: white;
    text-align: center;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
}

#payPalContainer {
    max-height: 70vh;
    overflow-y: auto;
}

#facebookPayLink {
    background-color: blue;
    font-family: 'fredoka', Helvetica, sans-serif;
    padding: 10px;
    color: white;
    font-size: large;
    border-color: black;
    border-style: solid;
    border-width: 1px;
    border-radius: 30px;
    margin-top: 30px;
}

/* ========== Crash Overlay ========== */

#crashOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'fredoka', Helvetica, sans-serif;
}

#crashOverlay.hidden {
    display: none;
}

#crashOverlayContent {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0a2e 100%);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(130, 80, 220, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

#crashOverlayContent h2 {
    margin: 10px 0 5px 0;
    font-size: 1.5em;
    color: #ffcc00;
}

#crashOverlayContent .crashIcon {
    width: 80px;
    height: auto;
}

#crashOverlayContent .crashMessage {
    font-size: 0.95em;
    color: #ccbbee;
    margin-bottom: 15px;
}

#crashOverlayContent .crashDetails {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: left;
    font-size: 0.85em;
    line-height: 1.7;
}

#crashOverlayContent .crashDetails p {
    margin: 2px 0;
    word-break: break-all;
}

#crashOverlayContent .crashDetails .crashValue {
    color: #aaeeff;
    font-family: monospace;
    font-size: 0.95em;
}

#crashOverlayContent .crashHelp {
    font-size: 0.9em;
    color: #dddddd;
    margin: 10px 0 8px 0;
}

#crashOverlayContent .crashContactLink {
    display: inline-block;
    background-color: #5533aa;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1em;
    margin: 6px 0;
    transition: background-color 0.2s;
}

#crashOverlayContent .crashContactLink:hover {
    background-color: #7744dd;
}

#crashOverlayContent .crashReloadLink {
    display: inline-block;
    color: #aaeeff;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 4px;
}

#crashOverlayContent .crashReloadLink:hover {
    color: #ffffff;
}

