body, html {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    font-family: Arial, Verdana, Tahoma;
}

.topbar {
    display: flex;
    flex-direction: row;
    padding: 20px 60px 20px 60px;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgb(0, 73, 142)0%, rgba(0,83,142,1) 100%);
    border-bottom: 2px solid rgb(30, 69, 119);
}

@media screen and (max-width: 900px) {
    .topbar {
        padding: 20px 20px 20px 20px;
    }
}

.topbar-title-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
    color: white;

    h3 {
        margin: 0;
        font-size: 1.5em;
    }

    p {
        font-style: italic;
        color: lightgray;
        margin: 0;
    }
}

.language-selector-container {
    display: flex;
    align-items: center;
}

/*NOTE: <select> cant be customized well, would require a custom dropdown*/
#language-switcher {
    padding: 5px 30px 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    background-color: rgb(143, 184, 210);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#language-switcher:hover {
    background-color: rgb(110, 167, 202);
}

#first-time-info-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: all 0.2s ease-in-out;
    
}

#first-time-info-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

#first-time-info-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Div containing inputs and the results */
.calculator-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1; /* Important so there is no empty white-space below the calculator on larger monitors */
    width: 100%;
}

@media screen and (max-width: 900px) {
    .calculator-container {
        flex-wrap: wrap-reverse; /* On mobile wrap results above inputs */
    }
}

/* The (?) circle */
.tooltip-container {
    position: relative;
    display: inline-block;
    
    background-image: url("/images/icons/HelpIcon.png");
    background-repeat: no-repeat;
    background-size: cover;
    
    min-height: 1.5em;
    min-width: 1.5em;
    cursor: pointer;
}

/* Position is dynamically set using javascript */
#tooltip {
    position: fixed; /* Important for tooltip script positioning !!*/
    border-radius: 6px;
    padding: 20px;
    max-width: 30vh;
    z-index: 9999;
    color: white;
    text-shadow: 0 0.05em 0.5em rgba(0, 0, 0, 0.75); /*Helps with readability against the background */
    background: linear-gradient(45deg, rgba(29,125,255,1) 0%, rgba(72,214,255,1) 100%);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media screen and (max-width: 900px) {
    #tooltip {
        padding: 15px;
    }
}

/* Old hardcoded version of tooltips, commented incase needed */
/* .tooltip-container {
    position: relative;
    display: inline-block;
    
    background-image: url("/images/icons/HelpIcon.png");
    background-repeat: no-repeat;
    background-size: contain;
    
    height: 1.5em;
    width: 1.5em;
    cursor: pointer;

    .tooltip {
        visibility: hidden;
        position: absolute;
        z-index: 999;
        top: 50%;
        left: 100%;
    
        width: 30vh;
        padding: 20px;
        margin-left: 15px;
        border-radius: 6px;
        
        color: white;
        text-align: center;
        
        transform: translateY(-50%);
        background: linear-gradient(45deg, rgba(29,125,255,1) 0%, rgba(72,214,255,1) 100%);
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        transition: opacity 0.2s ease-in-out;
        opacity: 0;
    }
      
    .tooltip::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 100%;
        margin-top: -10px;
        border: 10px solid;
        border-color: transparent rgba(29,125,255,1) transparent transparent;
    }
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}


@media screen and (max-width: 900px) {
   
    .tooltip-container { Move tooltip to below the (?)
        width: 100%;

        .tooltip {
            padding: 10px;
            margin-top: 15px;
            margin-left: 0;
            transform: translateX(-50%);
            top: 100%;
            left: 13px;
            right: 0;
            width: 200px;
            max-width: 80vw;
        }
    
        .tooltip::after {
            bottom: 100%;  At the top of the tooltip
            left: 50%;
            top: -10px;
            transform: translateX(-50%);
            border-color: transparent transparent  rgba(29,125,255,1) transparent;
        }
    }
} */