@import "tailwindcss/preflight";
@tailwind utilities;

body {
  margin: 1rem;
  font-family: 'Arial, sans-serif';
  font-size: 16px;
  line-height: 1.5;
  list-style: none;
  text-decoration: none;
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(51, 39, 39, 0.1);
  border: 1px solid #ccc;
  font-weight: 400;
  text-transform: none;
  text-shadow: none;
  text-overflow: ellipsis;
  //overflow: hidden;
  //white-space: nowrap;
  background-color: rgb(138, 167, 216);
  color: rgb(36, 43, 56);
}
#resume {
  max-height: 400px;      /* Limit the height of the section */
  overflow-y: auto;       /* Add vertical scrollbar when content overflows */
}

/* Styling the scrollbar for #resume */
#resume::-webkit-scrollbar {
  width: 8px;  /* Width of the scrollbar */
}

#resume::-webkit-scrollbar-track {
  background: #f1f1f1;  /* Color of the scrollbar track */
}

#resume::-webkit-scrollbar-thumb {
  background: #888;     /* Color of the scrollbar thumb */
  border-radius: 10px;  /* Rounded corners */
}

#resume::-webkit-scrollbar-thumb:hover {
  background: #555;     /* Darker color when hovering */
}

.section {
  padding: 1rem;
  background-color: rgb(209, 237, 248);
}

#projects, #contact {
  background-color: rgb(76, 96, 116);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: rgb(215, 228, 250);
}

#resume, #about {
  word-wrap: break-word;
  white-space: normal;
}

h1, h2, h3, h4, p {
  margin: 0.5rem;
  padding: 0.5rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-overflow: ellipsis;
}

ul {
  list-style-position: inside;
  text-align: center;
}

li {
  display: inline-block;
  margin: 10px;
}

section {
  margin: 2rem 0;
}

section > div {
  padding: 2rem;
}

p, div, section {
  word-wrap: break-word;
  white-space: normal;
}

a {
  color: rgb(36, 43, 56);
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

a:hover {
  color: rgb(138, 167, 216);
  text-decoration: underline;
}

.my-section {
  background-color: lightblue;
  padding: 20px;
  margin: 10px 0;
  border-radius: 5px;
}

button {
  background-color: rgb(138, 167, 216);
  color: rgb(36, 43, 56);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: rgb(36, 43, 56);
  color: rgb(138, 167, 216);
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: rgb(138, 167, 216);
  outline: none;
}

textarea {
  resize: none;
  height: 80px;
  width: 20%;
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

#back-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: rgb(100, 168, 231);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 1rem;
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
  z-index: 1000;
}

#back-to-top:hover {
  background-color: rgb(7, 33, 48);
}

/* Styling the scrollbar */
::-webkit-scrollbar {
  width: 12px;  /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;  /* Color of the scrollbar track */
}

::-webkit-scrollbar-thumb {
  background: #888;     /* Color of the scrollbar thumb */
  border-radius: 10px;  /* Rounded corners */
}

::-webkit-scrollbar-thumb:hover {
  background: #555;     /* Darker color when hovering */
}
