 body {
  margin: 0;
  padding: 0;
  padding-top: 60px;
  background: linear-gradient(135deg, #3857e1 0%, #872de2 100%);
  min-height: 100vh;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: wheat;
  padding: 10px;
  border: 3px solid black;
  z-index: 1000;
}
.navbar-links {
  text-align: right;
  margin-right: 20px;
}
.navbar a {
  text-decoration: none;
  color: black;
  margin-left: 25px;
  font-weight: bold;
}
.navbar :hover {
  color: #3857e1;
}
.dropdown {
  display: inline-block;
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
  border: 2px solid black;
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: wheat;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content:hover {
  display: block;
}

.container{
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}
h1{
    color: black;
    border-bottom: 3px solid black;
    padding-bottom: 10px;
    text-align: center;
}
.tasks-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    text-align: center;
    gap: 20px;
}
.task-box{
    background-color: wheat;
    border: 2px solid black;
    padding: 20px;
    border-radius: 10px;
}
.task-box p{
    color: rgb(0, 0, 0);
}
.task-link{
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    color: blue;
    background-color: #e1d8a8;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.task-link:hover{
    background-color: lime;
}

/* Task 1 */
.box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 100px;
}

.redbox {
  background-color: #ff4444;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid black;
  border-radius: 15px;
  color: lime;
}

.redbox:hover {
  background-color: #4444ff;
}

.bluebox {
  background-color: #4444ff;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid black;
  border-radius: 15px;
  color: lime;
  cursor: pointer;
}

.bluebox:hover {
  background-color: #ff4444;
}
/* Task 3 */
.Formcontainer {
  margin: 100px auto 0;
  width: 250px;
  padding: 15px;
  border: 5px solid lime;
  border-radius: 10px;
  background-color:black;
}
#UserName::placeholder,
#password::placeholder {
  color: lime;
  text-align: center;
 }
.Usercontainer input,
.passwordcontainer input{
border: 3px solid lime;
box-sizing: border-box;
  border-radius: 5px ;
  padding:5px ;
  width: 100%;
  color: lime;
 }
.Usercontainer,
.passwordcontainer,
.checkcontainer
 {
  width: 100%;
  color: lime;
  margin-bottom: 5px;
}
.Usercontainer label,
.passwordcontainer label{
    display: block;
}

.logincontainer input[type="submit"]{
    border: 2px;
    border-radius: 5px;
    background-color: lime;
    width: 100%;
    padding: 5px;
}

/* Task 4 */
table {
  width: 50%;
  margin: 100px auto;
  border-collapse: collapse;
   border-radius: 15px;
  overflow: hidden;
}

table th {
  background-color: wheat;
  color: black;
  padding: 15px;
  text-align: center;
  font-weight: bold;
}

table td {
  padding: 5px 5px;
  text-align: center;
}

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

table tr:nth-child(odd) {
  background-color: white;
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    body {
        padding-top: 30px;
    }

    .dropdown-content {
        min-width: 200px;
        max-height: 300px;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
}