/* font-family: 'Raleway', sans-serif; */

body,
html {
	height: 100vh;
	font-family: "Raleway", sans-serif;
}

body {
	margin: 0;
	background-color: rgb(59, 241, 135);
	display: grid;
	grid-template-columns: 50% 50%;
	grid-template-rows: 7% auto 31%;
	grid-template-areas:
		"heading heading"
		"simulator code"
		"user-input controller";
}

h1 {
	color: white;
	text-align: center;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
}

#board {
	margin: 4px, 4px;
	padding: 4px;
	width: 100%;
	height: 98.6%;
	overflow-x: hidden;
	overflow-y: auto;
	text-align: justify;
}

.heading {
	grid-area: heading;
	text-align: center;
	background-color: rgb(59, 241, 135);
}

main {
	grid-area: simulator;
	background-color: #006eff;
	display: flex;
	flex-direction: column;
	align-items: center;
}

main > .iterations {
	display: flex;
	align-items: center;
	justify-content: center;
}

.code-editor {
	grid-area: code;
	overflow-x: hidden;
	overflow-y: auto;
	background-color: #12026d;
}

.gcd-algo {
	color: yellow;
	/* display: flex; */
	/* flex-direction: column; */
	font-size: 20px;
	/* justify-content: flex-start; */
	/* align-items: center; */
}

#user-input {
	grid-area: user-input;
	background-color: #081aa3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.input-field-decoration {
	color: white;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.input-field-decoration > input {
	width: 30%;
	height: 20%;
	border: none;
	outline-style: none;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	padding: 5px;
	border-radius: 6px;
}

.controller {
	grid-area: controller;
	background-color: #051690;
	display: flex;
	align-content: center;
	justify-content: center;
}

.btn {
	font-family: "Raleway", sans-serif;
	font-weight: 600;
	font-size: 20px;
	padding: 2%;
	margin: 10%;
	border: none;
	outline-style: none;
	border-radius: 10px;
}

.btn:hover {
	background-color: rgb(71, 235, 235);
}



*, *::after, *::before {
    box-sizing: border-box;
  }
  
  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 200ms ease-in-out;
    border: 1px solid black;
    border-radius: 10px;
    z-index: 10;
    background-color: white;
    width: 500px;
    max-width: 80%;
  }
  
  .modal.active {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .modal-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid black;
  }
  
  .modal-header .title {
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  .modal-header .close-button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  .modal-body {
    padding: 10px 15px;
  }
  
  #overlay {
    position: fixed;
    opacity: 0;
    transition: 200ms ease-in-out;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    pointer-events: none;
  }
  
  #overlay.active {
    opacity: 1;
    pointer-events: all;
  }