:root {
    --primary-color: hsl(200, 50%, 50%);
    --complimentary-color: hsl(20, 50%, 50%);   /* These get updated in js */
}

:root {
  transition: --primary-color 0.6s ease-in-out,
              --complimentary-color 0.6s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body {
    background-color: var(--primary-color);
    font-family: 'Old Standard TT', serif;
    color: var(--complimentary-color);
}

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

#dice-container {
    background-color: var(--primary-color);
    color: var(--complimentary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 50%;
    z-index: 999;
}

#name, #about, #contact  {
    background-color: var(--primary-color);
    border-style: dashed;
    border-color: var(--complimentary-color);
    color: var(--complimentary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: default;
}


#name, #about, #contact, #dice-container, svg, body {
  transition: all 0.7s ease-in-out; /* smooth transition */
}

#name {
    font-weight: 700;
    line-height: 0.99;
    border: none;
}

#about {
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

#about p:nth-of-type(2) {
    text-align: left;
    margin-top: 1rem;
}

.icon {
    color: var(--complimentary-color);
}

#dice {
    width: 2rem;
    height: auto;
    cursor: pointer;
    background-color: transparent;
}

#contact {
    justify-content: space-evenly;
}

.no-transition * {
  transition: none !important; /* disable transition initially */
}

@media (max-width: 768px) {
    html, body {
        height: 100%;

    }

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

    #name, #contact, #about {
        width: 100%;
        border: none;
    }

    #name {
        font-size: 15vw;
        flex: 0.3;
    }

    #about {
        padding: 5vw;
        font-size: 9.5vw;
        flex: 0.5;
    }

    #contact {
        flex: 0.2;
    }

    #name, #about {
        border-bottom: 2px dotted var(--complimentary-color);
    }

    #dice-container {
        position: absolute;
    }

    svg {
        width: 7vw;
        height: auto;
    }

    #dice-container {
        position: absolute;
        left: 50%;
        top: 28.5%;
        transform: translate(-50%, -50%);
        padding: 0.5rem;
    }

    #dice {
        width: 5.3vw;
    }
}