.closewindow {display:inline; float:right; margin-right:5px; margin-top: 5px; cursor: pointer; color: #000;}
@keyframes nlModalFadeIn {
from { opacity: 0; }
to   { opacity: 1; }
}
@keyframes nlModalSlideIn {
from { opacity: 0; transform: translateY(-20px) scale(0.98); }
to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nl-modal-overlay {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
z-index: 10000;
animation: nlModalFadeIn 0.2s ease forwards;
}
.nl-modal-box {
position: relative;
background: #fff;
margin: 80px auto;
padding: 20px;
max-width: 460px;
border-radius: 4px;
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
animation: nlModalSlideIn 0.22s ease forwards;
}
.nl-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
}
.nl-modal-close {
cursor: pointer;
font-size: 22px;
line-height: 1;
color: #666;
}
.nl-modal-close:hover { color: #000; }
.nl-modal-box .formunit { font-size: 11pt; line-height: 35px; }
.nl-modal-box .formunit2 { font-size: 11pt; }
.nl-modal-box .form-r input[type=text] { font-size: 12pt; }
.nl-modal-box input[type=text] { font-size: 13pt; width: 180px; }
.nl-modal-box input[type=submit],
.nl-modal-box input[type=button] { font-size: 13pt; margin-top: 8px; }
#contentfull {
color: #41394e;
max-width: 1440px;
margin: 0 auto;
padding: 20px 50px 44px;
}
#contentfull a {
color: #8f4baa;
text-decoration: none;
font-weight: 700;
}
#contentfull a:hover {
color: #6d3987;
}
#notice {
font-size: 15px;
padding: 14px 20px;
border-radius: 12px;
margin: 16px 0;
}
#notice.success {
background: #e8f7ee;
color: #1f9d55;
}
#notice.err {
background: #fdeceb;
color: #e0393e;
}
#openclose {
margin: 26px 0 20px;
}
.openbutton {
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 800;
font-size: 16px;
color: #5a2a82;
background: #f4ecf9;
padding: 16px 34px;
border-radius: 12px;
cursor: pointer;
}
#namelist-list {
text-align: center;
}
h2#greeting-title {
font-family: Caladea;
color: #2a2233;
font-size: 34px;
text-align:center; 
margin-bottom:10px;
font-style:italic;
}
a.button {
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 800;
font-size: 16px;
color: #5a2a82;
background: #f4ecf9;
padding: 12px 28px;
border-radius: 12px;
}
a.button:hover {
color: #333;
background: #e3e3e3;
}
#namelist-list > p > i {
font-style: italic;
font-size: 14px;
color: #9a93a6;
}
#namelist-headers {
list-style: none;
margin: 30px 0 0;
padding: 18px 26px;
display: grid;
grid-template-columns: 140px 1fr 180px 180px;
background: #fff;
border: 1px solid #efeaf3;
border-bottom: none;
border-radius: 22px 22px 0 0;
font-weight: 900;
font-size: 13px;
letter-spacing: .4px;
color: #2a2233;
text-transform: uppercase;
text-align: left;
}
#namelist-rows {
list-style: none;
margin: 0;
padding: 0;
border: 1px solid #efeaf3;
border-top: none;
border-radius: 0 0 22px 22px;
overflow: hidden;
}
#namelist-rows .row {
display: grid;
grid-template-columns: 140px 1fr 180px 180px;
align-items: center;
padding: 16px 26px;
border-bottom: 1px solid rgba(0,0,0,0.03);
text-align: left;
}
#namelist-rows .row.boy_row {
background: #eaf6fd;
}
#namelist-rows .row.girl_row {
background: #fdf1f8;
}
#namelist-rows .row.either_row {
background: #fff;
}
.row .gender select {
appearance: none;
-webkit-appearance: none;
font-weight: 700;
font-size: 14px;
padding: 8px 30px 8px 14px;
border-radius: 999px;
background-color: #fff;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1L5 5L9 1' stroke='%238f4baa' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
background-repeat: no-repeat;
background-position: right 12px center;
width: fit-content;
}
.row.boy_row .gender select {
color: #008fd1;
border: 1.5px solid #008fd1;
}
.row.girl_row .gender select {
color: #ec1c8c;
border: 1.5px solid #ec1c8c;
}
.row.either_row .gender select {
color: #8f4baa;
border: 1.5px solid #8f4baa;
}
.row .name {
font-size: 17px;
color: #2a2233;
}
.row .name a {
color: #6d3987;
font-weight: 700;
}
.row .surname {
color: #2a2233;
}
.row .votes {
font-weight: 700;
font-size: 16px;
display: flex;
gap: 14px;
}
.row .pos-votes {
color: #1f9d55 !important;
}
.row .neg-votes {
color: #e0393e !important;
}
.row .actions {
font-weight: 700;
font-size: 14px;
display: flex;
gap: 16px;
}
.row .actions a {
color: #6d3987;
}
.clearall {
clear: both;
}
p.tagline {
clear:both;
font-size: 16px;
text-align: center;
margin-top: 20px;
}
.buttonrow {
display: flex;
justify-content: center;
align-items: center;
gap: 18px;
flex-wrap: wrap;
margin: 0 0 20px;
}
.buttonrow #openclose {
margin: 0;
} #nameslist-list li.row, #dragHelper li.row, #sortHelper li.row {
height: 30px;
padding:0;
background: #fff;
position:relative;
}
#namelist-rows LI SPAN SPAN { float:none; }
#namelist-rows LI SPAN.name {	cursor:move;}
#namelist-rows LI SPAN.votes { cursor:move; }
a.edit-name {cursor: pointer;}
.confirm_box {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #333;
color: #fff;
padding: 12px 20px;
border-radius: 6px;
font-size: 14px;
z-index: 10001;
max-width: 90vw;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.confirm_box.error_box {
background: #c0392b;
}
@media (max-width: 800px) {
#contentfull {  
padding: 0px;
}
h2#greeting-title {font-size:28px;}
#namelist-headers {
display: none;
}
#namelist-rows {
border-radius: 16px;
}
#namelist-rows .row {
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas:
"gender name"
"votes actions";
align-items: center;
column-gap: 12px;
row-gap: 10px;
padding: 18px 20px;
}
.row .gender { grid-area: gender; }
.row .name { grid-area: name; font-size: 18px; }
.row .votes { grid-area: votes; }
.row .actions {
grid-area: actions;
justify-self: end;
}
}