* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
	background: #f4f6fb;
	color: #111;
}
#header{
    width:100%;
    display: flex;
    justify-content: center;
	align-items: center;
}
.logo_container{
    display: flex;
    flex-direction: row;
    font-weight: 700;
    font-size: 1.6rem;
    justify-content: center;
	align-items: center;
    padding: 25px 0px 0px;
    text-decoration:none;
    user-select: none;
    color:#111;
    max-width:500px;
}
.container {
	max-width: 700px;
	margin: 30px auto;
	padding: 24px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

h1 { margin: 0 0 8px; font-size: 26px; }
.subtitle { margin: 0 0 20px; color: #555; }

#dropzone {
	border: 2px dashed #bbb;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	background: #fafbff;
	position: relative;
}

#dropzone.dragover { border-color: #4a7cff; background: #eef3ff; }

#dropzone p, #dropzone span { margin: 0; }
#dropzone span { display: block; margin: 8px 0; color: #777; }
#dropzone button { padding: 10px 16px; border-radius: 8px; border: none; background: #111; color: #fff; cursor: pointer; }

.controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0;
	align-items: center;
}

#presetSelect { padding: 6px 10px; border-radius: 6px; border: 1px solid #ccc; }
#processBtn { padding: 8px 14px; border-radius: 8px; border: none; background: #914aff; color: #fff; cursor: pointer; }

#preview {
	position: relative;
	margin-top: 20px;
	width: 100%;
	height: 400px;
	background: #eee;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#preview img {
	max-width: 100%;
	max-height: 100%;
	user-select: none;
	pointer-events: none;
}

#cropBox {
	position: absolute;
	border: 2px dashed #00efff;
	cursor: move;
	box-sizing: border-box;
	background: rgba(255,255,255,0.1);
}

#cropHandle {
	width: 12px;
	height: 12px;
	background: #00efff;
	position: absolute;
	right: 0;
	bottom: 0;
	cursor: se-resize;
	border-radius: 2px;
}

.overlay-part {
	position: absolute;
	background: rgba(0,0,0,0.4);
	pointer-events: none;
}

#downloadArea { margin-top: 20px; text-align: center; }
#downloadArea a { display: inline-block; padding: 10px 18px; background: #111; color: #fff; border-radius: 8px; text-decoration: none; }

/* Spinner inside button */
.spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	border-top: 2px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	vertical-align: middle;
	margin-right: 6px;
}
#footer{
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    gap: 14px;
}
.footer_links{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.footer_links a{
    text-decoration:none;
    color: #111;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
.our_other_tools{
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items:center;
    font-weight: 700;
    padding: 34px 0px 60px;
}
.our_other_tools a{
    text-decoration:none;
    color:black;
    padding: 24px;
    max-width: 45vw;
    overflow: hidden;
    word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}
.other_tools_title{
    font-size: 28px;
    line-height: 64px;
}
.online_tool_container{
    text-align:center;
}
.other_tools_container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12%;
    padding: 24px;
    overflow: hidden;
    white-space: nowrap;
}
.tool_description{
    font-weight:normal;
}
