:root {
	--blur2: rgba(86,80,217, 0.2);
}
 #top_details{ 
        width:100%;
        height:5%;
        margin:0;

        display:flex;
        justify-content: right;
        align-items: center;
        padding:5px;
    }

    #close_button {
        border-radius: 40px;
        padding: 20px;
        background-color: var(--accent1);
      
    }
   
	#left_details>*>img{
		
        width: 20px;
        filter: invert(1);
	}
	#left_details>img{
		
        width: 30vw;
        
	}
	#right_details img{
		 margin-right: 10px;
        width: 20px;
        filter: invert(1);
	}
	#top_details img{
		 display: block;
        width: 20px;
         filter: invert(1);
	}

article {
    margin-top: 50px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    height: auto;
    gap: 40px 20px;
}

.post {
    background-color: rgba(0,0,0,0.3);
    text-align: left;
    padding: 20px;
    width: 300px;
    border-radius: var(--radius);
    margin: 10px;
	height: auto;
	position: relative;
    transition: all 0.25s;
}

.post:hover {
    cursor: pointer;
    background-color: var(--black);
    border: 1px solid var(--dark);
    box-shadow: 0 0px 10px var(--dark);
}

.post:hover .event_type {
    background-color: var(--accent1);
    box-shadow: 0 5px 0 var(--dark);
}

.saved_post {
    display: none;
}
        

.bookmark:hover {
	transform: scale(1.05);
	background-color: #CFC2FF;
}

.saved_post:checked + .bookmark {
	background: var(--accent1);
}

.bookmark {
	width: 25px;
	height: 40px;
	position: absolute;
	top: -15px;
	margin: 10px;
	left: 20px;
	cursor: pointer;
	border-radius: 5px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
	cursor: pointer;
	background: var(--gray);
	transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, all 0.3s ease-in-out;
    z-index: 2;
}

p.saved_post {
    position: relative;
    top:  -40px;
    right: 0px;
    width: 80%;
    height: 30px;
}

.post-image {
	position: relative;
    top: -30px;
}

.post-image img {
    width: 100%;
  	height: 150px;
  	object-fit: cover;
    border-radius: 8px;
    display: block !important;
}

.event_type {
    position: relative;
    top: -25px;
    z-index: 2;
    left: 50%;
    margin: 0px 10px;
    background-color: var(--gray);
    box-shadow: 0px 5px dimgray;
    border-radius: 5px;
    padding: 3px;
    width: 130px;
    text-align: center;
    font-family: 'SpaceB';
    transition: all 0.25s;
}

.location {
    position: relative;
    float: left;
    margin-right: 10px;
}

.data {
    position: relative;
}

.location, .data {
    font-size: 80%;
    color: var(--gray);
    top:  -20px;
}

.post .title {
	position: relative;
    top:  -20px;
	margin-top: 10px;
    font-family: 'SpaceB';
    font-size: 150%;
	line-height: 27px;
}

.category_type {
	position: relative;
    top:  -5px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.short_description {
    margin-bottom: 15px;
	position: relative;
    top:  -30px;
	font-size: 90%;
}

.category {
    width: auto;
    margin: 2px;
    background-color: var(--blur2);
    padding: 5px 10px;
    border-radius: 3px;
}

.target_group {
	position: relative;
    top:  -30px;
    width: auto;
    float: left;
    background-color: var(--blur2);
    bottom: 0;
    padding: 5px 10px 5px 10px ;
    border-radius: 5px;
	margin-bottom: 15px;
}

.size {
	position: absolute;
	bottom: 0;
	right: 0;
	margin: 3px;
    float: right;
    width: auto;
    cursor: pointer;
    display: none;
}

.url {
	position: absolute;
	bottom: 15px;
	right: 20px;
    float: right;
}

.url img, .size img {
    width: 30px;
    filter: invert(100%);
}

#blur {
    width: 100%;
    height: 100%;
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
    margin: 0;
    background: var(--blur);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(6px);
}

#szczegoly_ogloszenia {
    z-index: 10;
    width:80vw;
    height:80vh;
    position: fixed;
    justify-content: center;
    align-items: center;
    background-color: var(--black);
    border-radius: 10px;
    /* border:1px solid var(--accent1); */
	box-shadow: 0px 0px 50px var(--black);
    margin:0;
    padding:20px;
    display:flex;
    flex-wrap: wrap;
}
#top_details{ 
    width:100%;
    height:5%;
    margin:0;

    display:flex;
    justify-content: right;
    align-items: center;
    padding:5px;
}
#left_details{
    width:45%;
    height:90%;
    padding:5px;

    float:left;
    display:flex;
    justify-content:center;
    align-items: left;
    flex-wrap: nowrap;
    flex-direction: column;
}

#right_details{
		width:49%;
		height: 90%;
        padding:5px;

		float:left;

		display:flex;
		justify-content:center;
		align-items: left;

		flex-wrap: nowrap;
		flex-direction: column;
	}
    #right_details>div{
        margin-bottom:2px;
    }

	h1{
		margin:0;
        font-size: 300%;
	}
.short_desc_container>p:first-child{
	
	width: 30%;
	position:relative;
	left: -10px;
	  background-color: var(--accent1);
    box-shadow: 0 5px 0 var(--dark);
    border-radius: 5px;
    padding: 3px;
    width: 130px;
	margin-bottom: 10px;
    text-align: center;
    font-family: 'SpaceB';
}

	.short_desc_container{
		text-align: justify;
		display:flex;
		flex-direction: column;
		
		border-radius: 2px;
		
		padding: 10px;
		

		width: 100%;
		height: auto;
	}
	.long_desc_container{
		text-align: justify;
		display:flex;
		flex-direction: column;
		
		border-radius: 2px;
		
		padding: 10px;
		

		width: 100%;
		height: auto;
	}

.long_desc_container>p:first-child{
	
	width: 30%;
	position:relative;
	left: -10px;
	  background-color: var(--accent1);
    box-shadow: 0 5px 0 var(--dark);
    border-radius: 5px;
    padding: 3px;
    width: 130px;
	margin-bottom: 10px;
    text-align: center;
    font-family: 'SpaceB';
}

    .url_container{
        text-align: right;
    }
    #details_img{
        width:90%;
        object-fit: cover;
        border-radius: 10px;
        max-height: 60%;
    }
    .details_category{
        width:90%;
    }
    .category_type2 {
    display: flex;
    flex-wrap: wrap;
  }
    body.no-scroll {
    overflow: hidden;
    }

@media screen and (max-width: 760px){
    .post{
        width: 100%;
    }

    .size{
        transform:scale(1.3);
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 6px;
		
    }
    .url{
        transform:scale(1.3);
        position: absolute;
        bottom: 0;
        right: 40px;
        margin: 6px;
    }

    /*checkbox bookmark*/

    .saved_post {
                display: none;
            }
            

    .bookmark:hover{
        transform: scale(1.05);
        background-color: #CFC2FF;
    }
    .saved_post:checked + .bookmark {
        background: var(--accent1);
        border-color: black;
    }

    .bookmark {
        width: 35px;
        height: 50px;
        position: relative;
        top: -20px;
        margin:10px;
        left: -20px;
        display: inline-block;
        border: 2px solid white;
        cursor: pointer;
        border-radius: 5px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);

        cursor: pointer;
        background: white;
        transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, all 0.3s ease-in-out;
    }

    p.saved_post{
        position: relative;
        top:  -40px;
        right: 0px;
        width: 80%;
        height: 30px;
    }

    .post .title {
        line-height: 30px;
    }

    .target_group {
        width: 70;
    }

    .url{
        width: 30px;
        width: 10%;
        float: right;
    margin-right: 25px;

    }
    .size{
        width: 30px;
        margin-right: 20px;
       
        width: auto;
        cursor: pointer;
    }
    .url img, .size img{
        width: 30px;
    }

    #szczegoly_ogloszenia {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        overflow-y: scroll;
    }

    #szczegoly_ogloszenia::-webkit-scrollbar {
        display: none;
    }

    #szczegoly_ogloszenia img {
        display: block;
        width: 20px;
        filter: invert(1);
    }

    #top_details{ 
        width:100%;
        height:5%;
        margin:0;

        display:flex;
        justify-content: right;
        align-items: center;
        padding:5px;
    }

    #close_button {
        border-radius: var(--radius);
        padding: 10px;
        background-color: var(--black);
        border: none;
    }

    #left_details {
        width: 100%;
        height: auto;
        padding: 0;
        display: block;
    }

    #details_img {
        width: 100% !important;
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        object-fit: cover;
        height: 300px;
        filter: none !important;
        border-radius: 0;
    }

    #details_title {
        margin: 0;
        font-size: 30px;
        line-height: 32px;
        font-family: "SpaceB";
        margin-bottom: 24px;
        margin-top: 270px;
    }

    #details_date img, .details_location img, .details_cost img {
        float: left;
        margin-right: 10px;
        filter: invert(59%) sepia(9%) saturate(534%) hue-rotate(209deg) brightness(92%) contrast(88%) !important;
    }

    #details_date, .details_location, .details_cost {
        color: var(--gray);
        margin-bottom: 8px;
    }

    .details_cost {
        margin-bottom: 24px;
    }

    .details_type {
        position: absolute;
        top: 250px;
        backdrop-filter: blur(10px);
        border-radius: var(--radius);
        padding: 5px 16px;
        border: 1px solid var(--white);
        background-color: rgb(0, 0, 0, 15%);
    }

    .details_url {
        margin: 50px 0;
        margin-left: -20px;
        width: 100vw;
        display: flex;
        justify-content: center;
    }
    
    #right_details{
        width: 100%;
        height: auto;
        display:flex;
        justify-content:center;
        align-items: left;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .short_desc_container p:first-child, .long_desc_container p:first-child {
        background: none;
        border: none;
        box-shadow: none;
        /* padding: 0; */
        /* margin: 0; */
        text-decoration: underline 2px;
        text-decoration-color: var(--accent1);
        text-underline-offset: 8px;
        left: -25px;
    }

    .short_desc_container, .long_desc_container {
        text-align: justify;
        display: flex;
        flex-direction: column;
        overflow: visible;
        width: 100%;
        height: auto;
        padding: 0;
        margin: 24px 0;
    }
}