@import url(https://fonts.googleapis.com/css?family=Raleway);

* {
    font-family: "Raleway";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s;
}

html,
body {
    height: 100vh;
}

.loader-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
}

.loader {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #ccc;
  border-top-color: #3498db;
  animation: spin 2s linear infinite;
  position: relative;
}

.loader::before {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.top-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #00baf0;
    background: linear-gradient(to left, #f46b45, #f5a535);
    font-size: 24px;
    height: 80px;
    padding: 0.8em;
    z-index: 1000;
    color: #fff;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 1rem;
    overflow: hidden;
    cursor: pointer;
    font-size: 20px;
}

.menu li a{
    color: #fff;
    text-decoration: none;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: "";
    margin-top: -8px;
}

.menu-button::after {
    content: "";
    margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

.main {
    max-width: 800px;
    position: relative;
    left: 50%;
    margin-top: 80px;
    padding: 10px;
    transform: translate(-50%, 0%);
    z-index: 1;
}

.main .result {
    padding: 5px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.main #user-message {
    color: #f46b45;
    font-size: 24px;
}

.controllor {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 80%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
    background-color: #ffffff;
    transform: translate(-50%, 0%);
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.controllor #question {
    width: 80%;
    height: 40px;
    font-size: 16px;
    margin: 0 5px;
    padding: 5px;
    border: 0;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
}

.controllor #send {
    width: 18%;
    height: 40px;
    background: linear-gradient(to left, #f46b45, #f5a535);
    border: 0;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
    color: #ffffff;
}

@media (max-width: 700px) {
    .top-nav {
        font-size: 20px;
    }

    .menu-button-container {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 80px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #menu-toggle~.menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked~.menu li {
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        /* background: linear-gradient(to left , #f46b45, #f5a535); */
        background-color: rgba(0, 0, 0, 0.8);
    }

    .menu li:not(:last-child) {
        border-bottom: 1px solid #444;
    }

    .main #question {
        font-size: 20px;
    }

    .controllor {
        left: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
        box-shadow: 0px 0px 0px 0px;
        border-radius: none;
        transform: translate(0%, 0%);
    }
}