:root {
    color-scheme: light dark;
}

/* Variables for colors */
:root {
    --font-color: #333333;
    
    --btn-primary-color: black;
    --btn-primary-color-hover: #333;
    --btn-primary-color-font: white;

    --btn-secondary-color: #eee;
    --btn-secondary-color-hover: #ffafaf;
    --btn-color-focus: #fc5f5f;

    --modal-gb-color: #fffe;
}

/* Variables for dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --font-color: #ffffff;
        
        --btn-primary-color: #ffffff;
        --btn-primary-color-hover: #eeeeee;
        --btn-primary-color-font: black;

        --btn-secondary-color: #333333;
        --btn-secondary-color-hover: #ffafaf;
        --btn-color-focus: #fc5f5f;

        --modal-gb-color: rgba(0, 0, 0, 0.5);
    }
}


body {
    width: 100%;
    min-height: 99vh;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overscroll-behavior-y: contain;

    /* Text Styles */
    font-family: Arial, Helvetica, sans-serif;
    color: var(--font-color);
}

:visited {
    color: var(--font-color);
    /* text-decoration: none; */
}

div a {
    color: var(--font-color);
}

.dotmatch__btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .dotmatch__btn-container {
        flex-direction: row-reverse;
        gap: 1em;
    }
}

.dotmatch__btn, .dotmatch__btn-main {
    width: 6em;
    height: 2em;

    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 2em;
    border: 2px solid var(--btn-primary-color);
    font-weight: bold;
    
    font-size: 1em;
    background-color: var(--btn-secondary-color);
    margin-bottom: 1em;

    padding: 1.5em 6em;
    text-wrap: nowrap;
    user-select: none;
}

a.dotmatch__btn, a.dotmatch__btn-main {
    padding: 0.5em 2em;
    width: 8em;
}

.dotmatch__btn:visited {
    color: var(--font-color);
}
.dotmatch__btn:hover {
    background-color: var(--btn-secondary-color-hover);
}
.dotmatch__btn:focus {
    background-color: var(--btn-color-focus);
}

.dotmatch__btn-main {
    color: var(--btn-primary-color-font);
    background-color: var(--btn-primary-color);
}
.dotmatch__btn-main:visited {
    color: var(--btn-primary-color-font);
    background-color: var(--btn-primary-color);
}
.dotmatch__btn-main:hover {
    background-color: var(--btn-primary-color-hover);
    border-color: var(--btn-primary-color-hover);
}
.dotmatch__btn-main:focus {
    background-color: var(--btn-color-focus);
}


/* HTML: <div class="loader"></div> */
.dotmatch__loader {
    min-width: 40px;
    height: 20px;

    width: 60px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#fff 80%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 40%;
    animation: l3 1s infinite linear;
}

.dotmatch__loader-small {
    /* min-width: 20px; */
    /* height: 20px; */

    /* width: 60px; */
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#000000 80%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 40%;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    20%{background-position:0%   0%, 50%  50%,100%  50%}
    40%{background-position:0% 100%, 50%   0%,100%  50%}
    60%{background-position:0%  50%, 50% 100%,100%   0%}
    80%{background-position:0%  50%, 50%  50%,100% 100%}
}
