body {
  background: linear-gradient(135deg, #1a1c1f 0%, #222326 50%, #1a1c1f 100%);
  color: white;
  font-family: 'Sen', Arial, Helvetica, sans-serif;
  text-align: center;
  min-height: 100vh;
  margin: 0;
  background-attachment: fixed;
}

button{
  /*font-family: Arial, Helvetica, sans-serif;*/
  background-color: white;
  border-radius: 12px;
  border: none;
  color: black;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 2px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

p {
  font-weight: normal;
  color: #99aab5;
}

h5 {
  color: #99aab5;
}

h1 {
/*  border-bottom-style: solid;
  border-bottom-color: #99aab5;
  border-bottom-width: 1px;*/
  /*display: inline-block;*/
}

select {
  font-family: 'Sen', Arial, Helvetica, sans-serif;
  font-size: 24px;
  border-radius: 12px;
  background-color: #202225;
  border-style: none;
  color: white;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

button:focus {
  outline: none;
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
  resize: none;
  border-radius: 12px;
  border: 2px solid transparent;
  color: black;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 2px;
  font-weight: bold;
  padding: 10px;
  transition: all 0.3s ease;
  background-color: white;
}

textarea:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
  transform: scale(1.05);
}

img {
  border-radius: 12px;
  /*border-color:  #99aab5;*/
  /*border-width: 5px;*/
  /*border-style: solid;*/
  margin: auto;
  box-shadow: 0 5px 10px rgb(0 0 0 / 0.2);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

label {
  border-radius: 12px;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 8px 12px;
}

label:hover {
  color: #5865f2;
}

#special {
  background: linear-gradient(135deg, #434547 0%, #99aab5 100%);
  border-radius: 12px;
  border: none;
  color: #ffffff;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  margin: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#special:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

a {
  /*color: deepskyblue;*/
  display: inline-block;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  color: white;
  padding: 0.5em 1em;
  margin: 0.2em;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 5px 10px rgb(0 0 0 / 0.2);
  max-width: fit-content;
  transition: all 0.3s ease;
  font-weight: bold;
}

a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(88, 101, 242, 0.4);
}

a:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

span {
  color: #3ca45c;
  background-color: #202225;
  /*background-color: #3ca45c;*/
  /*font-family: monospace;*/
}

#copy {
  font-size: 20px;
  background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

#copy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#copy:active::before {
  width: 300px;
  height: 300px;
}


.reset {
  background: linear-gradient(135deg, #ee4245 0%, #c44569 100%);
  color: white;
  padding: 15px;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reset:hover {
  transform: rotate(180deg) translateY(-2px);
}

.reset:active {
  transform: rotate(180deg) translateY(0);
}


.highlighted {
  background-color: hsl(225deg 6% 22%);
  border-radius: 16px;
  padding: 1px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  background-image: linear-gradient(hsl(225deg 6% 22%), hsl(225deg 6% 22%)), 
                    linear-gradient(135deg, #5865f2, #7289da);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  display: flex;
  flex-direction: column;
  min-height: 95vh;
  max-width: 850px;
  /*min-width: 600px;*/
  margin: 0 auto;
  padding: 20px;
  justify-content: center;
  box-sizing: border-box;
}

main > div {
  background-color: #2c2f33;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 40px;
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

main > div::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/*main > div::after {
  content: " ";
  position: absolute;
  top: 50%;
  width: 100px;
  height: 100vh;
  transform: translate(-450%, -50%);
  z-index: -1;
  background-color: #3ca45c;
  opacity: 0.5;
}*/

.popup {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  opacity: 0.9;
  animation: popupSlide 2s ease-in-out;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

@keyframes popupSlide {
  0% { 
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  10%, 90% { 
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% { 
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* Custom radio button styling */
input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #99aab5;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  vertical-align: middle;
  margin-right: 8px;
}

input[type="radio"]:hover {
  border-color: #5865f2;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.3);
}

input[type="radio"]:checked {
  border-color: #5865f2;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: radioPulse 0.3s ease-out;
}

@keyframes radioPulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Smooth mode transitions */
.relative, .nonrelative {
  transition: all 0.4s ease;
}

.relative[hidden], .nonrelative[hidden] {
  display: none !important;
}

/* Heading animations */
h1 {
  animation: titleGlow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
  }
  to {
    text-shadow: 0 0 30px rgba(114, 137, 218, 0.5);
  }
}

h2 {
  animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Logo pulse animation */
img[src="logo.webp"] {
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
  }
}

/* Example image smooth transition */
#exampleimg {
  animation: fadeIn 0.5s ease-out;
}

/* Number input improvements */
input[type="number"] {
  border-radius: 12px;
  border: 2px solid transparent;
  color: black;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 8px;
  width: 80px;
  transition: all 0.3s ease;
  background-color: white;
  margin: 4px;
}

input[type="number"]:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
  transform: scale(1.05);
}

input[type="number"]:hover {
  border-color: #7289da;
}

/* Hide spinner buttons for cleaner look */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
  height: 40px;
}

/* Font separator styling */
font {
  color: #99aab5;
  font-weight: bold;
  margin: 0 4px;
  transition: color 0.3s ease;
}

/* Time/Date input container */
.nonrelative p, .relative {
  animation: fadeIn 0.5s ease-out;
}

/* Material Icons hover effect */
.material-icons {
  transition: transform 0.3s ease;
}

button:hover .material-icons {
  transform: scale(1.1);
}

/* Gradient text for headings */
h1 {
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 20px 0;
}

/* Visual separation */
.type-selector {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

/* Add responsive design improvements */
@media (max-width: 768px) {
  input[type="number"] {
    width: 70px;
    font-size: 16px;
    padding: 10px 6px;
  }
  
  main {
    padding: 10px;
  }
  
  main > div {
    padding: 20px;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  label {
    font-size: 18px;
    display: block;
    margin: 8px 0;
  }
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhance the gradient border animation */
@keyframes borderGlow {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(20deg) brightness(1.1);
  }
}

.highlighted {
  animation: fadeIn 0.6s ease-out, borderGlow 8s ease-in-out infinite;
}

/* Add subtle shimmer effect to buttons */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

button:not(.reset):not(#copy):hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

button:not(.reset):not(#copy) {
  position: relative;
  overflow: hidden;
}

/* Format preview styling */
.format-preview {
  background-color: rgba(88, 101, 242, 0.1);
  border: 2px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 16px;
  color: #7289da;
  font-weight: bold;
  display: inline-block;
  margin: 10px 0;
  min-width: 200px;
  animation: fadeIn 0.5s ease-out;
}

/* Improved datetime input styling */
.datetime-inputs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.input-label {
  font-size: 12px;
  font-weight: bold;
  color: #7289da;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 0;
}

.datetime-inputs input[type="number"] {
  width: 70px;
  font-size: 20px;
  padding: 14px 8px;
  text-align: center;
  border-radius: 12px;
  border: 2px solid #404347;
  background-color: #2c2f33;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.datetime-inputs input[type="number"]:focus {
  border-color: #5865f2;
  background-color: #36393f;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
  transform: scale(1.05);
}

.datetime-inputs input[type="number"]:hover {
  border-color: #7289da;
  background-color: #36393f;
}

.separator {
  font-size: 24px;
  font-weight: bold;
  color: #7289da;
  margin: 0 4px;
  padding-bottom: 8px;
}

.time-separator {
  margin: 0 12px;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
  .datetime-inputs {
    gap: 6px;
  }
  
  .datetime-inputs input[type="number"] {
    width: 60px;
    font-size: 18px;
    padding: 12px 6px;
  }
  
  .separator {
    font-size: 20px;
  }
  
  .input-label {
    font-size: 10px;
  }
  
  .time-separator {
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .datetime-inputs {
    gap: 4px;
  }
  
  .datetime-inputs input[type="number"] {
    width: 50px;
    font-size: 16px;
    padding: 10px 4px;
  }
  
  .separator {
    font-size: 18px;
    margin: 0 2px;
  }
  
  .time-separator {
    margin: 0 6px;
  }
  
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.3em;
    padding: 10px;
  }
  
  p {
    font-size: 13px;
  }
  
  main > div {
    padding: 15px 10px;
  }
  
  .radio-group label {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .format-preview {
    font-size: 14px;
    padding: 10px 15px;
    min-width: 150px;
  }
  
  #datetimeInputField {
    font-size: 16px;
  }
  
  button {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  #copy {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
/* DateTime Picker Styles */
.datetime-picker-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

.datetime-input-field {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.datetime-input-field input {
  width: 100%;
  padding: 14px 50px 14px 50px;
  font-size: 16px;
  border: 2px solid #404347;
  border-radius: 12px;
  background-color: #2c2f33;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.datetime-input-field input:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.datetime-input-field .material-icons {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7289da;
  cursor: pointer;
  transition: color 0.3s ease;
}

.datetime-input-field:hover .material-icons {
  color: #5865f2;
}

/* DateTime Picker Modal */
.datetime-picker-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #2c2f33;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-width: 600px;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.picker-content {
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* Date Picker Section */
.date-picker-section {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.picker-nav-btn {
  background: none;
  border: none;
  color: #7289da;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.picker-nav-btn .material-icons {
  font-size: 20px;
}

.picker-nav-btn:hover {
  background-color: rgba(88, 101, 242, 0.1);
  color: #5865f2;
}

.picker-month-year {
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.calendar-grid {
  width: 100%;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.calendar-day-label {
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #99aab5;
  padding: 4px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: white;
  transition: all 0.3s ease;
  background-color: transparent;
  border: none;
  font-weight: 500;
  padding: 0;
  min-height: 28px;
}

.calendar-day:hover:not(.disabled):not(.selected) {
  background-color: rgba(88, 101, 242, 0.2);
}

.calendar-day.selected {
  background-color: #5865f2;
  color: white;
  font-weight: bold;
}

.calendar-day.today {
  border: 2px solid #5865f2;
}

.calendar-day.disabled {
  color: #555;
  cursor: not-allowed;
}

.calendar-day.other-month {
  color: #666;
}

/* Time Picker Section */
.time-picker-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 280px;
}

.clock-display {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clockCanvas {
  width: 280px;
  height: 280px;
  cursor: pointer;
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #5865f2;
  border-radius: 50%;
  z-index: 3;
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 3px;
  height: 95px;
  background-color: #5865f2;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  z-index: 2;
}

.clock-hand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  background-color: #5865f2;
  border-radius: 50%;
  border: 3px solid #2c2f33;
}

.time-ampm-toggle {
  display: flex;
  gap: 8px;
}

.ampm-btn {
  padding: 8px 24px;
  border: 2px solid #404347;
  border-radius: 8px;
  background-color: transparent;
  color: #99aab5;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ampm-btn:hover {
  border-color: #5865f2;
  color: #5865f2;
}

.ampm-btn.active {
  background-color: #5865f2;
  border-color: #5865f2;
  color: white;
}

/* Picker Actions */
.picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #404347;
}

.picker-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cancel-btn {
  background-color: transparent;
  color: #99aab5;
}

.cancel-btn:hover {
  background-color: rgba(153, 170, 181, 0.1);
  color: white;
}

.ok-btn {
  background-color: #5865f2;
  color: white;
}

.ok-btn:hover {
  background-color: #4752c4;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .datetime-picker-wrapper {
    max-width: 90%;
    padding: 0;
  }
  
  .datetime-input-field {
    max-width: 100%;
  }
  
  .datetime-picker-modal {
    min-width: 90vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .picker-content {
    flex-direction: column;
    padding: 16px;
  }
  
  .date-picker-section,
  .time-picker-section {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .datetime-picker-wrapper {
    max-width: 85%;
    padding: 0;
  }
  
  .datetime-input-field input {
    padding: 12px 44px 12px 44px;
    font-size: 14px;
  }
  
  .datetime-picker-modal {
    min-width: 95vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .calendar-day {
    font-size: 11px;
    min-height: 32px;
  }
  
  .calendar-day-label {
    font-size: 10px;
  }
  
  .picker-month-year {
    font-size: 13px;
  }
  
  .clock-display {
    width: 220px;
    height: 220px;
  }
  
  #clockCanvas {
    width: 220px;
    height: 220px;
  }
  
  .clock-hand {
    height: 75px;
  }
  
  .clock-hand::before {
    width: 30px;
    height: 30px;
  }
  
  .time-ampm-toggle {
    gap: 8px;
  }
  
  .ampm-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .picker-actions {
    gap: 10px;
    padding: 12px 16px;
  }
  
  .cancel-btn,
  .ok-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
