
/* Container of the widgets */

.content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

/* Widget container */

.widget-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
}

/* Widget wrapper */

.widget-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    min-width: 100px;
    min-height: 100px;
}

.widget-link {
    width: 100%;
}

.widget-wrapper-portrait {
    aspect-ratio: 9/18;
}

/* Resize widgets when the screen is smaller */

@media screen and (min-width: 600px) {
    .content {
        flex-direction: row;
    }

    .widget-container-wide {
        width: 61.8%;
    }

    .widget-container-skinny {
        width: 34.2%;
    }

    .widget-container-span-half-wide {
        width: 48%;
    }
}

/* Widget */

.widget {
    transition: 0.2s;
    position: relative;
    width: 100%;
    height: 100%;
}

.widget:hover {
    z-index: 2;
}

/* Widget overlap */

.widget-overlap, .widget-overlap-phone {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    transition: 0.2s;
}

.widget-overlap:hover {
    left: -5%;
    top: -5%;
    width: 110%;
    height: 110%;
    box-shadow: #3d3d3d 0 5px 25px 1px;
}


/* Widget title */

.widget-title {
    position: absolute;
    bottom: 5%;
    background-color: rgba(255, 255, 255, 0.5);
    left: 8%;
    padding: 2%;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    z-index: 2;
    color: black;
}
