@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Moul&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

@media (min-width: 768px) {

    html {
        font-family: 'Lato', sans-serif;

        body {
            padding: 0;
            width: 100vw;

            nav {

                a {
                    color: white;
                }

                a::after {
                    background-color: white;
                }

                /*  .dropdown-items {
                background-color: var(--darkGrey);
            } */
            }

            .challenge {
                height: 85vh;
                width: 100vw;

                .challenge-pic {
                    width: 100vw;
                    height: 85vh;
                    object-fit: cover;
                    position: absolute;
                    top: 0;
                }

                .info {
                    position: absolute;
                    width: 35vw;
                    height: 50vh;
                    margin: 0;
                    top: 20vh;
                    left: 8vw;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 30px;
                    z-index: 4;

                    .logo {
                        width: 70%;
                    }

                    h2 {
                        margin: 0;
                        font-size: 2.25vw;
                        color: white;
                    }

                    p {
                        margin: 0;
                        font-size: 1.5vw;
                        color: #9D9D9D;
                    }

                    .explore {
                        margin: 8px 0 0 0;
                        padding: 5px 5px 5px 20px;
                        border-radius: 25px;
                        background-image: linear-gradient(to right, #956AC0, #5C3782);
                        text-decoration: none;
                        color: black;
                        display: flex;
                        flex-direction: row;
                        gap: 5px;
                        align-items: center;

                        h1 {
                            margin: 0;
                            font-size: 2.5vw;
                        }

                        img {
                            height: 80%;
                            width: auto;
                        }
                    }
                }

            }

            .details {
                position: absolute;
                top: 85vh;
                height: 50vw;
                width: 100vw;
                display: flex;
                justify-content: center;

                .center {
                    display: flex;
                    flex-direction: row;
                    gap: 10vw;
                    top: 50%;
                    transform: translateY(-50%);
                    position: absolute;
                    width: 80vw;
                    z-index: 3;

                    .cad-pic {
                        margin-top: 8vh;
                        width: 35vw;
                        height: calc(35vw * 0.713);
                    }

                    .specs {
                        width: 35vw;
                        background-color: transparent;
                        height: auto;
                        display: flex;
                        justify-content: center;
                        flex-direction: column;
                        gap: 8vh;

                        h2 {
                            font-size: 5vw;
                            margin: 0;
                            font-weight: 600;
                            font-style: italic;
                            letter-spacing: 2px;
                            text-align: center;
                            line-height: .85;
                        }

                        .links {
                            display: flex;
                            flex-direction: row;
                            gap: 3vw;
                            width: 100%;
                            justify-content: center;

                            .link {
                                padding: 13px 20px;
                                background-color: rgb(88, 132, 228);
                                text-align: center;
                                display: flex;
                                flex-direction: column;
                                justify-content: center;
                                font-size: 19pt;
                                text-decoration: none;
                                color: black;
                                font-weight: 600;
                                border-radius: 2px;
                            }
                        }

                        .icon-specs {
                            width: 100%;
                            background-color: transparent;
                            height: auto;
                            display: flex;
                            flex-direction: row;
                            gap: 3vw;
                            justify-content: center;

                            .stat {
                                width: auto;
                                height: auto;
                                display: flex;
                                flex-direction: column;
                                justify-content: center;
                                text-align: center;
                                align-items: center;

                                img {
                                    width: 3vw;
                                    margin-bottom: 10px;
                                }

                                p {
                                    margin: 0;
                                    font-weight: 700;
                                    font-size: 10pt;
                                    font-weight: 700;
                                }
                            }
                        }
                    }
                }

                .background {
                    width: 60vw;
                    position: absolute;
                    bottom: 0;
                    left: 5vw;
                    z-index: 1;
                }
            }

        }
    }
}

@media (max-width: 768px) {
    html {
        font-family: 'Lato', sans-serif;

        body {
            padding: 0;
            width: 100vw;

            .nav-button {

                div {
                    background-color: var(--blue);
                }
            }

            .challenge {
                height: 85vh;
                width: 100vw;
                position: relative;

                .challenge-pic {
                    width: 100vw;
                    height: 85vh;
                    object-fit: cover;
                    position: absolute;
                    top: 0;
                }

                .info {
                    position: relative;
                    width: 80%;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 2.5vh;
                    z-index: 4;
                    padding: 0 10vw;

                    .logo {
                        width: 70%;
                        margin-bottom: 4vh;
                    }

                    h2 {
                        margin: 0;
                        font-size: 4vw;
                        color: white;
                        font-weight: 600;
                    }

                    p {
                        margin: 0;
                        font-size: 3vw;
                        color: #9D9D9D;
                        font-weight: 400;
                    }

                    .explore {
                        margin: 4vh 0 0 0;
                        padding: 5px 5px 5px 20px;
                        border-radius: 15px;
                        background-image: linear-gradient(to right, #956AC0, #5C3782);
                        text-decoration: none;
                        color: black;
                        display: flex;
                        flex-direction: row;
                        gap: 1.5vw;
                        justify-content: center;
                        align-items: center;

                        h1 {
                            margin: 0;
                            font-size: 5vw;
                        }

                        img {
                            height: 8vw;
                            width: auto;
                        }
                    }
                }

            }

            .details {
                position: relative;
                height: auto;
                width: 100vw;

                .center {
                    display: flex;
                    flex-direction: column;
                    gap: 10vw;
                    position: absolute;
                    z-index: 3;
                    width: 100%;
                    align-items: center;

                    .cad-pic {
                        margin-top: 8vh;
                        width: 75vw;
                        height: calc(75vw * 0.713);
                    }

                    .specs {
                        width: 75vw;
                        background-color: transparent;
                        height: auto;
                        display: flex;
                        justify-content: center;
                        flex-direction: column;
                        gap: 8vh;

                        h2 {
                            display: none;
                        }

                        .links {
                            display: flex;
                            flex-direction: row;
                            gap: 7vw;
                            width: 100%;
                            justify-content: center;

                            .link {
                                padding: 13px 0;
                                width: 25vw;
                                background-color: rgb(88, 132, 228);
                                text-align: center;
                                display: flex;
                                flex-direction: column;
                                justify-content: center;
                                font-size: 5vw;
                                text-decoration: none;
                                color: black;
                                font-weight: 600;
                                border-radius: 2px;
                            }
                        }

                        .icon-specs {
                            width: 100%;
                            background-color: transparent;
                            height: auto;
                            display: flex;
                            flex-direction: row;
                            gap: 8vw;
                            justify-content: center;
                            margin-bottom: 10vh;

                            .stat {
                                width: 8vw;
                                height: auto;
                                display: flex;
                                flex-direction: column;
                                justify-content: center;
                                text-align: center;
                                align-items: center;

                                img {
                                    width: 7vw;
                                    margin-bottom: 2vh;
                                }

                                p {
                                    margin: 0;
                                    font-weight: 700;
                                    font-size: 2.5vw;
                                    font-weight: 700;
                                }
                            }
                        }
                    }
                }

                .background {
                    width: 60vw;
                    position: absolute;
                    bottom: 0;
                    left: 5vw;
                    z-index: 1;
                }
            }

        }
    }
}