@font-face {
    font-display: block;
    font-family: segment7;
    src: url('/static/fonts/7segment.woff');
}

*,
*:before,
*:after{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    background-color: #0f0f0f;
    color: #fff;
}

/* Checkbox Styles */
input[type="checkbox"] {
    -webkit-appearance: none;
    outline: none;
    position: absolute;
    right: 0;
    height: 18px;
    width: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #dedede;

    /* Toggle Indicator */
    &::before {
      content: "";
      height: 16px;
      width: 19px;
      background-color: #ffffff;
      border: solid 1px #999;
      position: absolute;
      margin: auto;
      top: 0;
      left: 2px;
      bottom: 0;
      border-radius: 50%;
      transition: 0.30s;
    }

    /* Checked Styles */
    &:checked {
      background: #29e051;

    &::before {
        left: 16px;
    }

    }

}

header, main, footer { display: block; }
.container {
    border-bottom: none;
}
.unit {
    position: relative;
    width: 1300px;
    margin: 0 auto;
    font-family: Montserrat;
    font-size: 1rem;
}
.make-center {
    width: 100%;
    margin: 10px auto;
}
.header {
    height: 60px;
    line-height: 60px;
}
#logo {
    position: absolute;
    top: 0;
    left: 0;
    font-family: Aclonica;
    font-size: 2.25rem;
    text-shadow: 2px 2px 8px rgba(128, 128, 128, 1);
    margin: auto 20px;
}

.block-item {
    position: relative;
    width: 270px;
    line-height: initial;
    background-color: #282828;
    border-radius: 20px;
    padding: 20px;
    margin: 10px 0;
}
.active-marker {
    position: absolute;
    top: 28px;
    left: 28px;
    display: block;
    width: 7px;
    height: 7px;
    background-color: #f77;
    border: solid 0.01px rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.3);
}
.setup {
        position: absolute;
        top: 20px;
        right: 20px;
        display: block;
        width: 18px;
        height: 18px;
        background-image: url('/static/images/setup-ico.png');
        background-repeat: no-repeat;
        background-color: none;
        background-size: contain;
}
.newpage {
        position: absolute;
        top: 21px;
        right: 45px;
        display: block;
        width: 16px;
        height: 16px;
        background-image: url('/static/images/new-page-ico.png');
        background-repeat: no-repeat;
        background-color: none;
        background-size: contain;
}
h4 {
    white-space: nowrap;
    padding: 0px 30px;
    padding-bottom: 10px;
    /*border-bottom: #fff 0.1px solid;*/
}
.menu-item {
    position: relative;
    margin: 5px;
}
.menu-item > label {
    padding-right: 50px;
}

.item {
    position: relative;
    margin: 7.7px;
    padding: 17px;
    border: solid 1px #b3b3b3;
    border-radius: 10px;
    box-shadow: 0px 0px 8px rgba(179, 179, 179, 1);
    font-family: Montserrat;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
}
.item:hover {
    box-shadow: 0px 0px 8px rgba(128, 128, 128, 1);
    border-color: rgb(128, 128, 128);
}
.active-item, .active-item:hover {
    box-shadow: 0px 0px 8px rgb(0, 90, 0, 1);
    border-color: rgb(0, 90, 0);
    cursor: auto;
}

.main-place {
    position: relative;
    width: 100%;
	padding:15px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
}
.rtr {
    position: relative;
    border-radius: 5px;
    font-family: Montserrat;
    font-size: 1rem;
}
/*.right {
    width: 310px;
}
.middle {
    position: relative;
    flex-grow: 1;
}
.left {
    width: 250px;
}*/
.control, .preset, .antennas {
    position: relative;
}
.show-target {
    position: absolute;
    visibility: hidden;
    top: 180px;
    right: 0px;
    font: 27px segment7, monospace;
    color: #29e051;
    font-weight: 500;
}
.show-angle {
    position: absolute;
    visibility: hidden;
    top: 0px;
    right: 0px;
    font: 27px segment7, monospace;
    color: #478ac9;
    font-weight: 500;
}
.show-current {
    position: absolute;
    top: 0px;
    left: 0px;
    font: 27px segment7, monospace;
    color: #ff0000;
    font-weight: 500;
}
.map {
    position: relative;
    width: 210px;
    height: 210px;
    background-image: url("/static/images/azimutmap.png");
    background-repeat: no-repeat;
    background-position: -0.75px 0.75px;
    background-size: contain;
    margin: 10px auto;
}
.arrow {
    position: absolute;
    width: 1.5px;
    height: 100.5px;
    left: 105px;
    top: 5px;
    background-color: #ff0000;
    transition-duration: .5s;
    transition-timing-function: linear;
    /*animation: rotate 10s infinite linear;*/
    /*transform: rotateZ(100deg);*/
    transform-origin: 0 100.25px;
}
@keyframes rotate {
    100% {
        transform: rotateZ(360deg);
    }
}
.newline {
    visibility: hidden;
    width: 1.5px;
    left: calc(50% - .75px);
    background-color: #478ac9;
    transition-duration: .05s;
    transform: rotateZ(0deg);
}
.redline {
    transform: rotateZ(0deg);
}

.control {
    padding: 0 5px;
}
.preset {
        margin-top: 20px;
}
.preset-buttons {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px auto;
}
.preset-buttons > li {
    display: inline-block;
    flex-basis: 45%;
}
.button {
    padding: 10px 0;
    font-family: Montserrat;
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    background-color: #478ac9;
    border-radius: 10px;
    cursor: pointer;
}
.button:hover {
    background-color: #509ae0;
}

.current-angle {
    display: inline-block;
    padding: 0 0px;
    font-size: .9rem;
}
.current-angle > span {
    font-weight: bold;
    color: darkgreen;
}

.inside-block {
	position: relative;
	width: 210px;
	margin: 1px auto;
}
/* inputs */
.input-group {
    display: flex;
	flex-flow: row wrap;
    justify-content: center;
}
.input-label {
    font-size: 0.8rem;
}
.input-field {
    border: 1px solid #b3b3b3;
    border-radius: 10px;
	width: 75%;
	/*padding: 8px;*/
    padding: 0.375rem 0.75rem;
    appearance: none;
}
.input-field:focus {
    border: 1px solid #478ac9;
    outline: 0;
}
.input-btn {
    display: inline-block;
	/*flex-basis: 25%;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid #478ac9;
	/*padding: 8px;*/
    padding: .375rem .75rem;
    border-radius: 10px;
    transform: background-color .15s ease-in-out;
}
.input-group .input-field {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    /*z-index: 2;*/
}
.input-group .input-btn {
    position: relative;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left-width: 0;
}
.rotate-btn {
	display: inline-block;
	flex-basis: 32.5%;
    margin: 5px auto;
    padding: 8px 0;
	border-radius: unset;
}
.CCW {
	border-radius: 10px 0 0 10px;
}
.CW {
	border-radius: 0 10px 10px 0;
}


/* frequency view */
.rig-frequency {
    position: relative;
    text-align: end;
}
.frequency {
    font: 50px segment7, monospace;
    color: #29e051;
    padding: 0 5px;
}
.rig-control {
	position: relative;
	margin-bottom: 5px;
}
.vfo {
    position: absolute;
    top: 2px;
    color: #b3b3b3;
    font-weight: 600;
    font-size: 90%;
}
.mode {
    text-align: end;
}
.vfo {
    left: 5px;
}

main {
    padding: 0 0 40px 0;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #282828;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.footer {
    height: 40px;
    line-height: 40px;
    text-align: center;
    vertical-align: middle;
    font-family: Aclonica;
    font-size: 0.9rem;
    color: #ffffff;
}

/* setup pages style */
.device-info, .set-items {
        margin: 10px;
        font-size: 0.8rem;
}
.set-items input {
	width: 130px;
}
.device-info {
        font-size: 0.8rem;
        margin-bottom: 20px;
}
.device-info span {
        margin-left: 5px;
        color: yellow;
}
.set-button {
        padding: 5px 20px;
        font-size: 0.8rem;
}
#result {
        color: green;
}

@media (max-width: 360px) {
	header {
		display: none;
	}
	.unit {
		width: 100%;
		min-width: 290px;
	}
	.footer {
		font-size: 0.8rem;
	}
}