html {
    --default-blue: rgba(15, 117, 188, 1);
}
h1 {
    margin-top: 10px;
    margin-bottom: 0px;
    font-weight: 400;
    font-size: 32px;
}
h2 {
    margin-top: 5px;
    font-size: 20px;
    font-weight: 400;
    color: gray;
    margin-bottom: 40px;
    max-width: 400px;
}



.default_content {
    padding-top: 55px;
}
.content {
    max-width: 1500px;
    padding-right: 40px;
    padding-left: 40px;
    min-height: 100%;
}
.content_top > p {
    color: #757575;
    font-size: 16px;
    margin-top: 10px;
}

.content_top {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 0px;
    box-sizing: border-box;
}
.content_body {
    position: relative;
    text-align: right;
    box-sizing: border-box;
    padding-right: 00px;
    margin-top: 20px;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
}
.content_body a {
    color: #0f75bc;
    cursor: pointer;
    cursor: hand;
}

#summary {
    margin-top: 20px;
}

.columns {
    display: flex;
    flex-flow: row;
}
.columns .column {
    flex: 1 1 auto;
}
article {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    align-content: baseline;
    padding-top: 20px;
}
.template {
    padding: 12px 12px 24px;
    margin-left: 20px;
    flex: 0 0 293px;
    height: 260px;
    margin-bottom: 20px;
    background: #FFFFFF;
    filter: drop-shadow(0px 30px 30px rgba(168, 97, 59, 0.15));
    border-radius: 16px;

    cursor: pointer;
    cursor: hand;

    transition: transform 0.3s, filter 0.3s;
}
.template:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0px 40px 30px rgba(168, 97, 59, 0.15));
    box-shadow: 0 0 4px #0F75BC99;
}
#custom_activity {
    background: url(/img/custom_activity.jpg) no-repeat -2px -2px;
    background-size: calc(100% + 4px) calc(100% + 4px);
    height: 296px;
    flex: 0 0 317px;
    border: 12px solid white;
    box-sizing: border-box;
    position: relative;
}

#custom_activity:after, #custom_activity:before {
    content: "הכנת פעילות בהתאמה אישית";
    color: white;
    display: block;
    position: absolute;
    width: 100%;
    font-size: 34px;
    font-weight: 500;
    text-align: center;
    left: 0;
    top: 50%;
    transform: translateY(-15%);
    text-shadow: 0px 2px 0px #1075bc77;
}
#custom_activity:before {
    content: "⚙";
    font-size: 70px;
    transform: translateY(-100%);;
}


.template img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}
.template h3 {
    padding: 0 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 400;
}
.template p {
    font-size: 13px;
    padding: 0 5px;
    color: #424B5A;
}
#filter {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    margin-top: 30px;
}
fieldset {
    width: auto;
    padding: 10px 0 10px 20px;
    font-weight: 300;
    margin: 10px 0 10px 20px;
    min-width: 120px;
}
legend {
    font-weight: 400;
}
input[type="radio"] {
    display: none;
}
input[type="radio"] + label {
    color: var(--default-blue);
    border: 1px solid var(--default-blue);
    display: inline-block;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    padding: 0 15px 0 15px;
    margin-bottom: 10px;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */

    cursor: pointer;
    cursor: hand;
}
input[type="radio"]:checked + label {
    color: white;
    background: var(--default-blue);
    padding: 0 7px 0 15px;
}
input[type="radio"]:disabled + label {
    opacity: 0.5;
    filter: saturate(0);
    cursor: default;
}
input[type="radio"]:checked + label:before {
    content: "✔";
    margin-left: 5px;
}
fieldset > div {
    margin-top: 10px;
}
fieldset > div > div:not(:last-child) {
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid #7A869A;
}
#tags_wrapper {
    position: relative;
}
select {
    outline: none;
    border: none;
    background: var(--default-blue);
    min-width: 150px;
    color: white;
    border-bottom: 2px solid var(--default-blue);
    -webkit-appearance: none;
    appearance: none;
    height: 32px;
    line-height: 32px;
    border-radius: 16px;
    font-size: 16px;
    font-family: Rubik;
    font-weight: 300;
    padding: 0 13px;

    cursor: pointer;
    cursor: hand;
}
#tags_wrapper.all select {
    color: var(--default-blue);
    font-weight: 400;
    background: none;
    border: 1px solid var(--default-blue);
    line-height: 30px;
}


#tags_wrapper:after {
    content: "x";
    font-weight: 400;
    display: block;
    font-size: 16px;
    position: absolute;
    top: 5px;
    left: 12px;
    color: white;
    z-index: 10;

    cursor: pointer;
    cursor: hand;
}
#tags_wrapper.all:after {
    color: var(--default-blue);
    content: "▾";
    font-weight: 300;
    pointer-events: none;
}

@media (max-width: 750px){
    .content {
        padding-right: 10px;
        padding-left: 5px;
    }
    h1 {
        font-size: 23px;
    }
    #filter_cat {
        flex: 1 0 100%;
    }
    #tags_wrapper {
        width: calc(100% - 20px);
        max-width: 350px;
    }
    #tags_select {
        width: 100%;
    }
    fieldset {
        padding-left: 0px;
        margin-left: 10px;
        padding-bottom: 10px;
    }
    fieldset:last-child {
        margin-left: 0px;
    }
    fieldset > div {
        margin-top: 0px;
    }
    fieldset > div > div:not(:last-child) {
        margin-left: 8px;
        padding-left: 9px;
    }
    input[type="radio"] + label {
        border: none;
        background: none;
        height: 20px;
        padding: 0;
    }
    input[type="radio"]:checked + label {
        padding: 0;
        background: none;
        color: var(--default-blue);
        font-weight: bold;
    }
    input[type="radio"]:checked + label:before {
        display: none;
    }
    legend {
        font-weight: 500;
    }
    .template {
        transform: scale(0.98) translateX(5px);
    }

}
