/* Font Imports */
@font-face {
    font-family: 'Staatliches';
    src: url('../assets/fonts/Staatliches/Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Sunflower';
    src: url('../assets/fonts/Sunflower/Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Sudo Var';
    src: url('../assets/fonts/SudoVar/Medium.ttf') format('truetype');
}

/* Base Styles */
body {
    margin: 0;
    color: white;
    overflow-x: hidden;
}

main {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Navigation */
.navbar {
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.nav-content {
    margin: 0 auto;
    margin-left: 5rem;
    margin-right: 5rem;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    backdrop-filter: blur(3px);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    backdrop-filter: blur(10px);    
}

.logo-image {
    height: 30px;
    width: auto;
    display: block;
}

.nav-links {
    backdrop-filter: blur(3px);
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Navigation Colors */
.navbar--scrolled .logo a,
.navbar--scrolled .nav-links a {
    color: black;
}

.logo a,
.nav-links a {
    color: white;
}

.navbar .nav-links a,
.navbar .logo a {
    font-family: 'Staatliches', sans-serif;
    letter-spacing: 1px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(to right, #0A0067 0%, #80808000 100%), url(../assets/images/hero.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    align-items: flex-start;
    padding-left: 7rem;
}

#hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    font-family: 'Staatliches', sans-serif;
    font-size: 6rem;
    letter-spacing: 0.4rem;
    font-weight: bold;
    width: max-content;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    margin: 1rem;
}

.hero-subtext {
    font-family: 'Staatliches', sans-serif;
    font-size: 2.8rem;
    color: #ffffff;
    width: max-content;
    margin: 1rem;
}

/* Hero Button Animation */
.hero-button {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.hero-button:hover {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Section Headers */
.section-header-text {
    font-family: 'Staatliches', sans-serif;
    color: #333;
    font-size: 3rem;
}

/* Computer Grid Layout */
#computers {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.computer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    margin: 2rem;
    width: 90vw;
}

/* Computer Items */
.computer-item {
    position: relative;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 0.346);
}

.computer-item.highlighted {
    box-shadow: 0 2px 15px rgba(255, 217, 0, 0.823);
    border: 1px solid rgba(255, 217, 0, 0.716);
}


/* Teams Grid Layout */
#teams {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    margin: 2rem;
    width: 90vw;
    align-items: start;
    justify-content: center;
}

.teams-column {
    display: grid;
    gap: 3rem;
    align-items: start;
}

.teams-column.left {
    margin-top:5rem;
}
.teams-column.middle {
    margin-top:0rem;
}
.teams-column.right {
    margin-top:10rem;
}

.teams-image-item {
    max-width: 25rem;
    height: auto;
}

/* Computer Items */
.teams-item {
    position: relative;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 0.346);
}

.teams-item.highlighted {
    box-shadow: 0 2px 15px rgba(255, 217, 0, 0.823);
    border: 1px solid rgba(255, 217, 0, 0.716);
}


/* Races Grid Layout */
#races {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.races-grid {
    display: grid;
    gap: 4rem;
    padding: 2rem;
    margin: 2rem;
    width: 90vw;
    align-items: start;
    justify-content: center;
}


.races-image-item {
    border-radius: 8px;
    height: auto;
    margin: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.535);
}

/* Races Items */
.races-item {
    width: fit-content;
    position: relative;
    padding: 0.3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 0.346);
}

.races-item.highlighted {
    box-shadow: 0 2px 15px rgba(255, 217, 0, 0.823);
    border: 1px solid rgba(255, 217, 0, 0.716);
}

.races-item-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
    gap: 0.7rem;
    width: fit-content;
    background-color: #ffffff;
    position: absolute;
    transform: translateX(-50%);
    z-index: 10;
    bottom: 0px;
    left: 50%;
    border-top-right-radius: 15px;
    border-top-left-radius:15px;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    font-size: 1.3rem;
    font-family: 'Staatliches', sans-serif;
    
}

.races-item-bar a {
    text-decoration: none;
    color: #000000;
}

.races-item-bar a:hover {
    text-decoration: underline;
}




/* Connect Grid Layout */
#connect {
    font-family: 'Sudo Var', sans-serif;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
    background-image: url("../assets/images/mountains.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.connect-box {
    display: grid;
    grid-template-rows: 1fr;;
    gap: 4rem;
    padding: 2rem;
    margin: 2rem;
    width: 90vw;
    align-items: start;
    justify-content: start;
    padding-top: 200px;
}

.connect-box > * {
    width: 90vw;
    border-bottom: 3px solid #696969;
    padding-bottom: 1rem;
}

.connect-box > *:last-child {
    border-bottom: none;
}



.connect-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}


.connect-title {
    font-size: 2rem;
    font-weight: bold;
}


.connect-bottom {

    display: flex;
    flex-direction:column;
    align-items: start;
    gap: 0rem;
}

.connect-bottom a {
    text-decoration: underline;
    color: #000000;
}

.connect-form {
    font-size: 1.7rem;
    font-weight: bold;
    display:flex;
    flex-direction: column;
    align-items: start;
    gap:1rem;
    background-color: rgb(189, 189, 189);
    padding: 15px;
}

.connect-form input,textarea {
    border: none;
    border-radius: 3px;
    padding: 5px;
    outline: none;
}

.connect-form button {
    padding:7px;
    border-radius: 3px;
    box-shadow: 2px 2px #000000;
}

.connect-form button:hover {
    box-shadow: none;
}


/* Sale Badge */
.sale-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: rgb(255, 217, 0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Staatliches', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Figure and Images */
figure {
    margin: 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

figure img:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.535);
}

figcaption {
    font-family: 'Sudo Var', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Features List */
.features-list {
    font-family: 'Sudo Var', sans-serif;
    margin: 1rem 0;
}

.features-list dt {
    font-weight: bold;
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.features-list dd {
    font-size: 1.2rem;
    margin-left: 1rem;
    margin-bottom: 0.25rem;
}

.features-list dt::before {
    content: "•";
    margin-right: 0.5rem;
    color: #333;
}

/* Buttons */
.shop-button {
    font-family: 'Staatliches', sans-serif;
    font-size: 1.3rem;
    display: block;
    margin: 1rem auto 0;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #0A0067;
    color: white;
    cursor: pointer;
}

.shop-button:hover {
    background-color: #040029;
}

.shop-button.sale {
    color: #ffffff;
    background-color: rgb(255, 217, 0);
}

.shop-button.sale:hover {
    background-color: rgb(170, 144, 0);
}

.shop-button .pence {
    font-size: 0.7em;
    vertical-align: baseline;
    margin-left: 1px;
}




.teams-button {
    font-family: 'Staatliches', sans-serif;
    font-size: 1.3rem;
    display: block;
    margin: 1rem auto 0;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #0A0067;
    color: white;
    cursor: pointer;
}

.teams-button:hover {
    background-color: #040029;
}


.races-button {
    font-family: 'Staatliches', sans-serif;
    font-size: 1.3rem;
    display: block;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #0A0067;
    color: white;
    cursor: pointer;
}

.races-button:hover {
    background-color: #040029;
}



.button-image {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: #333;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    margin: 0.5rem;
    animation: slideIn 0.5s, fadeOut 0.5s 2.5s;
    font-family: 'Sudo Var', sans-serif;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}







.logo {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.sitemap-links {
    text-align: center;
}

.sitemap-links li {
    display: inline;
    margin: 0 10px;
}

/* Legal Page Styles */
#privacy-policy, #terms-conditions {
    width: 90%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#privacy-policy h2, #terms-conditions h2 {
    font-family: 'Staatliches', sans-serif;
    color: #333;
    margin-bottom: 1rem;
}

#privacy-policy h3, #terms-conditions h3 {
    font-family: 'Staatliches', sans-serif;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#privacy-policy p, #terms-conditions p {
    font-family: 'Sudo Var', sans-serif;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444;
}

#privacy-policy footer, #terms-conditions footer {
    text-align: center;
    padding: 1rem;
    background-color: #f8f8f8;
    margin-top: 2rem;
}






/* Media Queries */

/* For tablets */
@media (max-width: 768px) {
    .navbar {
        font-size: 1.2rem;
    }

    .nav-content {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    #hero {
        padding-left: 2rem;
        padding-right: 2rem;
        align-items: center;
    }

    .hero-text {
        font-size: 4rem;
    }

    .hero-subtext {
        font-size: 2rem;
    }

    .computer-grid, .teams-grid, .races-grid, .connect-grid {
        grid-template-columns: 1fr;
    }

    .section-header-text {
        font-size: 2.5rem;
    }

    .shop-button, .teams-button, .races-button {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }

    .sale-badge {
        font-size: 0.8rem;
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    .navbar {
        font-size: 1rem;
    }

    .nav-content {
        padding: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    #hero {
        padding-left: 1rem;
        padding-right: 1rem;
        align-items: center;
    }

    .hero-text {
        font-size: 3rem;
    }

    .hero-subtext {
        font-size: 1.5rem;
    }

    .computer-item, .teams-item, .races-item, .connect-item {
        padding: 1rem;
    }

    .section-header-text {
        font-size: 2rem;
    }

    .shop-button, .teams-button, .races-button {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .teams-image-item, .races-image-item {
        max-width: 100%;
    }
}
