@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/Roboto-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/Roboto-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    color: black;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    /* Ensures padding and borders are included in the element's total width/height */
}

.event-tile-img {
    max-width:100%;
    max-height: 100%;
    object-fit: cover;
    margin-bottom: 30px;
    object-position: center;
}

/* Main section */
.content {
    width: 100%;
    height: auto;
    /* Ensure it covers the full height minus the header */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: left;
    padding: 20px;
    padding-bottom: 50px;
}

/* upcoming section*/

.upcoming-section {
    padding: 20px;
    text-align: left;
}

.upcoming-section h2 {
    color: black;
    font-size: 36px;
    margin: 0px 0px 10px 0px;
}

.upcoming-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;

    /* For smaller screens */
    @media (max-width: 1700px) {
        flex-direction: column;
    }
}

.upcoming-tile {
    color: black;
    padding: 20px;
    max-width: 650px;
    flex: 1 1 250px;
}

/* Events section */
.events-section {
    width: 80%;
    max-width: 1800px;
    padding: 20px;
    margin: 30px auto;
    text-align: left;
}

.events-section h2 {
    color: black;
    font-size: 36px;
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
}

/* Individual event tiles */
.event-tile {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: black;
    padding: 20px;
    max-width: 660px;
    flex: 1 1 250px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

/* Event heading and text styling */
.event-tile h3 {
    margin-top: 0;
    font-size: 24px;
}

.event-tile p {
    margin-bottom: 0;
    font-size: 16px;
}

/* Main container for hackathon page */
.hackathon-content {
    background: linear-gradient(to right, #530620, #a42134, #ec272d, #f06964);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

/* Section containing sidebar and task content */
.task-section {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    min-height: 100%;
    height: 100%;
    flex-grow: 1;
    padding-bottom: 15px;
}

/* Sidebar styling */
.sidebar {
    width: 20%;
    background-color: #2c3e50;
    /* Dark background for sidebar */
    color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligns items to the left */
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
}

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

/* Decorative divider */
.divider {
    border: none;
    height: 2px;
    background-color: #fff;
    margin: 25px 0px;
    width: 100%;
}

/* Task content styling */
.task-content {
    width: 75%;
    /* Take up the remaining space (75%) */
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    color: #000;
}

.task-content h2 {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}

.task-info {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    padding-right: 20px;
    /* Extra padding for text */
}

.task-text {
    margin-left: 20px;
}

.task-image img {
    display: block;
    width: 128px;
    height: 128px;
}

.task-submission {
    display: flex;
    margin: 20px;
    justify-content: space-evenly;
    width: 450px;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button {
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #1a252f;
}

/* Download link */
.download-link {
    display: block;
    color: #2c3e50;
    text-decoration: none;
}

.download-link:hover {
    text-decoration: underline;
}