* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    --primary-color: #e94e1b;
    --primary-color-light: #ff9944;
    --primary-color-lighter: #ffaa77;
    --text-color: #313131;
    --text-color_headers: #353535;
    --white: #eee;
}

body {
    background: var(--white);
    font-family: Geneva, Tahoma, sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--text-color);
    overflow-x: hidden;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    min-height: 74.9vh;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: var(--white);
    background-color: var(--text-color);
}

footer a {
    color: var(--white);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid #e94e1b;
    font-size: 20px;
    font-weight: 400;
}

footer p {
    color: var(--text-color);
    font-size: 36px;
}

#footer-left {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100px;
    gap: 15px;
}

.circle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.12;
}

#c1 {
    top: 120px;
    left: 30px;
    width: 500px;
    height: 500px;
}

#c2 {
    top: 80px;
    right: 0px;
    width: 300px;
    height: 300px;
    background-color: var(--primary-color-lighter);
}

#c3 {
    top: -80px;
    left: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--text-color_headers);
    opacity: 5%;
}

#header-logo {
    position: relative;
    width: 200px;
    margin-left: 150px;
}

a {
    display: flex;
    align-items: center;
}

figure {
    position: relative;
    grid-column: span 2;
    grid-row: span 3;
    padding-top: 40px;
    padding-bottom: 40px;
    background: var(--white);
}

figure:hover {
    cursor: pointer;
}

video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#navbar {
    background: var(--white);
    color: white;
    width: 100%;
    height: 100px;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#illustration {
    position: relative;
    top: 25px;
    left: 180px;
    margin-top: 5px;
    width: 200px;
    margin-bottom: 10px;
    left: 0px;
    top: 0;
}

header p {
    text-align: center;
    color: white;
    width: 400px;
    font-weight: 900;
    font-size: 20px;
    padding: 20px;
}

#navbar > ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    list-style-type: none;
    gap: 60px;
    margin-right: 150px;
    height: 100px;
}

#navbar > ul > li {
    margin: 0px;
}

#navbar > ul > li > a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.4px;
}

h1 {
    color: var(--text-color_headers);
    font-weight: 900;
    font-size: 30px;
    margin-bottom: 20px;
}

h2 {
    color: var(--white);
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 25px;
    margin-top: 0px;
    display: block;
    width: 80%;
}

.column > h2 {
    color: var(--text-color_headers);
    margin-bottom: 0;
    margin-top: 40px;
}

h3 {
    color: var(--text-color_headers);
    font-weight: 900;
    font-size: 40px;
    font-weight: 400;
    padding: 0;
}

h5 {
    color: var(--text-color_headers);
    font-weight: 900;
    font-size: 12px;
    font-weight: 400;
    width: 200px;
    padding: 0;
    margin: 0;
}

label {
    color: var(--text-color_headers);
    font-weight: 900;
    font-size: 12px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    margin-bottom: 2px;
}

main p {
    font-weight: 300;
    font-size: 16px;
    margin: 5px;
}

.error {
    color: red;
    font-size: 12px;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 60px;
}

#om-mig {
    color: var(--white);
    background-color: var(--text-color_headers);
    grid-column: span 2;
    grid-row: span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
    padding-top: 120px;
}

#om-min-lilla-byrå {
    overflow: hidden;
    position: relative;
    color: var(--text-color);
    background: linear-gradient(
        130deg,
        var(--primary-color),
        var(--primary-color-light),
        var(--primary-color)
    );
    padding-left: 160px;
    padding-right: 160px;
    grid-column: span 5;
    grid-row: span 2;
    text-align: center;
}

#intro-container {
    overflow: hidden;
    position: relative;
    color: var(--text-color);
    background: linear-gradient(
        130deg,
        var(--primary-color),
        var(--primary-color-light),
        var(--primary-color)
    );
    padding-left: 160px;
    padding-right: 160px;
    grid-column: span 5;
    grid-row: span 2;
    text-align: center;
}

span {
    font-weight: 500;
    color: var(--text-color_headers);
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    margin-bottom: 20px;
}

#tjänster {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.color {
    display: grid;
    justify-content: center;
    align-items: center;
    height: 500px;
    width: 500px;
    box-shadow: 2px 2px 3px #0005;
}

.pickers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #eee 0%, #aaa 100%);
    border-radius: 5px 0 0 5px;
    gap: 20px;
    height: 500px;
    padding: 0 20px;
    box-shadow: 2px 2px 4px #0005, inset 1px 1px 1px #fff;
    z-index: 1;
}

#random {
    background: linear-gradient(
        90deg,
        #ff0000 0%,
        #ff7f00 12.5%,
        #e6e600 25%,
        #00d000 37.5%,
        #0000ff 50%,
        #570095 62.5%,
        #9400d3 75%,
        #ff0000 87.5%
    );
    color: #fff;
    border: none;
    width: 200px;
    box-shadow: 0 5px 15px #0003;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 25px;
    cursor: pointer;
    text-shadow: #000 0px 0px 7px;
    box-shadow: inset 5px 5px 10px #fff5, inset 1px 1px 1px #fff9;
}

#random:hover {
    background: linear-gradient(
        90deg,
        #ff0000 0%,
        #ff7f00 12.5%,
        #e6e600 25%,
        #00d000 37.5%,
        #0000ff 50%,
        #570095 62.5%,
        #9400d3 75%,
        #ff0000 87.5%
    );
}

button:active {
    box-shadow: 00px 2px 2px #0005;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 200px;
    height: 15px;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 6px #0005;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #04aa6d;
    cursor: pointer;
}
#r::-webkit-slider-thumb {
    background: radial-gradient(circle, #ff5555 0%, #ff0000 50%, #330000 100%);
    background-position: -15px -15px;
    background-size: 40px 40px;
}
#g::-webkit-slider-thumb {
    background: radial-gradient(circle, #55ff55 0%, #00ff00 50%, #003300 100%);
    background-position: -15px -15px;
    background-size: 40px 40px;
}
#b::-webkit-slider-thumb {
    background: radial-gradient(circle, #5555ff 0%, #0000ff 50%, #000033 100%);
    background-position: -15px -15px;
    background-size: 40px 40px;
}

#red[type="radio"]:after {
    background-color: red;
}

#green[type="radio"]:after {
    background-color: green;
}

#blue[type="radio"]:after {
    background-color: blue;
}

#purple[type="radio"]:after {
    background-color: purple;
}

#pink[type="radio"]:after {
    background-color: pink;
}

#yellow[type="radio"]:after {
    background-color: yellow;
}

#brown[type="radio"]:after {
    background-color: rgb(152, 64, 23);
}

#orange[type="radio"]:after {
    background-color: orange;
}

#gray[type="radio"]:after {
    background-color: gray;
}

#white[type="radio"]:after {
    background-color: white;
}

#black[type="radio"]:after {
    background-color: black;
}

input[type="radio"]::after {
    width: 13px;
    height: 13px;
    border-radius: 13px;
    top: -2px;
    left: -2px;
    position: relative;
    content: "";
    display: inline-block;
    visibility: visible;
    border: 2px solid var(--primary-color);
    opacity: 0.5;
}

input[type="radio"]:hover:after {
    opacity: 0.8;
}

input[type="radio"]:checked:after {
    border: 2px solid var(--text-color_headers);
    opacity: 1;
}

.color_inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    flex-direction: column;
    justify-content: center;
}

.color_input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 25px;
    margin-bottom: 15px;
}

input[type="submit"] {
    background: linear-gradient(
        90deg,
        var(--text-color_headers) 0%,
        var(--text-color) 87.5%
    );
    color: #fff;
    border: none;
    width: 200px;
    box-shadow: 0 5px 15px #0003;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    text-shadow: #000 0px 0px 7px;
    box-shadow: inset 5px 5px 10px #fff1, inset 1px 1px 1px #fff3;
}

#r {
    background: linear-gradient(90deg, #888 0%, #ff0000);
    box-shadow: inset 4px 4px #0008;
}

#g {
    background: linear-gradient(90deg, #888 0%, #00ff00);
    box-shadow: inset 4px 4px #0008;
}

#b {
    background: linear-gradient(90deg, #888 0%, #0000ff);
    box-shadow: inset 4px 4px #0008;
}

/* Dropdown Button */
.dropbtn {
    background-color: var(--text-color);
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: var(--text-color_headers);
}

/*ColorAI*/
.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-position: 0 40px;
    text-align: center;
}

#botten {
    position: absolute;
    height: 200px;
    transform: translateY(-200px) translateX(-220px);
}

.column-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    grid-column: span 3;
    grid-row-start: 4;
    grid-row: span 6;
    z-index: 1;
    padding-left: 160px;
    margin-top: 260px;
    margin-bottom: 60px;
}

.column-container2 {
    display: flex;
    grid-column: span 1;
    grid-row: span 6;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-right: 150px;
    padding-top: 200px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 260px;
    height: 180px;
    perspective: 500px;
}

@keyframes turn {
    0% {
        transform: rotate3d(0, 0, 0, 0);
    }
    to {
        transform: rotate3d(1, 1, 0, 360deg);
    }
}

.cube {
    position: relative;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    animation: turn 10s linear infinite;
}
.cube:hover {
    animation-play-state: initial;
    animation-duration: 0ms;
}
.face {
    width: 80px;
    height: 80px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}
.top {
    transform: translateY(-40px) rotateX(90deg);
}
.bottom {
    transform: translateY(40px) rotateX(-90deg);
}
.front {
    transform: translateZ(40px);
}
.left {
    transform: translate(-40px) rotateY(-90deg);
}
.right {
    transform: translate(40px) rotateY(90deg);
}
.back {
    transform: translateZ(-40px) rotateY(180deg) rotate(180deg);
}

.top:hover,
.bottom:hover,
.front:hover,
.left:hover,
.right:hover,
.back:hover {
    transform: translateZ(250px);
}

/*Presentations-appen*/
#presentation {
    grid-column: span 4;
    grid-row: span 5;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
}

#canvas {
    top: 0;
    left: 0;
    position: relative;
}

.button-container {
    display: flex;
    position: absolute;
    width: 100%;
}

.active-slide-text {
    position: relative;
    color: white;
    z-index: 1;
    font-size: 20px;
    font-weight: 100;
    letter-spacing: 2px;
    text-align: left;
    padding: 8px;
}

.active-slide {
    position: relative;
    color: #eee;
    z-index: 1;
    font-size: 15px;
    font-weight: 100;
    letter-spacing: 2px;
    text-align: left;
    padding: 6px;
}

.arrows {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 25px;
    align-items: flex-end;
    position: absolute;
    width: 100%;
    height: 100%;
}

.presentations-button {
    margin-top: 5px;
    cursor: pointer;
    z-index: 1;
    position: relative;
    width: 165px;
    padding: 10px;
    height: 40px;
    color: #fff;
    background-color: #0005;
    border: 1px solid #ddd;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: #4441 0px 5px 5px;
}

.presentations-button:hover {
    border: #ddd solid 2px;
    opacity: 1;
}

#login {
    margin-top: 5px;
    margin-left: 25px;
    cursor: pointer;
    z-index: 1;
    position: relative;
    width: 165px;
    height: 40px;
    color: var(--primary-color-lighter);
    background-color: #0005;
    border: 1px solid var(--primary-color-lighter);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: #4441 0px 5px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

#login:hover {
    border: var(--primary-color) solid 2px;
    opacity: 1;
    color: var(--primary-color);
}

#login:visited {
    border: var(--primary-color-lighter) solid 2px;
    opacity: 1;
}

#login a {
    height: 40px;
    width: inherit;
    text-decoration: none;
    color: var(--primary-color-lighter);
}

#login a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.user-input {
    margin-bottom: 5px;
    width: 250px;
    border-radius: 5px;
    height: 35px;
    margin-top: 3px;
    padding-left: 5px;
}

.user-input:focus {
    border: none;
    padding: 0px;
    padding-left: 5px;
}

.user-input-label {
    display: flex;
    flex-direction: column;
    color: #eee;
}

.user-input-container {
    display: flex;
    justify-content: right;
    margin-top: 10px;
}

.user-inputs-container {
    border-radius: 5px;
    padding: 160px 160px;
    background-color: #353535;
}

.user-inputs-form {
    padding-bottom: 50px;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: span 4;
    grid-row: span 4;
}

#admin-slides {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100vw;
}

#admin-slide {
    background-color: var(--text-color_headers);
    margin: 15px;
    margin-bottom: 0px;
    height: 200px;
    width: 300px;
    border: 2px solid var(--text-color_headers);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#admin-slide:hover {
    background-color: var(--text-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

#next {
    display: none;
}

#prev {
    display: none;
}

/*Media queries*/
@media screen and (max-width: 1300px) {
    .column-container2 {
        padding-right: 0;
    }
    .column {
        width: auto;
    }
    #color {
        width: 500px;
    }
}
@media screen and (max-width: 1200px) {
    .column-container2 {
        padding-right: 0;
    }
    .column {
        width: auto;
    }
    #color {
        width: 400px;
    }
}
@media screen and (max-width: 1100px) {
    .column-container2 {
        padding-right: 0;
    }
    .column {
        width: auto;
    }
    #color {
        width: 300px;
    }
}
@media screen and (max-width: 1000px) {
    #tjänster {
        flex-direction: column;
        gap: 0px;
    }
    #illustration{
        align-self: center;
        width:150px;
    }
    .column-container2 {
        padding-right: 0;
    }
    .column {
        width: auto;
    }
    #color {
        width: 250px;
    }
}

@media screen and (max-width: 900px) {
    main {
        display: block;
    }
    #botten {
        transform: translateY(-200px);
    }
    figure {
        grid-column: span 3;
    }
    #om-mig {
        grid-column: span 3;
        grid-row: span 1;
    }
    #om-min-lilla-byrå {
        grid-column: span 3;
        grid-row: span 1;
    }
    #tjänster {
        flex-direction: row;
    }
    .column-container {
        margin-top: 260px;
        grid-column: span 3;
        grid-row: span 1;
        padding: 0;
    }
    .column-container2 {
        grid-column: span 3;
        grid-row: span 1;
        padding: 0;
        flex-direction: row;
    }
    .column {
        width: auto;
    }
    #intro-container {
        grid-column: span 3;
        grid-row: span 1;
        padding: 80px 20px;
    }
    #color {
        width: 200px;
    }
}

@media screen and (max-width: 600px) {
    input[type="range"] {
        width: 200px;
    }
    #illustration {
        width: 150px;
        align-self: center;
    }
    #header-logo {
        margin-left: 20px;
        align-self: center;
        width: 80px;
    }
    button {
        width: 100%;
        font-size: 13px;
    }
    .pickers {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: space-between;
        padding: 0 10px;
        border-radius: 5px;
        width: 100%;
    }
    h2 {
        font-size: 15px;
        position: relative;
        margin-top: 20px;
    }
    header {
        padding: 15px;
    }
    .container {
        width: 50px;
        height: 100px;
        perspective: 500px;
        margin: 100px;
    }
    .cube,
    .face {
        width: 100px;
        height: 100px;
    }
    .top {
        transform: translateY(-50px) rotateX(90deg);
    }
    .bottom {
        transform: translateY(50px) rotateX(-90deg);
    }
    .front {
        transform: translateZ(50px);
    }
    .left {
        transform: translate(-50px) rotateY(-90deg);
    }
    .right {
        transform: translate(50px) rotateY(90deg);
    }

    .back {
        transform: translateZ(-50px) rotateY(180deg) rotate(180deg);
    }
    img {
        width: 150px;
    }
    #botten {
        height: 200px;
        width: 100%;
        transform: translateY(-200px);
    }
    main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }
    #om-mig {
        grid-column: span 2;
        grid-row: span 2;
    }
    #om-min-lilla-byrå {
        grid-column: span 2;
        grid-row: span 2;
        padding: 60px;
    }
    #tjänster {
        flex-direction: column;
        gap: 0px;
    }
    figure {
        grid-row: span 1;
    }
}
