@font-face {
  font-family: 'SabicFont';
  src: url('SABICTypefaceHeadline_Rg.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding-top: 20px;
  background-color: #fff;
  text-align: center;
  font-family: 'SabicFont';
}

#imagePicker, #colorPicker, .parent-container {
  text-align: center;
}

.image-container, .controls, button {
  align-items: flex-start;
  width: 100%;
}

.controls {
  align-items: flex-start;
}

.parent-container {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 10px;
}

.input-group {
  display: flex;
  align-items: center;
  font-family: 'SabicFont';
}

.image-container, .controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

#imageCanvas {
  border: 1px solid #ccc;
  border-radius: 2%;
}

input[type="text"], #nameInput {
  padding: 10px;
  margin-bottom: 10px;
  border: 2px solid #008dcf;
  border-radius: 5px;
  background: transparent;
  position: relative;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  font-family: 'SabicFont';
}

input[type="text"]:focus, #nameInput:focus {
  outline: none;
  background-color: #ededed;
}

button {
  background-color: #05aff2;
  border-radius: 8px;
  border-width: 0;
  color: #eff9ff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin: 20px;
  padding: 10px 12px;
  text-align: center;
  transition: all 200ms;
  width: 300px;
  font-family: 'SabicFont';
}

button:hover {
  background-color: #008dcf;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

#imagePicker, #colorPicker {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 48px;
}

#imagePicker label, #colorPicker label {
  margin: 5px;
  display: flex;
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

.color-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 15%;
  margin: 10px;
  cursor: pointer;
  position: relative;
}

#colorPicker input[type="radio"] {
  opacity: 0;
  position: absolute;
}

#colorPicker .tick-mark {
  display: none;
}

#colorPicker input[type="radio"]:checked + .tick-mark {
  display: block;
  color: #05aff2;
  position: absolute;
  font-size: 18px;
}

span:not(.tick-mark) {
  color: #05aff2;
  font-weight: bold;
  margin-bottom: 15px;
}

#imagePicker label {
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin: 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#imagePicker label:hover,
#imagePicker input[type="radio"]:checked + label {
  background-color: #dff3ff;
}

#imagePicker input[type="radio"]:checked + label {
  background-color: #dff3ff;
  border-color: #b6d4f2;
}

#imagePicker input[type="radio"]:focus + label {
  outline: 2px solid #30c6ff;
}

#imagePicker input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
