@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #f0f4f8;
}

.container {
    display: flex;
    height: 100%;
    width: 100%;
}

canvas {
	max-width:70%;
    background: linear-gradient(135deg, #ece9e6, #ffffff);
    transition: background 0.5s ease;
}

.controls {
    min-width: 30%;
    background: #ffffff;
    padding: 2rem;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top {
    text-align: center;
}

.top h3 {
    color:#333;
    margin-top: 0;
    margin-bottom: 2vh;
}

.top img {
    max-width: 100%;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.subtitle {
	color: #606060;
	margin-bottom:1vh;
	font-size: 1.3rem;
}

P {
	color: #333;
	margin:1vh;
}

hr {
    width: 80%;
    border: none;
    border-top: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.control-group {
    width: 100%;
    margin-bottom: 2rem;
}

.control-group h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
    text-align: left;
}

.select-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.block-selector {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.block-selector h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    appearance: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

select:hover {
    border-color: #a0c4ff;
    box-shadow: 0 0 5px rgba(160, 196, 255, 0.5);
    outline: none;
}

.select-style { /* credits: logrocket block. just discovered the "border trick" to create triangles */
    position: relative;
}

.select-style::before,
.select-style::after {
    --size: 0.3rem;
    position: absolute;
    content: "";
    right: 1rem;
    pointer-events: none;
}

.select-style::before {
    border-left: var(--size) solid transparent;
    border-right: var(--size) solid transparent;
    border-bottom: var(--size) solid black;
    top: 40%;
}

.select-style::after {
    border-left: var(--size) solid transparent;
    border-right: var(--size) solid transparent;
    border-top: var(--size) solid black;
    top: 55%;
}

option {
    padding: 10px;
}

.action-button {
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background-color: #4a90e2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: auto;
    width: 100%;
}

.action-button:hover {
    background-color: #357ab8;
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .controls {
        width: 100%;
        height: 50%;
        box-shadow: none;
        padding: 1rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    .select-menu {
        flex-direction: column;
    }
    .action-button {
        width: 100%;
    }
}

.warning {
    color:red;
}