/* **************************************************
 * Theme Name: SimDex LLC
 * Theme URI: https: //www.simdex.org
 * Description: Custom theme for SimDex LLC
 * Author: SimDex LLC
 * Author URI: https: //www.simdex.org
 * Template: hello-elementor
 * Version: 1.0.0
 * Text Domain: simdex
 * License: GNU General Public License v3 or later.
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
 * ************************************************** */
/* **************************************************
 * Global Variables
 * ************************************************** */
:root
{
    --simdex-blue: #5c8edc;
    --simdex-orange: #e9a944;
    --simdex-gray: #999;
    --simdex-dark-blue: #212738;
    --simdex-dark-reed: #742016;
    --simdex-light-background: #eee;
    --simdex-dark-background: #333;
}

/* **************************************************
 * Hexagon Style
 * https://jtauber.github.io/articles/css-hexagon.html
 * ************************************************** */
.hexagon:before
{
    position: absolute;
    top: -30px;

    width: 0;
    height: 0;

    content: ' ';

    border-right: 52px solid transparent;
    border-bottom: 30px solid #6c6;
    border-left: 52px solid transparent;
}

.hexagon
{
    position: relative;

    width: 104px;
    height: 60px;
    margin-top: 30px;

    background-color: #6c6;
}

.hexagon:after
{
    position: absolute;
    bottom: -30px;

    width: 0;

    content: '';

    border-top: 30px solid #6c6;
    border-right: 52px solid transparent;
    border-left: 52px solid transparent;
}

/* **************************************************
 * Hexagon Grid
 * https://dev.to/afif/responsive-hexagon-grid-without-media-query-57g7
 * ************************************************** */
.hexagon-grid-main
{
    display: flex;

    --s: 100px;
    /* size of a hexagon */
    --m: 4px;
    /* space between each heaxgon */
    --r: calc(var(--s)*3*1.1547/2 + 4*var(--m));
}

.hexagon-grid-container div
{
    display: inline-block;

    width: var(--s);
    height: calc(var(--s)*1.1547);
    margin: var(--m);
    margin-bottom: calc(var(--m) - var(--s)*.2885);

    clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
}

.hexagon-grid-container::before
{
    float: left;

    width: calc(var(--s)/2 + var(--m));
    height: 100%;

    content: '';

    shape-outside: repeating-linear-gradient(transparent 0 calc(var(--r) - 3px),
    #fff 0 var(--r));
}
