body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Times New Roman', sans-serif, arial, monospace;
  color: #1f2937;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; 

  background-image: linear-gradient(
    135deg,
    rgb(166, 185, 205),
    #bfd1e2,
    #f2edf3,
    #bfd1e2,
    rgb(166, 185, 205)
  );
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background-image: url('images/pngwing.com (1).png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  
  opacity: 0.025; 
  z-index: -1;  
  pointer-events: none; 
}

body.register-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page {
    width: 1200px; /* Fixed maximum container width */
    min-height: 100vh;
   margin: 0; /* Centers the whole block on the screen */
    display: flex;
    gap: 90px;
    padding: 50px 20px;
    box-sizing: border-box;
    align-items: center;
}

.login-section header {
    text-align: left;
    margin-top: 0;
    margin-bottom: 30px;
}

.header-login h1 {
    margin: 0;
    font-size: 25px;
    font-weight: normal;
    letter-spacing: 5px;
    line-height: 1.1;
}


.login-section header h2 {
    margin: 10px 0 0px;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -2px;
    color: rgb(85, 109, 133);
    text-shadow: 2px 2px 4px #414a58;
}

.header-signup {
    text-align: center;
}

/*.header-signup h1 {
    margin: 0;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 5px;
    line-height: 1.1;
}*/

.header-signup h2 {
    margin: 10px 0 30px;
    font-size: 70px;
    line-height: 1;
    letter-spacing: -2px;
    color: rgb(85, 109, 133);
    text-shadow: 1px 1px 4px #414a58;
}



.right-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 600px; /* Fixed width instead of 60% */
    flex-shrink: 0;
    margin-top: 0;
}

.image-section {
    position: relative;
    width: 700px; 
    height: 350px;
    border-radius: 20px;
    overflow: visible; 
    display: flex;
    justify-content: center;
    box-shadow: 1px 1px 20px #98acc7;
    align-items: center;
    margin-right: 0;
}

.header-image {
    width: 100%;
    height: 100%;     
    object-fit: cover;
    border-radius: 20px;
    display: block;
}


.right-side .p1,
.right-side .p2,
.right-side .p3 {
    position: absolute;
    font-size: 40px;
    letter-spacing: 2px;
    color: white;
    background-color: rgb(166, 185, 205);
    border-radius: 12px;
    padding: 8px 18px;
    box-shadow: 1px 1px 10px #73849a;;
    z-index: 5;
}


.right-side .p1 {
    top: -25px;
    left: -35px;
    transform: rotate(0deg);
}

.right-side .p2 {
    bottom: -60px;
    left: 150px;
    transform: rotate(0deg);
}

.right-side .p3 {
    top: 40%;
    right: -50px;
    transform: rotate(0deg);
}


.login-section {
    width: 450px; /* Fixed width instead of 50% */
    flex-shrink: 0; /* Prevents it from shrinking */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    margin-left: 0;
}



.login-container,
.signup-container {
    background-color: rgb(166, 185, 205);
    width: 350px;
    padding: 25px 35px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.login-container h3,
.signup-container h3 {
    margin: 0;
    font-size: 25px;
    color: rgb(58, 77, 97);
    letter-spacing: 4px;
    line-height: 1.1;
}
.pinfo {
    background-color: white;
    width: 350px;
    padding: 15px 35px 30px;
    text-align: center;
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1.1;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.08);
}

.pinfo label {
    display:block;
}

.pinfo input {
    width: 85%;
    padding: 12px 15px;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 17px;
    outline: none;
}

.signup {
    text-align: center;
}

.login-button,
.signup-button {
    margin-top: 20px;
    padding: 12px 35px;
    background-color: rgb(85, 109, 133);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 3px 3px 3px rgba(2, 2, 8, 0.221);
    width: 425px;
    box-sizing: border-box;
    letter-spacing: 3px;
    line-height: 1.1;
}

.login-button:hover,
.signup-button:hover {
    background-color:rgb(73, 96, 118);
    transform: translateY(-2px);
    box-shadow: 5px 5px 4px rgba(45, 30, 59, 0.221);
}

.signup-link {
    margin-top: 25px;
    text-align: left;
    font-size: 20px;
}

.signup-link a {
    color: rgb(85, 109, 133);
    font-weight: bold;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

input {
    font-size: 25px;
    padding: 5px 20px;
}

.back-button1 {
    display: inline-block;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 20px;
    transition: color 0.2s;
    font-size: 20px;
}

.back-button1:hover {
    color: #6573a4;
    transform: scale(1.05);
}


/*MAIN PAGE*/

.navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navigation p {
    margin: 0;
    font-size: 27px;
}

.navigation a {
    color: rgb(159, 170, 181);
    text-decoration: none;
}

.navigation .feed, .myactivities {
    color: rgb(85, 109, 133);
    font-weight: bold;
}

.nav-spacer {
    visibility: hidden;
    width: 38%;
}

.logoutBtn {
    margin-right: auto; 
    margin-left: 20px;  
    font-size: 20px;
    font-weight: bold;
    color: #ce2f2f;   
    text-decoration: none;
    transition: 0.2s;
}

.logoutBtn:hover {
    color: #b72323;
    transform: scale(1.05);
}

.newactivity-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;

    width: 100px;
    height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: none;
    border-radius: 40px;
    background-color: rgb(55, 115, 172);
    color: #ffff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    font-size: 35px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.2s;
}

.newactivity-btn:hover {
    transform: scale(1.05);
    background-color: rgb(41, 96, 147);
}

/*NEW EVENT*/

.event-page {
    max-width: 700px;
    min-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

.neweventlabel {
    font-size: 28px;
    color: rgb(58, 77, 97);
    margin-bottom: 5px;
}

.event-subtitle {
    color: #505068;
    font-size: 18px;
    margin-bottom: 25px;
}

.newEventInfo {
    display: flex;
    flex-direction: column;
}

.newEventInfo label {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin-bottom: 6px;
    margin-top: 15px;
}

#title, 
#sporttype, 
#date, 
#time, 
#description, 
#location,
#eventCapacity {
    width: 100%;
    padding: 12px 14px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}

#description {
    resize: vertical;
    height: 90px;
}

.back-button2 {
    display: inline-block;
    color: rgb(58, 77, 97);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.back-button2:hover {
    color: #6573a4;
    transform: scale(1.05);
}

.createvent-btn {
    margin-top: 30px;
    background-color:  rgb(72, 140, 204);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.createvent-btn:hover {
    background-color: rgb(34, 125, 210);
    transform: scale(1.02)
}


.leaveEventBtn {
    margin-top: 30px;
    background-color:  #ce2f2f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.leaveEventBtn:hover {
    background-color: #b72323;
    transform: scale(1.02)
}







/* FEED & EVENT CARDS */
.feed-container {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 20px;
    box-sizing: border-box;
}

.event-card {
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-sport-tag {
    align-self: flex-start;
    background-color: rgb(72, 140, 204);
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.event-card h3 {
    margin: 0;
    font-size: 30px;
    color: rgb(58, 77, 97);
}

.event-meta {
    margin: 0;
    font-size: 20px;
    color: #505068;
}

.event-desc {
    margin-top: 10px;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.no-events {
    text-align: center;
    font-size: 20px;
    color: rgb(85, 109, 133);
    margin-top: 50px;
}



/*My activities page*/

.activities-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.activity-columns-wrapper {
    display: flex;
    gap: 200px; /* Total gap between columns */
    align-items: flex-start;
    position: relative; /* Needed to anchor the center line */
}

.activity-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Draws a centered line right down the middle of the wrapper */
.activity-columns-wrapper::after {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #d1d5db; 
    transform: translateX(-50%); /* Shifts it perfectly to the center point */
}

.section-title {
    font-size: 24px;
    color: rgb(58, 77, 97);
    background-color: #aabdd5;
    border-radius: 10px;
    border: 2px solid #a1b3c5;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.column-feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.activity-column .event-card {
    width: 100%;
    box-sizing: border-box;
}

/* ACTIVITY ROLE BADGES */
.role-badge {
    font-size: 13px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.hosted-badge {
    background-color: #fef3c7; 
    color: #92400e;
}

.joined-badge {
    background-color: #d1fae5; 
    color: #065f46;
}