:root { /* Normal background image if none available */
    --bgLink: url('../assets/images/worldmap.jpg');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Clash-Display';
    scroll-behavior: smooth;
}
body { /* Position of body */
    position: relative;
    min-height: 100vh;
}
body::before { /* Style for background image */
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;    
    background: var(--bgLink);
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;    
}
body::after { /* Style for background image */
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: -1;
} 
header { /* Style for header */
    background:  #7B1113;
    padding: 10px;
    width: auto;
    display: flex;
}
.header img { /* Style for logo */
    height: auto;
    width: 300px;
}
section { /* Style for inner body */
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card { /* Style for card */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0px 3px 7px 1px rgba(0, 0, 0, 0.5);
    width: 90%;
    height: auto;
    background: linear-gradient(45deg, /* For linear gradient */
    rgba(156, 78, 52, 0.678),
    rgba(139, 57, 42, 0.651),
    rgba(43, 160, 49, 0.555));
    border: 2px solid #fbff0077;
    backdrop-filter: blur(10px); /* For glassmorphism */
    margin-top: 20px;
    padding: 2px;
}
.leftcard { /* Left side of card */
    flex: 1;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px;
    margin: 30px;
    border-right: 1px solid gray;
}
.leftcard img { /* For Organization Logo */
    border: double 5px transparent;
    border-radius: 50%;
    background-image: linear-gradient(white, white), linear-gradient(to right, #ee00ff, #fbff00); /* Adds a gradient border */
    background-origin: border-box;
    background-clip: content-box, border-box;
    width: 250px;
    height: 250px;
    margin-top: 45px;
    margin-bottom: 20px;
}
.rightcard { /* Right side of card */
    flex: 1;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 1px;
    margin: 30px;
}
h1, h2 { /* Style for title texts */
    color: white;
    font-weight: bolder;
    text-align: center;
    margin-bottom: 10px;

    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}
table { /* Style for organization info */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    border-collapse: collapse;
}
td { /* Style for info containers */
    padding: 5px;
    border: none;
    border-radius: 20px;
    color: white;
    text-align: justify;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
td:first-child { /* Style for Org info title */
    font-weight: bolder;
    vertical-align: top;
}
#socials { /* Style for contact info icons of orgs */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}
.link {
    display: inline-block;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}
.link ion-icon{ /* Styles for contact info icons of orgs */
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: white;
}
.link:hover { /* Hover condition of icons */
    transform: scale(1.05); /* Increases scale */
}
.goback { /* Go back button */
    display: flex;
    justify-content: center;
}
#goback { /* Style for go back button */
    display: inline-block;
    background: #7B1113;
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 20px;
    align-items: center;
    margin-top: 30px;
}
#goback:hover { /* Hover condition of go back button */
    background-color: #a6171a;
    box-shadow: 2px 2px 2px black;
    transform: translateY(-7px);
    transition: 0.2s ease;
}
#goback:active { /* Style for active condition of btton */
    transform: translateY(-1px);
}
#notfound { /* Style for text displayed when an org cannot be found */
    font-size: larger;
    font-weight: bold;
    background: white;
    padding: 10px;
    border: 2px dashed #a6171a;
    margin-top: 30px;
}

/* Media Screen Queries for Responsiveness */
@media screen and (max-width: 1024px) /* For Tablets (Reduces sizes of items)*/
{
    header
    {
        justify-content: center;
        align-items: center;
    }
    .card {
        flex-direction: column;
        width: 80%;
        height: auto;
        margin-top: 50px;
    }
    .leftcard {
        border-right: none;
        border-bottom: 1px solid gray;
        margin-bottom: 10px;
        padding: 5px;
        max-width: 100%;
    }
    .leftcard img {
        width: 210px;
        height: 210px;
    }
    .rightcard {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        max-width: 90%;
    }
    #goback {
        margin-bottom: 20px;
    }
    body::before {
        height: 100%;
    }
}

@media screen and (max-width: 768px) /* For phones (reduces sizes of items) */
{
    .card {
        padding: 20px;
    }    
    .leftcard, .rightcard {
        margin: 5px 0;
    }
    .leftcard img {
        width: 180px;
        height: 180px;
    }
}