/* style.css */
body {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: left;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
}

header {
    background-image: url("designderby_4_Header_1440x1440.jpg");
    background-size: cover;
    background-position: center;
    height: 300px;
    padding: 50px;
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: "Instrument Serif", serif;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin-top: 0;
}

/* Link styling */
a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 800px;
    margin: 0px auto;
    padding-top: 0px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #000000;
}

th {
    background-color: #054573;
    color: #ffffff;
    font-family: "Instrument Serif", serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.banner {
    background-color: #000;
    color: #fff;
    height: 60px;
    line-height: 80px;
    overflow: hidden;
    position: relative;
}

.banner-top {
    text-align: center;
}

.scroll-text {
    animation: scroll 20s linear infinite;
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
    font-size: 2rem;
    word-spacing: 0.5em;
}

.scroll-text span {
    padding-right: 1em;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.emoji {
    font-family: "Noto Emoji", sans-serif;
    font-size: 2.5rem;
    color: #000;
}

.previous-competitions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    margin: 0px auto;
    max-width: 700px;
}

.competition {
    max-width: 700px;
    margin-bottom: 50px;
    padding: 0px;
    background-color: #000000;
    color: #ffffff;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 20px;
}

.competition img {
    max-width: 100%;
}

.competition h3 {
    font-size: 24px;
    margin-top: 1em;
    margin: 1rem 3rem 1rem 1rem;
    color: #ffffff;
    text-align: left;
}

.competition p {
    font-family: "Inter", serif;
    font-weight: 500;
    font-size: 16px;
    margin: 1rem 3rem 1rem 1rem;
    color: #ffffff;
}

.competition span {
    font-family: "Instrument Serif", serif;
}

.footer {
    font-size: 20px;
    letter-spacing: 0.05em;
    background-color: #000000;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.footer p {
    padding: 10px;
}

.content-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    max-width: 700px;
}

.previous-competitions-container {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.previous-competitions {
    border-bottom: 1px solid #ffffff;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.slider-container,
.footer {
    width: 100%;
}

.diagonal-banner {
    position: absolute;
    width: 200%;
    height: 60px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.diagonal-1 {
    transform: rotate(-15deg);
    top: 70%;
    left: -70%;
}

.diagonal-2 {
    transform: rotate(3deg);
    top: 5%;
    left: -50%;
}

.diagonal-3 {
    transform: rotate(15deg);
    top: 60%;
    right: -30%;
}

.diagonal-banner .scroll-text {
    font-size: 1.5rem;
    white-space: nowrap;
    animation: scroll 45s linear infinite;
}

.button {
    font-family: "Instrument Serif", serif;
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    margin: 1rem auto 0;
}

.button:hover {
    background-color: #054573;
}

/* Slider Styles */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    height: 50vh;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: none;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Previous Competitions List */
.previous-competitions-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.competition-item {
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    flex: 1 1 calc(100%);
    min-width: 150px;
    text-align: left;
    border-bottom: 1px solid white;
    margin-bottom: 15px;
}

.competition-date {
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
}

.competition-title {
    font-size: 20px;
    font-weight: regular;
    margin: 0;
}

/* Hover image styling */
.hover-image {
    position: fixed;
    width: 500px;
    height: auto;
    pointer-events: none;
    z-index: 1000;
    display: none;
    border: 1px solid white;
}
