/* Gradient background with lighter blue towards the outside and darker towards the circles */
body {
    /* background: linear-gradient(to bottom, #78206e 10%, #104863 90%); Darker towards the circles */
    color: #ffffff;
    /* White text color */
    font-family: 'Lato', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* height: 150vh; */
}

header {
    color: #ffffff;
    /* White header text */
}


header nav ul li a {
    color: #78206e;
    /* White navigation text */
}

/* Align h2 to the left */
h2 {
    text-align: left;
}

.center-link {
    color: #ffffff;
    /* White center link text */
    text-align: left;
    padding: 40px;
    font-size: 20px;
}

.image-row {
    display: flex;
    width: 90%;
    height: auto;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

/* 
Create Section for Challenge Organizers
Organized in one row with three columns (one per Institute)
Following: https://www.w3schools.com/howto/howto_css_three_columns.asp
*/
.text-row:after {
    content: "";
    display: table;
    justify-content: center;
    clear: both;
}

.col {
    float: left;
    width: 33.33%;
}

.circle {
    width: auto;
    height: auto;
    margin: 0 20px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    position: relative;
    box-shadow: 0 0 30px #00000050;
    background-color: #78206e;
    border: 3px solid #78206e;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.hover-text {
    display: none;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    top: 0;
    left: 0;
    padding: 20px;

    color: #ffffff;
    /* White text color */
    font-size: 1.5vw;
    text-align: center;
    border-radius: 0px;
}

.circle:hover img {
    opacity: 0;
    /* Hide the image */
}

.circle:hover .hover-text {
    display: flex;
    /* Show the text */
}

/* Footer styles */
footer {
    background-color: #ffffff;
    color: #ffffff;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
}

.footer-container .logo img {
    margin-top: 1px;
    /* Add more margin-top to move the button down */
    max-height: 60px;
}

.footer-container h5 {
    margin-top: 0;
    color: #ffffff;
}

.social,
.newsletter,
.footer-menu,
.copyright {
    /* color: #ffffff; */
    padding: 20px;
}

.social {
    width: 100%;
    max-width: 800px;
}

.social-container {
    /* flex-wrap: wrap; */
    justify-content: center;
    display: flex;
    gap: 10px;
    justify-content: space-around;
    border-radius: 20px;
    /* border: 3px solid #78206e; */
    padding: 24px 40px;

    color: #ffffff;
    /* background-color: #78206e; */
    background: linear-gradient(to bottom, #78206e 10%, #104863 90%);
    box-shadow: 0 0 20px #00000050;
}

.social-group {
    display: flex;
    flex-direction: row;

    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.social-link:hover {
    opacity: 0.8;
}

.social-owner {
    /* margin-bottom: 5px; */
    margin-right: 10px;
    /* font-weight: bold; */
    font-size: 16px;
}

.social-link svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: #ffffff;
}

.newsletter {
    max-width: 400px;
}

#mc_embed_signup {
    background: #0b1d46;
    color: #ffffff;
}

#mc_embed_signup input[type=email] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background: #0b1d46;
    color: #ffffff;
}

#mc_embed_signup input[type=submit] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #ffffff;
    color: #0b1d46;
    font-weight: bold;
    cursor: pointer;
}

.footer-menu {
    display: flex;
    gap: 40px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 20px;
}


/* General styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    color: #0b1d46;
}

/* Header styles */
header {
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    align: left;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Hero section styles */
.hero {
    background: #ffffff;
    padding: 40px 60px;
    /* Increase padding to enlarge height */
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 0 30px #00000050;
}

.hero-content {
    max-width: 800px;
    margin: 10 auto;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: left;
}

.hero p1 {
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
}

.hero-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.hero-button a {
    font-size: 20px;
    width: fit-content;
    background-color: #78206e;
    color: #ffffff;
    padding: 20px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s ease;



}

.hero-button a:hover {
    background-color: #d09fee;
    color: #0b1d46;
}

table {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Align lists to the left */
ol,
ul {
    margin-left: 20px;
    /* Adjust this value if needed */
    padding-left: 20px;
    /* Adds indentation to the left */
    text-align: left;
    /* Ensures text is aligned to the left */
}

/* Optionally, to ensure uniformity */
li {
    text-align: left;
    /* Align individual list items to the left */
}

/* Style the details container */
details {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 1em;
    transition: all 0.3s ease;
}

/* Style the summary (the clickable element) */
details summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    /* Hides default marker */
    outline: none;
}

/* Remove the default marker */
details summary::-webkit-details-marker {
    display: none;
}

/* Add a custom marker. It rotates when the details are open */
details summary::before {
    content: "➕";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

details[open] summary::before {
    content: "➖";
    transform: rotate(180deg);
}

/* Optional: Style the content inside details */
details p,
details div,
details li {
    margin: 0.5em 0;
    line-height: 1.4;
}

summary {
    margin-left: -40em;
}

.emoji-list li {
    list-style: none;
    position: relative;
    padding-left: 2em;
    font-size: 1rem;
}

.emoji-list li:nth-child(1)::before {
    content: "🥇 ";
    /* or "1️⃣ " */
    position: absolute;
    left: 0;
}

.emoji-list li:nth-child(2)::before {
    content: "🥈 ";
    /* or "2️⃣ " */
    position: absolute;
    left: 0;
}

.emoji-list li:nth-child(3)::before {
    content: "🥉 ";
    /* or "3️⃣ " */
    position: absolute;
    left: 0;
}

/* Tooltip styling */
.emoji-list li:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    z-index: 10;
    font-size: 0.9em;
    white-space: pre-line;
}