/*FONTS START*/
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/MONTSERRAT/WOFF2/Montserrat-VariableFont_wght_400_4.woff2') format('woff2'),
         url('fonts/MONTSERRAT/WOFF/Montserrat-VariableFont_wght_400_4.woff') format('woff'),
         url('fonts/MONTSERRAT/TTF/Montserrat-VariableFont_wght_400_4.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/MONTSERRAT/WOFF2/Montserrat-VariableFont_wght_200_Light.woff2') format('woff2'),
         url('fonts/MONTSERRAT/WOFF/Montserrat-VariableFont_wght_200_Light.woff') format('woff'),
         url('fonts/MONTSERRAT/TTF/Montserrat-VariableFont_wght_200_0.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'GothamPro';
    src: url('fonts/GOTHAM/WOFF2/GothaProBla.woff2') format('woff2'),
         url('fonts/GOTHAM/WOFF/GothaProBla.woff') format('woff'),
         url('fonts/GOTHAM/OTF/GothaProBla.otf') format('opentype');
    font-weight: 900; /* Black */
    font-style: normal;
}

@font-face {
    font-family: 'GothamPro';
    src: url('fonts/GOTHAM/WOFF2/GothaProBol.woff2') format('woff2'),
         url('fonts/GOTHAM/WOFF/GothaProBol.woff') format('woff'),
         url('fonts/GOTHAM/OTF/GothaProBol.otf') format('opentype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'GothamPro';
    src: url('fonts/GOTHAM/WOFF2/GothaProLig.woff2') format('woff2'),
         url('fonts/GOTHAM/WOFF/GothaProLig.woff') format('woff'),
         url('fonts/GOTHAM/OTF/GothaProLig.otf') format('opentype');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'GothamPro';
    src: url('fonts/GOTHAM/WOFF2/GothaProLigIta.woff2') format('woff2'),
         url('fonts/GOTHAM/WOFF/GothaProLigIta.woff') format('woff'),
         url('fonts/GOTHAM/OTF/GothaProLigIta.otf') format('opentype');
    font-weight: 300; /* Light Italic */
    font-style: italic;
}

@font-face {
    font-family: 'GothamPro';
    src: url('fonts/GOTHAM/WOFF2/GothaProMed.woff2') format('woff2'),
         url('fonts/GOTHAM/WOFF/GothaProMed.woff') format('woff'),
         url('fonts/GOTHAM/OTF/GothaProMed.otf') format('opentype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'GothamPro';
    src: url('fonts/GOTHAM/WOFF2/GothaProReg.woff2') format('woff2'),
         url('fonts/GOTHAM/WOFF/GothaProReg.woff') format('woff'),
         url('fonts/GOTHAM/OTF/GothaProReg.otf') format('opentype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

/*FONTS END*/



body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    padding: 20px;
    text-align: center;
}

#main-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
    box-sizing: border-box; /* Include padding and border in the width */
    font-family: 'GothamPro', sans-serif;
    font-weight: 600;
    font-size: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

button {
    background-color: #D1EBDB;
    color: #168037;
    border: none;
    padding: 20px 25px;
    margin: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'GothamPro', sans-serif;
    font-weight: 400;
    font-size: 13px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #168037;
    color: white;
    font-weight: 600;
}

.two-column-layout {
    display: flex;
    width: 100%;
    gap: 0; /* Remove gap between columns */
}

.two-column-layout .column {
    flex: 1;
    padding: 0px; /* Remove padding for perfect alignment */
    width: 100%;
    border: 1px solid #D9E1E8;
}

#input-grade-type, #output-grade-type {
    width: 100%;
    box-shadow: none;
}

#input-grade-type {
    width: 100%;
    border: 0px solid transparent;
    
}

#output-grade-type {
    width: 100%;
    border: 0px solid transparent;
}

#output-grade {
    color: #286BB5;
    background-color: #F7FAF9;
}

#input-grade-alert {
   color: lightcoral;
   display: none;
   margin-top: 20px;
    font-family: 'GothamPro', sans-serif;
    font-weight: 500;
   font-size: 14px;
}


.one-column-layout {
    width: 100%;
    padding: 0; /* Ensure padding is consistent */
}

.one-column-layout input[type="text"] {
    width: 100%; /* Adjust width for border */
    border: 1px solid #ddd;
    margin: 0; /* Remove margin */
}

#input-grade {
    border-bottom: none;
    opacity: 0.80;
}

input[type="text"] {
    height: 200px; /* Adjust the height value as needed */
    padding: 0px;
    width: 100%;
    border-radius: 0px;
    border: 1px solid #D9E1E8;
    font-size: 22px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

select {
    padding: 10px;
    border-radius: 0px;
    font-size: 12px;
    background-color: white;
    cursor: pointer;
    width: 100%;
    height: 50px;
    font-weight: 700;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #00000;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%; /* Ensure full width of the container */
    margin: 0; /* Align with the container's edges */
}

#conversion-inputs div, #average-container {
    text-align: center;
    margin: 0;
    width: 100%;
  
}

#disclaimer-conversion {
    color: gray;
    font-family: 'GothamPro', sans-serif;
    font-weight: 500;
    font-size: 10px;
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
}

#conversion-refresh-btn, #average-refresh-btn, #conversion-home-btn, #average-home-btn {
    background-color: transparent;
    color: gray;
    font-size: 24px;
    transition: background-color 0.3s;
}

#conversion-refresh-btn:hover, #average-refresh-btn:hover, #conversion-home-btn:hover, #average-home-btn:hover {
    background-color: transparent;
    color: gray;
}

#grades-input {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.85;
    background-color: #fafafa;
    color: #333333;
}

#avrg-instructions {
    margin-top: 15px;
    font-size: 14px;
}

#calculate-btn {
    margin-top: 20px; /* Top margin */
    margin-left: auto; /* Horizontal center alignment */
    margin-right: auto; /* Horizontal center alignment */
    display: block; /* Ensures the button takes the full width available */
}

#average-result {
    font-size: 20px;
    font-weight: bold; /* Bolder font */
    margin-top: 20px;
    text-align: center;
    border-radius: 10px; /* Rounded corners */
    padding: 10px; /* Padding for spacing */
    opacity: 0; /* Start invisible for animation */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transition for animation */
}



/* Animation when result appears */
#average-result.animate-result {
    opacity: 1; /* Fade in */
    transform: scale(1.05); /* Slight scale up */
}




@media (prefers-color-scheme: dark) {
    body {
        background-color: #191919;
        color: white;
    }
    #main-container {
     background-color: #000000;
     color: white;
     border: 1px solid #000;
     box-shadow: 0 0 13px rgba(0, 0, 0, 0.6);
    }
    #input-grade-type, #output-grade-type {
     background-color: #000000;
     color: white;
     border: 1px solid #373739;
  }
#input-grade-type {
    border-right: 1px solid transparent;
}

#output-grade-type {
    border-left: 1px solid transparent;
}

    input[type="text"] {
     background-color: #000000;
     color: white;
     border: 1px solid #373739;
  }

.two-column-layout .column {
    border: 1px solid #373739;
}
   .one-column-layout input[type="text"] {
     border: 1px solid #373739;
 }
   button {
    background-color: #373739;
    color: white;
  }


   button:hover {
    background-color: #000000;
  }

#output-grade {
    color: white;
    background-color: #000000;
}


}


@media screen and (max-width: 768px) {

body {
    padding: 0px;
}


 #main-container {
     padding: 20px;
     width: 100%;
 }

 #disclaimer-conversion {
      padding-left: 10px;
      padding-right: 10px;
      padding-top: 10px;
      padding-bottom: 0px;
      font-size: 8.5px;
      margin-top: 0px;
}

input[type="text"] {
    height: 120px; /* Adjust the height value as needed */
    border: 1px solid #ddd;
    font-size: 18px;
}

select {
    font-size: 12px;
    height: 50px;
    padding: 10px;
}

#input-grade-alert {
   font-size: 10px;
}

#avrg-instructions {
    padding-left: 40px;
    padding-right: 40px;
}

#average-refresh-btn, #average-home-btn {
    margin-top: 0px;
    padding-top: 0px;
}

}



@media screen and (max-width: 350px) {


body {
    padding: 0px;
}


#main-container {
    padding: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 5px;
    width: 100%;
}

button {
    padding: 15px 25px;
    margin: 6px;
    border-radius: 3px;
    font-size: 12px;
}

button:hover {
    background-color: #000000;
}


input[type="text"] {
    height: 130px; /* Adjust the height value as needed */
    font-size: 13px;
    text-align: center;
}

select {
    padding: 8px;
    font-size: 10px;
    height: 55px;
    border: 0px solid transparent;
}

#input-grade-alert {
   font-size: 10px;
}


#disclaimer-conversion {
      padding-left: 8px;
      padding-right: 8px;
      padding-top: 0px;
      margin-top: 0px;
      font-size: 6.5px;
}



#grades-input {
    margin-top: 8px;
    font-size: 8px;
}

#avrg-instructions {
    margin-top: 10px;
    font-size: 10px;
    padding: 3px;
}

#calculate-btn {
    margin-top: 10px; /* Top margin */
    margin-left: auto; /* Horizontal center alignment */
    margin-right: auto; /* Horizontal center alignment */
    display: block; /* Ensures the button takes the full width available */
}

#average-result {
    font-size: 12px;
    margin-top: 14px;
    padding: 0px; /* Padding for spacing */
}


}

