body {
  	background: url('back/darkslide.png') no-repeat center center fixed;
    background-size: cover;
    background-color: black;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

h1
{
    font-size: 60px;
    text-align: center;
}

#menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 30px;
    z-index: 1001;
    color: white;
    cursor: pointer;
}

#menu {
    background-color: #202020;
    width: 0;
    height: 100vh;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.5s, opacity 0.5s;
}

#menu.open {
    width: 250px;
    opacity: 1;
}

#main {
    margin-left: 0;
    padding: 20px;
    box-sizing: border-box;
    transition: margin-left 0.5s;
}

.options {
    padding: 20px;
    border-bottom: 2px solid white;
    text-align: center;
}

.options:hover {
    background-color: #00fff747;
    cursor: pointer;
}

#maincontent {
    padding: 20px;
    box-sizing: border-box;
}

#footer {
    width: 100%;
    background-color: #151515;
    color: white;
    padding: 20px 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

#footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    text-align: center;
}

.footer-section {
    flex: 1;
    padding: 10px;
    min-width: 200px;
}

#footer-download a, #footer-copyright a {
    color: #00cccc;
    text-decoration: none;
}

#footer-download a:hover, #footer-copyright a:hover {
    text-decoration: underline;
}

#footer-copyright {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

@media (max-width: 768px) {
    #footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 100%;
    }
}

.dropdown-menu {
    display: none;
    background-color: #303030;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 999;
    padding-top: 20px;
}

.dropdown-menu .options {
    border-bottom: 2px solid white;
    text-align: center;
}

.dropdown-menu .options a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}

#footer-social p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

#social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#social-icons span a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
}

#social-icons span:hover a {
    color: #00cccc;
}

#social-icons span a:hover {
    text-decoration: underline;
}

#motivation {
    background-color: #303030;
    color: #85ffa0; 
    border-left: 5px solid #00cccc;
    border-right: 5px solid #00cccc;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#motivation h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#motivation h3 {
    font-size: 18px;
    font-weight: normal;
    color: #ffffff;
}

.podsumowanie {
    background-color: #303030;
    color: #ffffff;
    border-left: 5px solid #00cccc;
    border-right: 5px solid #00cccc;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#logowanie {
    max-width: 500px;
    background-color: #202020;
    color: #ffffff;
    border: 2px solid #09967e;
    padding: 20px;
    margin: 40px auto;
    border-radius: 8px;
    text-align: center;
  	margin-bottom: 150px;
}

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

.input-wrapper {
    margin: 5px 0;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #303030;
    color: #fff;
    border: 1px solid #08866e;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: text;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none !important;
    border-color: #ffffff !important;
}

button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #09967e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1aa78f;
}

.hidden-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#Ustawienia-1 {
    background-color: #202020;
    margin-top: 40px;
    border-radius: 10px;
    border: 4px solid #22fff969;
    width: 100%;
}

#napis-ustawienia {
    text-align: center;
    text-decoration: wavy;
}

.Ustawienia-1-opcje {
    background-color: #202020;
    margin: 0px 50px;
    width: auto;
}

h2 {
    font-size: 24px;
}

.u-opcje {
    text-align: left;
    float: left;
}

.u-opcje-button {
    text-align: right;
}

#rejestracja {
    min-width: fit-content;
  	max-width: 1100px;
  	min-height: 250px;
    background-color: #202020;
    color: #ffffff;
    border: 2px solid #09967e;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
}

#regLeft {
  	margin: 25px;
  	width: 500px;
    float: left;
}

#regRight {
  	margin: 25px;
  	width: 500px;
    float: left;
}

#Preg a {
    color: white !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

#Preg a:hover {
    color: #20b246 !important;
    text-decoration: underline !important;
}

#dodaj-btn {
  	max-width: 600px;
    margin: 50px auto;
  	cursor: pointer; 
  	background-color: #202020;
  	padding: 10px; 
  	text-align: center;
  	border: 2px solid #09967e;
 	border-radius: 100px;
}

#NewPrzedmiot {
  	background-color: #202020;
  	max-width: 600px;
  	padding: 10px; 
  	text-align: center;
  	border: 2px solid #09967e;
 	border-radius: 10px;
  	display: none;
  	margin-top: 20px;
  	margin: 10px auto;
  	
}

#lista-przedmiotow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.przedmiotOD {
    display: flex;
    justify-content: center;
}

.PREprzedmiot {
    width: 800px;
    min-height: 50px;
    background-color: #202020;
    padding: 10px;
    text-align: center;
    border: 2px solid #09967e;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#start-circle {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background-color: #202020;
  padding: 10px;
  text-align: center;
  border: 8px solid #09967e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 100px auto;
  cursor: pointer;
}

#modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-content {
  background: #202020;
  padding: 20px;
  border-radius: 10px;
  width: 500px;
  text-align: center;
  color: white;
  margin: 100px auto;
}


.onas, .updateIndex, .pindex {
   	background-color: #303030;
    color: #ffffff;
    border-left: 5px solid #00cccc;
    border-right: 5px solid #00cccc;
    padding: 20px;
    margin: 40px;
    min-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.onas h1, .updateIndex h2, .pindex h2 {
    color: #fffff;
}

.updateIndex p, .onas p, .pindex p {
    font-size: 16px;
    color: #eeeee;
}

.pindex a {
  	color: #20b246;
    text-decoration: none;
    font-weight: bold;
}

.pindex a:hover {
    color: #10a135;
    text-decoration: underline;
}

#RegulaminNagłówek {
  	background-color: #303030;
  	border-left: 5px solid #09967e;
    border-right: 5px solid #09967e;
  	border-radius: 10px;
	color: #ddddd;
  	font-size: 32px;
  	font-weight: bold;
  	margin: 40px auto;
  	width:800px; 
    text-align: center;
}

.REGULAMIN {
  	background-color: #303030;
  	border-radius: 5px;
  	border: 4px solid #09967e;
	color: #ddddd;
  	font-size: 20px;
  	margin: 40px auto;
  	padding: 30px;
  	width:850px;
  	text-align: center;
}

.REGULAMIN h1 {
  	text-align: center;
  	color: #eeeee;
  	font-size: 28px;
}


#resseto {
    text-align: center;
    width: 400px;
  	background-color: #303030;
  	border-radius: 5px;
  	border: 4px solid #09967e;
	color: #ddddd;
  	margin: 40px auto;
}


#calendar {
  min-width: fit-content;
  margin: 20px auto;
  border: 1px solid #ccc;
  padding: 10px;
}

#calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-cell {
  position: relative;
  border: 1px solid #ddd;
  padding: 10px;
  min-width: 200px;
  background-color: #303030;
  cursor: pointer;
  border-radius: 4px;
}

.calendar-cell.empty {
  background-color: #303030;
  cursor: default;
}

.cell-date {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.8em;
  color: #555;
}

.events-container {
  margin-top: 30px;
  overflow-y: auto;
  max-height: 140px;
}

.event {
  background-color: #404040;
  margin: 2px 0;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.8em;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #404040;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  position: relative;
  border-radius: 4px;
}

.modal-content .close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

#event_date, #event_type, #subject, #topics_count, #note {
    margin: 5px 0;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #303030;
    color: #fff;
    border: 1px solid #08866e;
    border-radius: 4px;
}

#event_date {
    display: none;
}

#event_type, #subject {
    cursor: pointer;
}

#topics_count {
    cursor: ew-resize;
}

#note {
    resize: vertical;
    cursor: text;
}

#event_type:hover, #subject:hover, #topics_count:hover, #note:hover {
    border-color: #0ba98b;
}

#event_type:focus, #subject:focus, #topics_count:focus, #note:focus {
    outline: none;
    border-color: #0dc2a3;
    box-shadow: 0 0 5px rgba(13, 194, 163, 0.5);
}

#weekContainer {
  	width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    background: #303030;
    border: 1px solid #ccc;
}

#weekHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #303030;
}

#weekLabel {
    font-size: 18px;
    font-weight: bold;
}

#weekHeader button {
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

#dayNames {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background: #303030;
    border-bottom: 1px solid #ccc;
}

.dayName {
    text-align: center;
    font-weight: bold;
    padding: 5px;
    border-right: 1px solid #ccc;
}

.dayName:first-child {
    background: #303030;
    border-right: none;
}

#weekGrid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    position: relative;
    height: 1200px;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

.timeLabelCell {
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding: 2px;
    font-size: 12px;
    text-align: right;
}

.dayTimeCell {
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    position: relative;
}

.taskBlock {
    position: absolute;
    background: rgba(0,128,255,0.6);
    padding: 2px;
    font-size: 12px;
    overflow: hidden;
    cursor: pointer;
}

#taskModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
}

#taskModalContent {
    background: #404040;
    max-width: 400px;
    width: 90%;
    margin: 100px auto;
    padding: 20px;
    border-radius: 6px;
    position: relative;
}

#taskModalContent h2 {
    margin-top: 0;
}

#taskModalContent input,
#taskModalContent select,
#taskModalContent textarea,
#repeatWeeks number {
    margin: 5px 0;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #303030;
    color: #fff;
    border: 1px solid #08866e;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
}

#taskModalContent button {
    padding: 6px 10px;
    margin: 5px 0;
}

#closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
}

#notatka-box {
    width: 80%;
    max-width: 600px;
    background: #fff8dc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 20px auto;
}

#notatka-tresc {
    font-size: 18px;
    font-style: italic;
    color: #333;
    min-height: 100px;
}

#nowa-notatka {
    margin-top: 10px;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#nowa-notatka:hover {
    background: #0056b3;
}

#formularz-notatki {
    width: 80%;
    max-width: 500px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    text-align: center;
}

#notatka-form input, #notatka-form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

#notatka-form button {
    padding: 10px 15px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

#notatka-form button:hover {
    background: #218838;
}

.testyokienko {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.testykontent {
    background: #444;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.zambknij-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.testylisty {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testycardcard {
    background: #555;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: left;
   	border: 1px solid #08866e !important;
  	border-radius: 4px;
}

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