* {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
}

html {
    font-size: 18px; /* setting desktop root font-size */
}

/* Reset some default styles for consistency */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-weight: 600;
    line-height: 1.5;
}

body, select, input, button {
    font-size: 0.90rem;
}

/* Set a warm and welcoming background color */
body {
    background-image: linear-gradient(#3f51b5, #334493);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Style the header section */
header {
    text-align: left;
    margin-bottom: 32px;
}

/* Style the main content section */
main {
    width: 85%;
    max-width: 650px;
    margin: 20px auto;
    padding: 28px 32px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-levels-header {
    margin-top: 12px;
    margin-bottom: 16px;
}

.input-wrapper {
    margin-bottom: 18px;
}

/* Style form labels and select inputs */
form label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.80rem;
}

form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    cursor: pointer;

    /* First two lines are to hide the real arrow for Chrome, Safari & Firefox */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* This is where we set the background colour & image of the select dropdown */
    background-color: #fafafa;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAMAAACtdX32AAAAdVBMVEUAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhMdQaAAAAJ3RSTlMAAAECAwQGBwsOFBwkJTg5RUZ4eYCHkJefpaytrsXGy8zW3+Do8vNn0bsyAAAAYElEQVR42tXROwJDQAAA0Ymw1p9kiT+L5P5HVEi3qJn2lcPjtIuzUIJ/rhIGy762N3XaThqMN1ZPALsZPEzG1x8LrFL77DHBnEMxBewz0fJ6LyFHTPL7xhwzWYrJ9z22AqmQBV757MHfAAAAAElFTkSuQmCC);
    background-position: 100%;
    background-repeat: no-repeat;
    background-size: 22px;
}

    form select:hover {
        background-color: #efefef;
    }

/* Style the time input field */
form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
}

/* Style the submit button */
button {
    background-color: #3f51b5;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 48px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

button:hover {
    background-color: #334493;
}

#card-content-container {
    display: flex;
    flex-direction: row;
    gap: 48px;
}

    #training-needs-form, #results-container {
        flex: 1;
    }

#empty-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    text-align: center;
    padding: 20px;
}
    #empty-result--image {
        max-width: 120px;
    }

#results-container {
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


    #results-container::-webkit-scrollbar {
        width: 7px;
    }

    #results-container::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: rgba(0, 0, 0, .5);
        box-shadow: 0 0 1px rgba(255, 255, 255, .5);
    }

#recommendations-container {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
}

    #recommendations-container .topic {
        font-weight: 600;
        padding: 10px 20px;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        background: rgb(230, 230, 230);
        border-bottom: 1px solid #e8e8e8;
    }

    .recommendations {
        width: 100%;
    }

    .recommendations div {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        border-bottom: 1px solid #e8e8e8;
    }

    .recommendations:last-of-type div:last-of-type {
        border-bottom: none;
    }

    .recommendations .course {
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-sizing: border-box;
    }

a {
    text-decoration: none;
    color: #3f51b5;
    font-weight: 600;
}


/* Responsive design for smaller screens */
@media only screen and (max-width: 1024px) {
    html {
        font-size: 19px; /* setting mobile root font-size */
    }

    main {
        padding: 32px 20px;
    }

    form {
        max-width: unset;
    }

    h1, h2 {
        line-height: 1.3;
        margin-bottom: 8px;
    }

    #card-content-container {
        flex-direction: column-reverse;
    }

    #empty-result--image {
        max-width: 80px;
    }
}