@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

:root {
    --brand-orange: #FF5100;
    --brand-grey: #F5F5F5;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Ubuntu', sans-serif;
    background: var(--brand-grey);
}

main {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.viewer {
    width: 100%;
    height: 100%;
    background: var(--brand-grey);
    position: relative;
}

#renderCanvas {
    width: 100%;
    height: 100%;
    display: block;
    | background: var(--brand-grey);
}

.floating-controls {
    position: absolute;
    top: 32px;
    left: 32px;
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 260px;
    z-index: 10;
}

.floating-controls .info-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.floating-controls select,
.floating-controls .btn {
    width: 100%;
    height: 44px;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: 'Ubuntu', sans-serif;
}

.floating-controls select {
    padding: 0 12px;
    border: 1px solid #CCC;
    background: #FFF;
    appearance: none;
}

.floating-controls .btn {
    border: none;
    background: var(--brand-orange);
    color: #FFF;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.floating-controls .btn:hover {
    background: #e04a00;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 200px;
}

.select-wrapper select {
    width: 100%;
    padding: 8px 32px 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    /* Fjern standard pil */
    background-color: white;
}

.select-wrapper::after {
    content: "▼";
    font-size: 12px;
    color: #333;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.select-wrapper select:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(255, 81, 0, 0.2);
    cursor: pointer;
}