/* Basic */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hidden {
	display: none;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


/* Background */
.background-image {
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('background.png');
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.background-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}


/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-background {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: white;
  width: 60%;
  height: 85%;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  border-radius: 20px;
}

.overlay-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
	align-items: baseline;
}

.overlay-title {
    margin-left: 10px;
}

.close-btn {
    background: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: black;
	height:10%;
	width:10%;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #f5f5f5;
}

.overlay-content {
	height: 84%;
    margin: 10px;
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #aaa #f5f5f5; /* For Firefox */
}


/* Title */
.title-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}
        
.title-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.website-icon {
	width: 60px;
	height: 60px;
	background: white;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.website-icon i {
    font-size: 30px;
    color: #5D5CDE;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}


/* Search bar */
.search-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
}

.search-input-group {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 15px 60px 15px 20px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #5D5CDE;
    box-shadow: 0 0 0 0.2rem rgba(93, 92, 222, 0.25);
    outline: none;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #5D5CDE;
    border: none;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-button:hover {
    background: #4a49c7;
    transform: translateY(-50%) scale(1.05);
}

.option-container {
    margin-top: 15px;
}

.form-check-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    border-color: black;
}

.form-check-input:checked {
    background-color: #5D5CDE;
    border-color: #5D5CDE;
}


/* Buttons */
.buttons-section {
    width: 100%;
    max-width: 800px;
}

.action-button {
    background: #7170EE;
    border: 3px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.action-button:hover {
    background: #5D5CDE;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 92, 222, 0.4);
}


/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
		background: black;
    }

    label {
        color: white;
    }

    .background-image::after {
        background: rgba(0, 0, 0, 0.5);
    }
	
	.overlay-background {
		background-color: #2a2a2a;
	}
	
	.overlay-title {
		color: white;
	}
	
	.overlay-content {
		color: white;
	}

    #main_search_button {
		background: #55d;
    }

    #main_search_button:hover {
		background: #66e;
    }

    .website-icon i {
		color: black;
    }

    .search-section {
		background: #2d3748;
    }

    .action-button {
		background-color: #2d3748;
		border-color: white;
    }

    .action-button:hover {
		background-color: #3d4758;
        color: white;
    }
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
            
    .title-content {
        flex-direction: column;
        gap: 10px;
    }
            
    .search-section {
		padding: 30px 20px;
    }
            
    .website-icon {
		width: 50px;
		height: 50px;
    }
            
    .website-icon i {
		font-size: 25px;
    }
	
	.overlay-background {
		width: 85%;
		height: 85%;
	}
}
        
@media (max-width: 576px) {
    .main-title {
		font-size: 2rem;
    }
            
    .search-section {
		padding: 25px 15px;
    }
}