﻿
.info-tiles-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.info-tile {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
}

    .info-tile.large-tile {
        grid-column: span 2;
        grid-row: span 2;
    }

    .info-tile.small-tile {
        grid-row: span 1;
    }

    .info-tile:hover {
        transform: translateY(-5px);
        background-color: #70b3d269;
    }


    .info-tile h2 {
        max-width: 500px;
        margin: auto;
        color: #2A2C61;
    }

.info-tile-content {
    padding: 20px;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.info-tile-title {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.info-tile-date {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.info-tile-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #999;
}

/* Popup i overlay */
.info-popup-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1010;
}

.info-popup-window {
    display: none;
    overflow-y: auto;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    background-color: white;
    transition: 0.5s;
    padding: 20px;
    z-index: 1010;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.info-popup-close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    z-index: 1011;
    background-color: #2A2C61;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0 0 0 10px;
}

    .info-popup-close:hover {
        background-color: #1D1E3C;
        color: #F0F0F0;
    }

    .info-popup-close:focus {
        outline: none;
    }



/*Media queries*/

@media (max-width: 1024px) {
    .info-tiles-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-popup-window {
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 90vh;
    }
}

@media (max-width: 768px) {
    .info-tiles-wrapper {
        grid-template-columns: 1fr;
    }

    .info-tile.large-tile {
        grid-column: span 1;
        grid-row: span 1;
    }
}