* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.container{
    height: 100vh;
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: 70px 1fr;
    font-family: 'Roboto', sans-serif;
}

.header{
    grid-column: 1 / 3;
    background: rgb(250, 250, 250);
    display: flex;
    align-items: center;
    padding: 0 30px;
    letter-spacing: 5px;
    color: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.2);
    color: #2c0075;
    z-index: 5000;
}

.header h1{
    margin: 0;
}

.sidebar{
    box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.modes{
    padding: 10px 20px;
    box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.modes > div{
    opacity: 0.55;
    cursor: pointer;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.0);
    transition: all .5s;
    padding: 5px;

    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
    font-weight: 400;
    color:rgb(44, 0, 117);
}

.modes > div:hover{
    background: rgba(0, 0, 0, 0.05);
    opacity: 1 !important;
    font-weight: 700 !important;
}

.modes > div:hover > img{
    transform: rotate(15deg);
}


.activeMode{
    opacity: 1 !important;
    font-weight: 700 !important;
}

.activeMode > img {
    transform: rotate(0deg) !important;
}

.modes img{
    height: 35px;
    margin: 5px;
    transform: rotate(0deg);
    transition: transform 0.5s;
}

.settingsHidden{
    visibility: hidden; 
}

.details{
    flex: 1;
    padding: 20px;
}

.removeContainer > button{
    top: 15px;
}

canvas{
    z-index: 9;
    margin: 0;
    background: rgba(44, 0, 117, 0.1);
    background-color: #ebebeb;
}

.canvasContainer{
    padding: 0;
    overflow: hidden;
}

.cords {
    position: fixed;
    bottom: 10px;
    right: 10px;
    pointer-events: none;
    user-select: none;
}

.settings{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 10px;
}

button{
    font-size: 18px;
    outline: none;
    background: none;
    border-radius: 5px;
    padding: 8px;
    color: white;
    border: none;
    background-color: #2c0075;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.5s;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 3px;
}

button:hover{
    background-color: rgb(29, 0, 77);
}

.modalContainer{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    z-index: 4000;
    font-weight: 400;
    pointer-events: none;
    font-family: 'Roboto', sans-serif;
    color: rgb(44, 0, 117);
}

.modalContainer.modalShown {
    pointer-events: all;
}

.modalContainer.modalShown > .modalContent{
    transform: translateY(0);
}

.container.modalShown > .sidebar,.container.modalShown > .canvasContainer{
    filter: blur(2px);
}

.modalContent {
    background: white;
    border-radius: 10px;
    min-width: 60vw;
    max-width: 70vw;
    height: 50vh;
    position: relative;
    transform: translateY(120vh);
    transition: all 0.5s;
}

.modalContent > img {
    position: absolute;
    top: 6px;
    right: 16px;
    height: 20px;
    cursor: pointer;
    transform: rotate(0deg) scale(1);
    transition: all 0.5s;
}

.modalContent > img:hover {
    transform: rotate(180deg) scale(1.2);
}

.modalContent > div {
    padding: 50px;
    max-height: 100%;
    overflow-y: scroll;
}

.modalContent>div::-webkit-scrollbar {
    width: 10px;
}
 
.modalContent>div::-webkit-scrollbar-track {
    background-color: white;
}
 
.modalContent>div::-webkit-scrollbar-thumb {
    background: rgb(44, 0, 117);
    border-radius: 5px;
    box-shadow: inset 0 0 6px rgba(44, 0, 117, 0.5);
}

.rulesContainer{
    display: flex;
    flex-direction: column;
}
.removeContainer{
    display: flex;
    justify-content: center;
    margin-top: 15px;
    flex: 1;
}

.removeContainer > button{
    flex: 1;
}

.lineSettings{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lineSettings > input[type="number"]{
    font-size: 25px;
    width: 0;
    flex: 1;
    margin-right: 20px;
}

#MakeBezier {
  margin-top: 10px;
}

.checkboxBox > input[type="checkbox"]{
    height: 30px;
    width: 30px;
    margin: 0;
    background-color: red;;
}

.checkboxBox{
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
