@charset "UTF-8";

* {
	margin: 0;
}

/** Fonts **/
@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/ebgaramond_regular.ttf") format("truetype");
	src: url("../fonts/ebgaramond_regular-webfont.woff") format("woff");
	src: url("../fonts/ebgaramond_regular-webfont.woff2") format("woff2");
}

@font-face {
	font-family: "EB Garamond";
	src: url("../fonts/ebgaramond_bold.ttf") format("truetype");
	src: url("../fonts/ebgaramond_bold-webfont.woff") format("woff");
	src: url("../fonts/ebgaramond_bold-webfont.woff2") format("woff2");
	font-weight: bold;
}

@font-face {
	font-family: "Dancing Script";
	src: url("../fonts/dancingscript_regular.ttf") format("truetype");
	src: url("../fonts/dancingscript_regular-webfont.woff") format("woff");
	src: url("../fonts/dancingscript_regular-webfont.woff2") format("woff2");
}

@font-face {
	font-family: "Dancing Script";
	src: url("../fonts/dancingscript_bold.ttf") format("truetype");
	src: url("../fonts/dancingscript_bold-webfont.woff") format("woff");
	src: url("../fonts/dancingscript_bold-webfont.woff2") format("woff2");
	font-weight: bold;
}

@font-face {
	font-family: "Computer Modern";
	src: url("../fonts/computer_modern_regular.ttf") format("truetype");
}

/** Using the fonts **/
body {
	background-image: url('../img/body_background_gray.png');
	color: #080808;
	font-family: "EB Garamond", Adobe Garamond Pro, serif;
	line-height: 1.8em;
	font-size: 16px;
}

.mathematics_font {
	font-family: "Computer Modern", serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	padding-top: 20px;
	padding-bottom: 20px;
	font-family: "Dancing Script", Adobe Garamond Pro, serif;
}

h1 {
	color: #080808
}

h2 {
	color: #838383;
}

h3 {
	color: #aaaaaa;
}

h4 {
	color: #6f6f6f;

}

h5 {
	color: #100c08;
	font-size: 14.5px;

}

h6 {
	color: #30302f;
	font-size: 13.5px;
}

/** Content spacing **/
main{
	padding: 20px;
}

/** Form **/
#compatibilityForm{
	border-width: 1px;
	border-color: black;
	border-style: solid;
	padding: 10px;
	margin-top: 10px;
}

.form_button{
	width: 100%;
	text-align: center;
}


/* Rating boxes */
.rating-container {
    margin-bottom: 20px;
}

.desktop-rating {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    text-align: center;
    flex-wrap: wrap; /* Allow the boxes to wrap on smaller screens */
    gap: 10px; /* Add gap between the rating boxes */
}

.rating-box {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #fff;
    font-weight: bold;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Hover effect */
.rating-box:hover {
    opacity: 0.7;
}

/* Gradient for the range 0-10 */
.rating-box[data-value="10"] { background-color: #8B0000; }
.rating-box[data-value="9"] { background-color: #9B1D00; }
.rating-box[data-value="8"] { background-color: #AA3A00; }
.rating-box[data-value="7"] { background-color: #BA5700; }
.rating-box[data-value="6"] { background-color: #C77400; }
.rating-box[data-value="5"] { background-color: #D69100; }
.rating-box[data-value="4"] { background-color: #E4AE00; }
.rating-box[data-value="3"] { background-color: #F4CB00; }
.rating-box[data-value="2"] { background-color: #F6E100; }
.rating-box[data-value="1"] { background-color: #F9F500; }
.rating-box[data-value="0"] { background-color: #b3ffb3;; }

/* Selected box styling */
.selected {
    border: 3px solid #FFD700; /* Change border color to gold for high visibility */
    opacity: 1 !important;
    transform: scale(1.2); /* Enlarge the selected box for better emphasis */
    box-shadow: 0 0 10px 4px rgba(255, 215, 0, 0.8); /* Add glowing effect */
}

/* Mobile rating slider */
.mobile-rating {
    display: none;
}

input[type="range"] {
    width: 100%;
    max-width: 300px;
}

output {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
}

/* Responsive adjustments for screens smaller than 400px */
@media (max-width: 400px) {
    .desktop-rating {
        display: none; /* Hide rating boxes on smaller screens */
    }

    .mobile-rating {
        display: block; /* Show slider on smaller screens */
    }
}


