.aff_card_container{
	display:flex;
	flex-direction: row;
	justify-content: center;
	align-content: center;
	width:100%;
	flex-wrap: wrap;
	gap: 10px;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(3px);
	padding: 10px;
	border-radius: 10px;
}

.aff_card{
	display: flex;
	position: relative;
	width: fit-content;
	flex-grow: 1;
	max-width: 250px;
	height: 70px;
	padding: 5px 10px;
	border-radius: 5px;
	background:rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(10px);
	box-shadow:  1px 1px 3px #999;
	overflow: hidden;
	.aff_img{
		display:flex;
		justify-self: center;
		align-self: center;
		height: 50px;
		width: 50px;
		margin: 0;
	}
	> div:last-of-type{
		justify-content: flex-start;
		width: fit-content;
	}
	.aff_img img{
		display: block;
		max-width: 100%;
		max-height: 100%;
		margin: auto;
		border-radius: 6px;
		pointer-events: none;
	}
	.aff_img img[src="gfx/logos/club/"]{
		display: none;
	}
	.aff_details{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: 0px;
		padding:5px 10px;
		width: 100%;
		height: 100%;
		.top_details{
			font-size: 1.2rem;
            line-height: 1.2rem;
			padding: 2px 0px;
		}
		.bottom_details{
			display: flex;
			width: 100%;
			min-width: 50px;
			column-gap: 10px;
			justify-content: flex-start;
			align-items: center;
			padding: 0px 0px;
			.icon{
				display: flex;
				justify-content: center;
				align-items: center;
				background:var(--prim_clr);
				color:var(--3rd_clr);
				font-size: 1rem;
				padding: 2px;
				height: 25px;
				width: 25px;
				text-align: center;
				aspect-ratio: 1 / 1;
				border-radius: 50%;
				/*border: 1px solid var(--3rd_clr);*/
				cursor: pointer;
				transition: 0.25s;
			}
			.icon:hover{
				background: var(--3rd_clr);
				color: var(--prim_clr);
			}
		}
		.bottom_details:not(:has(a)){
			display: none;
		}
	}
	.aff_options{
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		position:absolute;
		gap: 5px;
		background-color:rgba(0, 0, 0, 0.75);
		backdrop-filter: blur(5px);
		height: 100%;
		top: 0;
		right: 0px;
		transform: translateX(calc(100% + 10px));
		z-index: 1;
		padding: 3px;
		text-align: center;
		transition: 0.25s;
		margin: auto;
		box-shadow: 0px 0px 6px #999;
		button{
			display:flex;
			justify-content: center;
			align-items: center;
			aspect-ratio: 1 / 1;
			padding: 2px;
			border: none;
			border-radius: 5px;
			background:none;
			cursor: pointer;
		}
		button.tooltip{
			background: yellowgreen;
		}
		.icon{
			display:block;
			margin: auto;
			color: var(--sec_clr);
			font-size: 1.2rem;
		}
	}
}

.aff_card:hover > .aff_options{
	transform: translateX(0);
	button:hover > .icon{
		text-shadow: 0px 0px 1px #000;
		color: var(--prim_clr);
	}
	.btn_del > .icon{
		color: #f00;
	}
}

.disbanded{
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	width: 100%;
	min-width: 100%;
	min-height: 100%;
	background:rgba(200, 200, 200, 0.65);
	backdrop-filter: blur(10px);
	z-index: 50;
	top: 0;
	left: 0;
	text-align: center;
	span{
		width: 100%;
		transform: rotateZ(-20deg);
		font-weight: bold;
		color: #f00;
		font-size: 1.2rem;
		letter-spacing: 0.1rem;
	}
}

@media only screen and (min-width: 501px) and (max-width: 834px) and (orientation:portrait){
    .aff_card_container{
        h2{
            position: sticky;
            top: 50px;
            background:rgba(255,255,255,0.5);
            backdrop-filter:blur(10px);
            -webkit-backdrop-filter:blur(10px);
        }
    }
	.aff_card{
		width: calc(50% - 5px);
		max-width: none;
        height: 80px;
		grid-template-columns: auto 100%;
        .aff_img {
                height: 60px;
                width: 60px;
            }
		.aff_details{
			display: flex;
			width: 100%;
            .top_details {
                    font-size: 1.2rem;
                    line-height: 1.5rem;
                }
            .bottom_details {
                .icon {
                    font-size: 1.2rem;
                    height: 30px;
                    width: 30px;
                }
            }
        }
	}
}

@media only screen and (max-width: 500px) and (orientation:portrait){
    .aff_card_container{
        h2{
            position: sticky;
            top: 60px;
            background:rgba(255,255,255,0.75);
            backdrop-filter:blur(10px);
            -webkit-backdrop-filter:blur(10px);
        }
    }
	.aff_card{
		width: 100%;
        height: 90px;
		max-width: none;
		grid-template-columns: auto 100%;
        .aff_img {
                height: 70px;
                width: 70px;
            }
		.aff_details{
			display: flex;
			width: 100%;
            .top_details{
                font-size: 1.5rem;
                line-height:1.5rem;
            }
            .bottom_details{
                .icon{
                    font-size: 1.5rem;
                    height: 35px;
                    width: 35px;
                }
            }
		}
	}
}