body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
}

a {
  color: #ff6b81;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #e74c3c;
}

a:active {
  color: #ff4757;
}

/* Style buttons */
button {
  background-color: #e74c3c;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

button:hover {
  background-color: #ff6b81;
}

/* Style form elements */
input[type="submit"] {
  padding: 10px;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.container {
  display: flex;
  min-height: 100vh;
}

header {
  position: fixed;
  padding: 2em;
}

nav {
  background-color: #444;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav ul {
  list-style: none;
  position: fixed;
  top: 10em;
  padding: 0;
}

nav li {
  margin-bottom: 10px;
}

nav a {
  text-decoration: none;
  color: white;
  padding: 10px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #555;
}

main {
  flex: 1;
  padding: 20px;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em;
}

/* Sidebar Icon Styling */
nav i {
  font-size: 1.2em;
  margin-right: 8px;
}

/* Navbar Pressed-down Effect */
nav a:active {
  transform: translateY(2px);
}

/* Navbar Pressed-down Effect on Mobile */
@media (max-width: 768px) {
  nav a:active {
    transform: none;
  }
}
/* Header styling */
.header2 {
  display: none;
  background-color: #000;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 28px;
}

/* Hide sidebar by default */
nav {
  display: none;
}

/* Style mobile toggle button */
.mobile-toggle {
  display: none;
  background-color: #444;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* Display sidebar for wider screens and hide toggle button */
@media (min-width: 769px) {
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #444;
    width: 200px;
  }

  .mobile-toggle {
    display: none;
  }
}

/* Display toggle button for smaller screens and hide sidebar */
@media (max-width: 768px) {
  nav {
    display: none;
}
  header {
    display: none;
  }
  .nav2 {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }

  .container {
    flex-direction: column;
  }

  main {
    padding: 20px;
  }
  .header2 {
    display: block;
}
}

/* Table styling */
.contest-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
}

.contest-table th, .contest-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.contest-table th {
  background-color: #e74c3c;
  color: #fff;
}

.contest-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.contest-table tbody tr:hover {
  background-color: #ddd;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s ease-in-out;
}

textarea:focus {
  border-color: #e74c3c;
}

/* Registration form styling */
.registration-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.registration-form h3 {
  color: #333;
  font-size: 24px;
}

.form-group {
  margin: 15px 0;
}

.form-group label {
  display: block;
  text-align: left;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
}

/* Custom checkbox styling */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-label {
  font-family: 'Roboto Slab', sans-serif;
  margin-left: 10px;
  font-size: 16px;
  color: #333;
}

.checkbox-input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #e74c3c;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.checkbox-input:checked {
  background-color: #e74c3c;
}

.checkbox-input:focus {
  border-color: #ff6b81;
}

/* Hide default checkbox */
.checkbox-input::-webkit-check-mark {
  display: none;
}

/* Style checked state */
.checkbox-input:checked::before {
  content: '\2713';
  display: block;
  width: 16px;
  height: 16px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  line-height: 16px;
  background-color: #ff6b81;
  border-radius: 3px;
  position: relative;
  top: 1px;
}

/* News Post Styles */
.news-post {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px 0;
}

.news-post h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
}

.news-post p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.news-post a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.news-post a:hover {
  color: #2980b9;
}

.news-post img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 10px;
}

/* Additional Styling for News Post List */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list-item {
  border-bottom: 1px solid #ddd;
  padding: 15px;
  margin: 0;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.news-list-item p {
  margin: 10px 0;
  color: #555;
}

.news-list-item a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.news-list-item a:hover {
  color: #2980b9;
}

select {
            padding: 5px 10px;
            font-size: 16px;
            margin-right: 10px;
        }

/* Style for the thought bubble */
.thought-bubble {
  position: relative;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  max-width: 500px;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

*:focus {
  outline: none;
}
