/* @import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&family=Caveat:wght@400..700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&family=Patrick+Hand&display=swap');

*
{
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

html
{
    background-color: #334182;
    /* background-image: url("images/background.webp"); */
    background-size: cover;

    overflow: hidden;
}

div.overlay,
div.underlay
{
    top: 0;
    left: 0;
    position: absolute;
    width: 100vw;
    height: 100vh;

    pointer-events: none;

    
    background-size: cover;
    mix-blend-mode: multiply;
}
div.underlay { background-image: url("images/paper2.jpg"); }
div.overlay { background-image: url("images/paper.jpg"); }

body
{
    width: 100vw;
    height: 100vh;

    overflow: hidden;
}

/* TITLE BLOCK */
div.title-block
{
    width: 100vw;
    height: 30vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
div.title-block h1
{
    text-align: center;
    font-size: 84px;

    font-family: "Cabin Sketch", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: white;
}
div.title-block h2
{
    float: right;
    font-size: 32px;

    font-family: "Cabin Sketch", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
}
div.title-block a,
div.title-block a:visited
{
    font-family: "Cabin Sketch", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
}






/* TOOLS LIST BLOCK */
div.tools-list
{
    width: 100vw;
    height: 70vh;
    padding: 20px 5vw;
    flex-basis: 0;

    overflow-y: auto;
}
div.tools-list div.favourites,
div.tools-list div.all-tools
{
    width: auto;
    height: auto;
    padding-bottom: 20px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}



/* TOOL CARDS */
div.tool-card
{
    position: relative;
    width: 70vw;
    height: calc(70vw * 0.2778);
    padding: 0px 10px;

    max-width: 500px;
    max-height: calc(500px * 0.2778);

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

    background-position: 0 0;
    background-size: contain;
    background-repeat: no-repeat;

    transition: scale 100ms, transform 100ms;
    -webkit-transition: scale 100ms, transform 100ms;
}
div.tool-card p
{
    text-align: center;
    
    padding: 10px 0px;
    overflow: hidden auto;

    font-size: 6vw;
    line-height: 1em;

    font-family: "Patrick Hand", cursive;
    font-weight: 400;
    font-style: normal;
    color: white;

    user-select: none;
}
@media only screen and (min-width: 800px)
{
    div.tool-card
    {
        width: 40vw;
        height: calc(40vw * 0.2778);
    }
    div.tool-card p
    {
        font-size: 4vw;
    }
}
@media only screen and (min-width: 1100px)
{
    div.tool-card
    {
        width: 28vw;
        height: calc(28vw * 0.2778);
    }
    div.tool-card p
    {
        font-size: 3vw;
    }
}
@media only screen and (min-width: 1500px)
{
    div.tool-card p
    {
        font-size: 42px;
    }
}
div.tool-card:hover
{
    scale: 105%;
    transition: scale 100ms, transform 100ms;
    -webkit-transition: scale 100ms, transform 100ms;
}

/* favourite button regular */
div.favourite-button
{
    position: absolute;
    top: 2px;
    right: 2px;
    width: 30px;
    height: 30px;

    background-image: none;
    background-size: contain;
    background-repeat: no-repeat;

    rotate: 15deg;

    cursor: pointer;
}
/* favourite button while favourited */
div.favourite-button.favourited
{
    background-image: url("images/star/filled.svg");
}
/* favourite button while not favourited but while the card is hovered */
div.tool-card:hover div.favourite-button:not(div.favourited)
{
    background-image: url("images/star/outline.svg");
}
/* favourite button while hovered in all circumstances */
div.favourite-button:hover,
div.favourite-button.favourited:hover,
div.tool-card:hover div.favourite-button:not(div.favourited):hover
{
    background-image: url("images/star/transparent.svg");
}




a, a:visited
{
    color: white;
}
