body {
    margin: 0%;
}

.header {
    display: grid;
    grid-template-columns: 1fr 10fr 1fr;
    margin-top: -110dvh;
    align-content: center;
    justify-content: space-around;
}

h1 {
    grid-column: 2/3;
    font-family: "IBM Plex Sans";
    font-size: min(6rem, 18vw);
    text-align: center;
    color: rgb(220, 36, 31);
}

h2 {
    font-family: "IBM Plex Sans";
    margin-top: -7.5%;
    font-size: min(2rem, 10vw);
    font-weight: 200;
    text-align: center;
    color: lightgray;
}

.home-logo {
    grid-column: 1/2;
    height: 500%;
}

question-box {
    margin-top: 1rem;
    grid-column: 3/4;
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    border: solid lightgrey 0.2rem;
    font-family: "IBM Plex Sans";
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: lightgray;
    cursor: pointer;
}

div.circle.point {
    width: 10vw;
    height: 10vw;
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: rgb(220, 36, 31);
    color: white;
    font-family: "IBM Plex Sans";
    font-size: 3.8vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
div.outer {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-left: 2%;
}

div.stop-info {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    height: 10vh;
}
div.stop-info > p {
    font-family: "IBM Plex Sans";
    font-size: min(3.7rem, 8.8dvw);
    margin-left: 4%;
    justify-self: center;
}

div.buslist {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1%;
    margin-left: 16%;
    margin-top: 4%;
}

div.bus-number {
    font-family: "IBM Plex Sans";
    font-size: min(2rem, 10vw);
    height: min-content;
    color: white;
    border: solid black 0.2rem;
    background-color: rgb(220, 36, 31);
    border-radius: 10%;
    cursor: pointer;
    &:hover {
        background-color: rgb(138, 23, 19);
        transition: 0.5s;
    }
    &.inactive {
        background-color: rgb(138, 23, 19);
    }
    &.inactive:hover {
        background-color: rgb(220, 36, 31);
        transition: 0.5s;
    }
}
div.intermediate {
    height: min-content;
}

div.bus-stop-list {
    display: flex;
    overflow-x: scroll;
}

div.circle {
    margin-top: 3%;
    width: min(15vw, 5rem);
    height: min(15vw, 5rem);
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: rgb(220, 36, 31);
    color: white;
    font-family: "IBM Plex Sans";
    font-size: min(7vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

div.stop {
    min-width: min(35vw,10rem);
    min-height: 8rem;
    border: 0.1rem solid black;
    margin: 0.5rem 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    box-shadow: 0.2rem 0.3rem 0.2rem 0.2rem rgb(139, 139, 139);
    border-radius: 4%;
    text-align: center;
    cursor: pointer;
    & > p {
        font-family: "IBM Plex Sans";
        font-size: min(1.2rem, 5vw);
    }
    &:hover {
        background-color: #aaaaaa;
        transition: 0.5s;
    }
    &.inactive {
        background-color: #aaaaaa;
    }
    &.inactive:hover {
        background-color: white;
        transition: 0.5s;
    }
}

p.italic {
    font-family: "IBM Plex Sans";
    position: relative;
    top: 10%;
    font-size: min(2.4rem, 5vw) !important;
    font-style: italic;
    margin-top: 0%;
}
win-screen {
    position: sticky;
    display: flex;
    z-index: 1;
    top: 0;
    width: 100dvw;
    height: 110dvh;
    background-color: rgba(1, 1, 1, 0.5);
    align-items: center;
    justify-content: center;

    & > div {
        background-color: white;
        border: solid rgb(220, 36, 31) 0.2rem;
        width: max-content;
        text-align: center;
        & > h2 {
            font-family: "IBM Plex Sans";
            font-weight: 600;
            font-size: 3rem;
            margin-top: 0% !important;
        }
        & > p {
            font-family: "IBM Plex Sans";
            font-size: 1.5rem;
        }
    }
    &.off {
        visibility: hidden;
    }
}

info-screen {
    position: absolute;
    display: flex;
    z-index: 1;
    top: 0;
    width: 100vw;
    height: 110dvh;
    background-color: rgba(1, 1, 1, 0.5);
    align-items: center;
    justify-content: center;

    & > div {
        background-color: white;
        border: solid rgb(220, 36, 31) 0.2rem;
        width: max-content;
        text-align: center;
        & > h2 {
            font-family: "IBM Plex Sans";
            font-weight: 600;
            font-size: 2rem;
            margin-top: 0% !important;
        }
        & > p {
            font-family: "IBM Plex Sans";
            font-size: 1.5rem;
        }
        & > p.additional-info {
            color: lightgray;
            font-size: 0.6rem;
        }
    }
    &.off {
        visibility: hidden;
    }
}
