@import url('https://fonts.googleapis.com/css2?family=Anta&family=Luckiest+Guy&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: black;
    color: white;
    font-family: "Anta", sans-serif;
}

.topbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: black;
    border-bottom: 3px solid white;
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 25px;
    box-sizing: border-box;
    z-index: 10000;

    nav {
        height: 100%;
        display: flex;
        justify-content: conter;
        align-items: center;
        gap: 25px;
        font-size: 25px;

        a {
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
    }
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

#menu-toggle {
    display: none;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 3px solid white;

    .socials {
        display: flex;
        gap: 10px;
    }
}

.details {
    summary {
        cursor: pointer;
    }

    details {
        padding: 20px;
    }

    p {
        padding: 20px;
    }
}

.divider {
    border-bottom: 3px solid #6a6767;
}

progress {
    -webkit-appearance: none;
    appearance: none;
    width: 75%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1e1e2f;
    box-shadow: inset 0 0 5px #0003;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #ffffff, #8b8b8b);
    border-radius: 10px;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, #ffffff, #8b8b8b);
}

main section {
    margin-top: 50px;
    width: 50%;
    margin-right: auto;
    margin-left: auto;
    scroll-margin-top: calc(8vh + 10px);
    text-align: center;

    &:first-child {
        margin-top: 10px;
    }

    &:last-child {
        margin-bottom: 50px;
    }
}

.program table {
    margin-right: auto;
    margin-left: auto;
}

.speakers {
    width: 50%;
}

table {
    width: 80%;
    border-collapse: collapse;
    overflow: hidden;
}

thead th, tbody td {
    width: 25%;
    padding: 12px 20px;
    text-align: left;
    overflow: hidden;
}

caption {
    caption-side: top;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

thead {
    background-color: #222;
}

thead th {
    border-bottom: 2px solid #444;
}

tbody td {
    border-bottom: 1px solid #333;
}

tbody td p {
    margin: 0;
}

.speakers .articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;

    article {
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        max-width: 400px;
    }

    article:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    article h3 {
        margin-bottom: 10px;
        font-size: 1.25rem;
        color: #6a6767;
    }

    article figure {
        margin: 0;
        width: 100%;
    }

    article img {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1/1;
        border-radius: 10px;
        object-fit: cover;
        transition: transform 0.3s ease;
        overflow: hidden;
    }

    article:hover img {
        transform: scale(1.03);
    }

    article figcaption {
        font-weight: 600;
        margin-top: 8px;
        color: #ffffff;
    }

    article p {
        margin-top: 12px;
        font-size: 0.95rem;
        color: #ffffff;
        line-height: 1.5;
    }
}

.tickets {
    display: flex;
}

.form {
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    margin-right: auto;
    margin-left: auto;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    width: 100%;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 6px rgba(0, 170, 255, 0.3);
    background-color: rgb(41, 40, 40);
}

input[type="submit"] {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

input[type="submit"]:hover {
    background-color: #ffffff;
    color: black;
    transform: translateY(-2px);
}

input::placeholder {
    color: #aaa;
}

.scrolltop {
    position: fixed;
    right: 15px;
    bottom: 15px;
    display: flex;
    background-color: transparent;

    a {
        height: 50px;
        width: 50px;
        box-sizing: border-box;
        border-radius: 50px;
    }

    svg {
        fill: rgb(255, 255, 255);
        width: 30px;
        height: 30px;
        padding: 10px;
        border-radius: 50px;
        border: 3px solid rgb(255, 255, 255);
        transition: background-color 0.5s;
    }

    &:hover {
        svg {
            fill: rgb(0, 0, 0);
            background-color: white;
        }
    }

}

.frameWrap {
    margin-right: auto;
    margin-left: auto;
    border-radius: 20px;
    overflow: hidden;
    width: auto;
    height: 450px;
    max-width: 80%;
}

.frameWrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    display: block;
}

/*Breakpoints*/

@media only screen and (max-width: 1024px) {

    .topbar {
        padding: 10px 30px;
    }

    #menu-toggle {
        display: none;
    }

    .menu-icon {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }

    .topbar nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        border-top: 1px solid #333;
        animation: slideDown 0.3s ease;
        z-index: 999;
        gap: 0;
    }

    .topbar nav a {
        display: flex;
        width: 100%;
        border-bottom: 1px solid #333;
        font-size: 18px;
        height: 50px;
        justify-content: center;
        align-items: center;
        background-color: #262626;

        &:last-child {
            border-bottom: 3px solid white;
        }
    }

    .topbar nav a:hover {
        background-color: white;
        color: black;
    }

    #menu-toggle:checked+.menu-icon+nav {
        display: flex;
    }

    main section {
        width: 80%;
    }

    .speakers {
        width: 80%;
    }

}

@media only screen and (max-width: 768px) {
    .topbar nav a {
        padding: 5px 0;
    }

    main section {
        width: 90%;
        margin-top: 30px;
    }

    .speakers .articles {
        grid-template-columns: 1fr;
    }

    .form {
        width: 80%;
        padding: 20px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .scrolltop svg {
        width: 25px;
        height: 25px;
    }

    table {
        width: 95%;
    }

    thead th, tbody td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .frameWrap {
        height: 300px;
    }

    .form {
        padding: 15px;
    }
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}