@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {

    padding: 0;
    margin: 0;
    color: white;
    font-family: "Nunito", Arial, Helvetica, sans-serif;

}

body{

    background-color: hsl(216, 28%, 7%);

}

.main-content{

    height: calc(100vh - 9em);

    margin: 3em 2em;

}

.center{
    display: flex;
    justify-content: center;
}

.absolute-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.header{
    width: 100%;
    height: 10%;
}

.tool-bar {

    display: flex;
    justify-content: space-evenly;

    border-bottom: 2px solid hsl(214, 25%, 11%);

    padding: 0 1em;

}

.tool-bar .menu {

    display: flex;
    align-items: center;

    gap: .2em;

    min-width: 30em;

}

.tool-bar .menu button {

    background-color: hsl(132, 59%, 33%);

    border: none;
    width: 8em;
    height: 2em;
    border-radius: .3em;

    cursor: pointer;

}

.tool-bar .menu button:hover{
    background-color: hsl(130, 56%, 36%);
} 

.tool-bar .sync {
    display: flex;

    gap: .5em;

    width: fit-content;
    min-width: 10em;
}

.tool-bar .sync svg {
    display: none;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

#last-saved {

    font-size: .6em;

    margin-right: 3em;

    font-style: italic;
    color: rgb(171, 168, 168);

}

.spin-annimation {
    animation: spin 0.8s ease-in-out;;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.main{
    width: 100%;
    height: 70%;
}

.stats{
    width: 100%;
    height: 20%;
}

.stats p{

    font-size: 1.4em;
    font-weight: bold;

}

footer{
    height: 3em;
    background-color: hsl(214, 25%, 11%);

}

footer .spacer {
    margin: 0 .5em;
}

footer p{

    font-size: .7em;

}

textarea{

    height: 90%;
    width: 90%;

    background-color: hsl(214, 25%, 11%);
    resize: none;
    border: none;
    outline: none;

    padding: .5em;

    line-height: 1.6em;

}

/* Toasts */
.toast-queue{

    position: absolute;
    
    display: flex;
    flex-direction: column;
    gap: .5em;

    right: .5em;
    bottom: .5em;

    max-height: 35em;
    overflow-y: scroll;

}

.toast{

    min-width: 20em;

    padding: .5em;

    background-color: hsl(132, 59%, 33%);
    color: white;

    display: grid;
    place-items: center start;
    grid-template-columns: 15% 85%;
   
    position: relative;
    border-radius: .2em ;

    display: none;

}

.toast svg {

    width: 2.5em;
    height: 2.5em;

}

.toast h1 {

    font-size: 1.2em;
    
}

.toast p {

    font-size: .8em;
    font-weight: bold;

}

.toast span {

    position: absolute;
    bottom: 0;
    right: 0;

    height: .2em;
    background-color: white;
    width: 50%;

    border-radius: .2em;

}