@font-face {
    font-family: 'akcelera-bold';
    src: url('fonts/akcelera-bold-webfont.woff2') format('woff2'),
         url('fonts/akcelera-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'akcelera-light';
    src: url('fonts/akcelera-light-webfont.woff2') format('woff2'),
         url('fonts/akcelera-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'akcelera-light';
    background: #253E92;
}

.hero {
    display: grid;    
    grid-template-columns: minmax(auto, 1024px);
    justify-content: center;
    align-content: center;        
}

.hero-container {
    background: #253E92;
    color: white;
    border-radius: 10px;   
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    grid-template-areas: "badge description description description"
                         "badge subtitle subtitle subtitle"
                         "badge item item item";
    grid-gap: 10px 25px; 
    border: 1px solid #e5e5e5;
    border-bottom: 5px solid #cccccc;
    padding-right: 25px;
}

.badge {
    grid-area: badge;
    background: white;
    color: #3a3b3f;
    border-radius: 8px 0 0 5px;
    text-align: center;
    align-items: center;
    justify-items: center;
}

.badge-image {
    margin: 0;
}

.badge-image img {
    max-width: 200px;
    min-width: 100px;
}

.title {
    font-family: 'akcelera-bold';
    margin: 0;
    font-size: 1.5em;
}

.description { 
    grid-area: description;
    font-size: 0.9em;    
}

.description p {
    font-weight: bold;
}

.subtitle {
    grid-area: subtitle;
    font-family: 'akcelera-bold';
    margin: 0;    
}

.item {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    background: #F1F1F1;
    color: #3a3b3f;
    box-sizing: border-box;
    margin-bottom: 25px;
    padding: 0.5em;
}

.item h3 {
     margin: 0;   
     font-size: 1.2em;  
}

.item-img {
    margin: 0;
}

.item img {
    max-width: 120px;
    min-width: 100px;
}

.item button, .popup button {
    background: #98ca3f;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    border-bottom: 5px solid #6d932b;
    display: inline-block;
    font-size: 13px;
}

.item button:focus {
    outline: none;
}

.overlay {
    position: fixed;      
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.50);
    align-items: center;
    justify-items: center;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    display: none;
}

.overlay-items
{
    position: relative;       
    z-index: 300;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
}

.popup {
    display: inline-block;    
    min-width: auto;
    max-width: 500px;    
}

.popup h3 {
    margin: 10px 0;   
    font-size: 1.2em;  
    font-weight: bold;    
}

.popup form {
    text-align: right;
}

.popup form label {
    display: block;
    text-align: left;
}

.popup form input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #dbdbe2;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.popup form button {
    display: inline-block;
}

@media screen and (min-width: 1024px){
    .hero {
        height: 100vh;
    }    
}

@media screen and (max-width: 1024px){
    .hero-container {
        border-radius: 0px;    
        border: 0;                
    }

    .badge {
        border-radius: 0px;
    }
}

@media screen and (max-width: 768px){
    .hero-container {
        grid-gap: 10px 15px;         
        padding-right: 15px;
    }

    .item img {
        max-width: 100px;
        min-width: 100px;
    }
}

@media screen and (max-width: 480px){
    .hero {    
        justify-content: start;
        height: auto;    
    }

    .hero-container {
        border-radius: 0px;
        grid-template-columns: 1fr;
        grid-template-areas: "badge"
                            "description"
                            "subtitle"
                            "item";
        padding-right: 0;        
        border: 0;
                            
    }

    .badge {
        border-radius: 0px;
    }

    .badge-image img {
        display: none;
    }

    .description {
        padding: 10px;
    }

    .subtitle {
        padding: 10px;
    }    

    .item {
        margin: 0 10%;
    }


    .item img {
        max-width: 120px;
        min-width: 100px;
    }

    .item:last-of-type {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 320px){

}