@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Montserrat", sans-serif;
    background: #111111;
    color: #fff;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-weight: 500;
}

body>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20%;
    margin-right: 20%;
    padding: 5%
}

h1 {
    font-size: 3em;
    text-align: center;
}

/* pages */
.page {
    display: none;
}

.page.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

input[type="text"] {
    width: 100%;
    font-size: 1.1em;
    padding: 1.5%;
    margin-bottom: 5%;
    margin-top: 10%;
    outline: none;
}

.boardCanvas {
    border: 1px solid white
}

.boardCanvasDraw {
    border: 1px solid white
}

.download {
    margin: 3%;
    padding: 2%;
    border-radius: 100vh;
    border: 2px solid white;
    background: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
    
}

.download:hover {
    box-shadow: white 0 0 10px;
}

#palette {
    display: flex;
    gap: 0;
    margin: 1%;
    margin-top: 3vh;
    border: 1px solid rgba(255, 255, 255, 0.599);
    height: 3vh;
}

#palette>div {
    height: 100%;
    aspect-ratio: 1/1;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

#palette>div.selected {
    border: 2px solid white;
}

/* segmented control */
.seg-control {
    --count: 3;
    background: none;
    position: relative;
    width: 30vw;
    height: 6vh;
    border-radius: 100vh;
    display: flex;
    user-select: none;
    border: 2px solid white;
}

.slider {
    position: absolute;
    width: calc(100% / var(--count));
    height: 100%;
    background: white;
    border-radius: 100vh;
    transition: transform 0.25s ease;
}

.option {
    flex: 1;
    border: none;
    background: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;

    z-index: 2;
}

.option.active {
    color: black;
}
