diff --git a/5-Band-Resistance-Calculator/README.md b/5-Band-Resistance-Calculator/README.md new file mode 100644 index 000000000..151c6a96f --- /dev/null +++ b/5-Band-Resistance-Calculator/README.md @@ -0,0 +1,24 @@ +#

5 Band Resistance Calculator

+ +# Description :- + +As the name suggest this is a Calculator which will help you calculate the resistance value by input the 5 colour bands present on the resistor and it will return the resistance value for it with including the tolerance value. The calculator is responsive also and can be viewed on any device. + +## Tech Stacks :- + +- HTML +- CSS +- Javascript + +## Features :- + +- Gives the theoritical reistance value of a given resistor. + +## Screenshots :- + +![Project demo 1](./assets/demo.png) +--- +![Project demo 2](./assets/demo1.png) +--- + + diff --git a/5-Band-Resistance-Calculator/assets/demo.png b/5-Band-Resistance-Calculator/assets/demo.png new file mode 100644 index 000000000..fac97a484 Binary files /dev/null and b/5-Band-Resistance-Calculator/assets/demo.png differ diff --git a/5-Band-Resistance-Calculator/assets/demo1.png b/5-Band-Resistance-Calculator/assets/demo1.png new file mode 100644 index 000000000..e59dafd0c Binary files /dev/null and b/5-Band-Resistance-Calculator/assets/demo1.png differ diff --git a/5-Band-Resistance-Calculator/assets/resistor.png b/5-Band-Resistance-Calculator/assets/resistor.png new file mode 100644 index 000000000..967213b8f Binary files /dev/null and b/5-Band-Resistance-Calculator/assets/resistor.png differ diff --git a/5-Band-Resistance-Calculator/assets/resistor2.png b/5-Band-Resistance-Calculator/assets/resistor2.png new file mode 100644 index 000000000..bd62f4a5b Binary files /dev/null and b/5-Band-Resistance-Calculator/assets/resistor2.png differ diff --git a/5-Band-Resistance-Calculator/index.html b/5-Band-Resistance-Calculator/index.html new file mode 100644 index 000000000..a9b47d2fa --- /dev/null +++ b/5-Band-Resistance-Calculator/index.html @@ -0,0 +1,56 @@ + + + + + + + + + 5 Band Resistance Calculator + + + +

Resistance

Calculator

+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+ + + + + \ No newline at end of file diff --git a/5-Band-Resistance-Calculator/script.js b/5-Band-Resistance-Calculator/script.js new file mode 100644 index 000000000..d35e82487 --- /dev/null +++ b/5-Band-Resistance-Calculator/script.js @@ -0,0 +1,84 @@ +const band1 = document.getElementById('band1'); +const band2 = document.getElementById('band2'); +const band3 = document.getElementById('band3'); +const band4 = document.getElementById('band4'); +const band5 = document.getElementById('band5'); +const calcBtn = document.querySelector('.btn'); + +// Define color options for each band +const colorOptions = { + band1: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band2: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band3: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band4: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band5: ['Gold', 'Silver', 'No Colour'] +}; + +function updateDropdownOptions(dropdown, options) { + dropdown.innerHTML = ''; // Clear existing options + + for (let i = 0; i < options.length; i++) { + const option = document.createElement('option'); + option.value = options[i].toLowerCase(); + option.text = options[i]; + option.style.backgroundColor = options[i]; + dropdown.appendChild(option); + } +} + +// Update dropdown options initially and on change +updateDropdownOptions(band1, colorOptions.band1); +updateDropdownOptions(band2, colorOptions.band2); +updateDropdownOptions(band3, colorOptions.band3); +updateDropdownOptions(band4, colorOptions.band4) +updateDropdownOptions(band5, colorOptions.band5); + +//adding event listener to the button to calculate the resistance +calcBtn.addEventListener('click', calcResistance); + +//resistance calculating function +function calcResistance() { + const band1Value = band1.value.toLowerCase(); + const band2Value = band2.value.toLowerCase(); + const band3Value = band3.value.toLowerCase(); + const band4Value = band4.value.toLowerCase(); + const band5Value = band5.value.toLowerCase(); + console.log(band4Value); + const resistorValues = { + black: 0, + brown: 1, + red: 2, + orange: 3, + yellow: 4, + green: 5, + blue: 6, + violet: 7, + gray: 8, + white: 9 + }; + + const resistanceValue = (resistorValues[band1Value] * 100 + resistorValues[band2Value] * 10 + resistorValues[band3Value]); + + let tolerancePercentage = ''; + + if (band5Value === 'gold') { + tolerancePercentage = '5%'; + } else if (band5Value === 'silver') { + tolerancePercentage = '10%'; + } else { + tolerancePercentage = '20%'; + } + + // Open the popup for the resistance result + const popup = document.getElementById('popup'); + const popupResult = document.getElementById('popup-result'); + popupResult.textContent = `The value of Resistance is ${resistanceValue} x 10^${resistorValues[band4Value]} Ω ± ${tolerancePercentage} tolerance`; + popup.style.display = 'flex'; +} + +// Hide the popup when OK button is clicked +const okButton = document.getElementById('closebtn'); +okButton.addEventListener('click', () => { + const popup = document.getElementById('popup'); + popup.style.display = 'none'; +}); \ No newline at end of file diff --git a/5-Band-Resistance-Calculator/style.css b/5-Band-Resistance-Calculator/style.css new file mode 100644 index 000000000..fbf271bc8 --- /dev/null +++ b/5-Band-Resistance-Calculator/style.css @@ -0,0 +1,130 @@ +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background: rgb(244, 240, 240); + background: linear-gradient(180deg, rgba(244, 240, 240, 1) 0%, rgba(244, 118, 107, 1) 99%); + background-repeat: no-repeat; + background-size: cover; + text-align: center; + justify-content: center; + align-items: center; + height: 120vh; +} + +.title { + color: rgb(107, 30, 2); +} + +.container { + display: flex; +} + +.value_inp { + font-size: 1.2rem; + font-weight: 600; + width: 30%; + margin: auto; + padding: 3%; + background-color: aliceblue; + border-radius: 10px; + -webkit-box-shadow: -7px 0px 93px 19px rgba(0, 0, 0, 0.23); + -moz-box-shadow: -7px 0px 93px 19px rgba(0, 0, 0, 0.23); + box-shadow: -7px 0px 93px 19px rgba(0, 0, 0, 0.23); +} + +label { + display: block; + text-align: left; +} + +select { + font-weight: 650; + width: 100%; + margin: 5% 0; + border: hidden; + border-radius: 2px; + padding: 2%; +} + +.btn { + font-size: 1.3rem; + width: 40%; + border: 5px solid brown; + border-radius: 5px; + font-weight: 600; +} + + +.popup { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.6); + z-index: 999; +} + +.popup-content { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background-color: white; + padding: 20px; + border-radius: 10px; +} + +#closebtn { + margin-top: 10px; + width: 40%; + border: 5px solid brown; +} + + +@media only screen and (max-width: 786px) { + body { + font-size: 14px; + /* height: auto; */ + overflow-y: hidden; + margin-top: 10%; + } + + .title { + padding-bottom: 11%; + } + + .container { + flex-wrap: wrap; + } + + .value_inp { + width: 80%; + padding: 2%; + } + + .btn { + width: 60%; + } + + select { + margin: 2% 0; + } + + .popup-content { + width: 90%; + padding: 10px; + } + + #popup-result { + font-size: 20px; + } + + #closebtn { + width: 60%; + } +} \ No newline at end of file diff --git a/Calculators/Capacitor-Calculator/Assets/1.PNG b/Calculators/Capacitor-Calculator/Assets/1.PNG new file mode 100644 index 000000000..ff19060c8 Binary files /dev/null and b/Calculators/Capacitor-Calculator/Assets/1.PNG differ diff --git a/Calculators/Capacitor-Calculator/Assets/2.PNG b/Calculators/Capacitor-Calculator/Assets/2.PNG new file mode 100644 index 000000000..6de2ee279 Binary files /dev/null and b/Calculators/Capacitor-Calculator/Assets/2.PNG differ diff --git a/Calculators/Capacitor-Calculator/Assets/3.PNG b/Calculators/Capacitor-Calculator/Assets/3.PNG new file mode 100644 index 000000000..9aa6bef45 Binary files /dev/null and b/Calculators/Capacitor-Calculator/Assets/3.PNG differ diff --git a/Calculators/Capacitor-Calculator/README.md b/Calculators/Capacitor-Calculator/README.md new file mode 100644 index 000000000..a16535479 --- /dev/null +++ b/Calculators/Capacitor-Calculator/README.md @@ -0,0 +1,53 @@ +# Capacitor Conversion Chart Tool + +This tool is designed to help users convert capacitor values between different units: picofarads (pF), nanofarads (nF), microfarads (µF), and farads (F). The tool also includes a capacitance conversion chart for quick reference. + +## Features + +- **Input Fields**: Enter values in any of the four units (pF, nF, µF, F) to see the equivalent values in the other units. +- **Auto-Conversion**: As you type a value in one unit, the equivalent values in the other units are automatically calculated and displayed. +- **Capacitance Conversion Chart**: A table showing common capacitance values and their equivalents in pF, nF, µF, and their corresponding code. + +## How to Use + +1. **Open the Tool**: Load the HTML file in a web browser. +2. **Enter a Value**: Input a value in any of the four units (Picofarad, Nanofarad, Microfarad, or Farad). + - The corresponding fields will update automatically to show the converted values. +3. **Refer to the Chart**: Use the capacitance conversion chart to find common values and their equivalents. + +## Input Fields + +- **Picofarad (pF)**: Enter the value in picofarads. +- **Nanofarad (nF)**: Enter the value in nanofarads. +- **Microfarad (µF)**: Enter the value in microfarads. +- **Farad (F)**: Enter the value in farads. +- **Code**: Refer to the chart for the code. + +## Conversion Logic + +When you enter a value in one of the input fields, the following conversions occur: + +- **Picofarads (pF)**: + - Nanofarads (nF) = Picofarads / 1000 + - Microfarads (µF) = Picofarads / 1,000,000 + - Farads (F) = Picofarads / 1,000,000,000,000 +- **Nanofarads (nF)**: + - Picofarads (pF) = Nanofarads * 1000 + - Microfarads (µF) = Nanofarads / 1000 + - Farads (F) = Nanofarads / 1,000,000 +- **Microfarads (µF)**: + - Picofarads (pF) = Microfarads * 1,000,000 + - Nanofarads (nF) = Microfarads * 1000 + - Farads (F) = Microfarads / 1000 +- **Farads (F)**: + - Picofarads (pF) = Farads * 1,000,000,000,000 + - Nanofarads (nF) = Farads * 1,000,000,000 + - Microfarads (µF) = Farads * 1,000,000 + +## Capacitance Conversion Chart + +The chart provides a quick reference for common capacitance values and their equivalents: + +![Project demo 1](./assets/1.png) +![Project demo 1](./assets/2.png) +![Project demo 1](./assets/3.png) \ No newline at end of file diff --git a/Calculators/Capacitor-Calculator/index.html.html b/Calculators/Capacitor-Calculator/index.html.html new file mode 100644 index 000000000..99382a2ac --- /dev/null +++ b/Calculators/Capacitor-Calculator/index.html.html @@ -0,0 +1,395 @@ + + + +Capacitor Conversion Chart + + + + + +

Capacitor Conversion Chart

+ + + + + + + + + + + + + +
+
+ + + pF +
+
+
+ + + nF +
+
+
+ + + µF +
+
+
+ + + F +
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
picofaradnanofaradmicrofaradCodepicofaradnanofaradmicrofaradCode
100.010.0000110047004.70.0047472
150.0150.000015150500050.005502
220.0220.00002222056005.60.0056562
330.0330.00003333068006.80.0068682
470.0470.00004747010000100.01103
1000.10.000110115000150.015153
1200.120.0001212122000220.022223
1300.130.0001313133000330.033333
1500.150.0001515147000470.047473
1800.180.0001818168000680.068683
2200.220.000222211000001000.1104
3300.330.000333311500001500.15154
4700.470.000474712000002000.2204
5600.560.000565612200002200.22224
6800.680.000686813300003300.33334
7500.750.000755714700004700.47474
8200.820.000828216800006800.68684
100010.001102100000010001105
15001.50.0015152150000015001.5155
22002.20.0022222220000022002.2225
33003.30.0033332330000033003.3335
+ + + + + diff --git a/README.md b/README.md index 9717a7deb..dc1810c9e 100644 --- a/README.md +++ b/README.md @@ -1,197 +1,24 @@ -#

✨CalcDiverse✨

- -
-

- -[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) -![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat) -![Visitors](https://api.visitorbadge.io/api/visitors?path=Rakesh9100%2FCalcDiverse%20&countColor=%23263759&style=flat) -![GitHub forks](https://img.shields.io/github/forks/Rakesh9100/CalcDiverse) -![GitHub Repo stars](https://img.shields.io/github/stars/Rakesh9100/CalcDiverse) -![GitHub contributors](https://img.shields.io/github/contributors/Rakesh9100/CalcDiverse) -![GitHub last commit](https://img.shields.io/github/last-commit/Rakesh9100/CalcDiverse) -![GitHub repo size](https://img.shields.io/github/repo-size/Rakesh9100/CalcDiverse) -![GitHub total lines](https://sloc.xyz/github/Rakesh9100/CalcDiverse) -![Github](https://img.shields.io/github/license/Rakesh9100/CalcDiverse) -![GitHub issues](https://img.shields.io/github/issues/Rakesh9100/CalcDiverse) -![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/Rakesh9100/CalcDiverse) -![GitHub pull requests](https://img.shields.io/github/issues-pr/Rakesh9100/CalcDiverse) -![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Rakesh9100/CalcDiverse) -

-
- - - -
- -

Table of Contents🧾

- -- [Introduction📌](#introduction) -- [Technology Used🚀](#technology-used) -- [Overview⭐](#overview) -- [Getting Started💥](#getting-started) -- [Contributing Guidelines📑](#contributing-guidelines) -- [Code Of Conduct📑](#code-of-conduct) -- [Project Admin⚡](#project-admin) -- [Contributing is fun🧡](#contributing-is-fun) -
- - - -

Introduction📌

- -CalcDiverse is a customized collection of calculators for various aspects of mathematics. Individuals with basic web development knowledge can create distinctive calculators and submit pull requests. - - - -

Technology Used🚀

- -

- HTML - CSS - JS -

-

(back to top)

- - - -

Overview⭐

- -

Live Project -- (https://calcdiverse.netlify.app/)

- -

Home/Main Page :-

- -![image](https://github.com/Rakesh9100/CalcDiverse/assets/73993775/02b2c6ae-663c-42c0-84f9-f5fe449423f9)

-

Calculators Page :-

- -![image](https://github.com/Rakesh9100/CalcDiverse/assets/73993775/749a318e-fe90-4ba1-bfd2-4d18c1d97be6)

-

About Page :-

- -![image](https://github.com/Rakesh9100/CalcDiverse/assets/73993775/11fff9d4-0069-441e-8450-95cc7b95cddf)

-

Contributors Page :-

- -![image](https://github.com/Rakesh9100/CalcDiverse/assets/73993775/f866c372-9b21-428e-a9b1-41b7b8907521)

-

FAQ Page :-

- -![image](https://github.com/Rakesh9100/CalcDiverse/assets/73993775/6b329d86-4ea1-4fc5-833f-08edf80b0459) -

Contact Page :-

- -![image](https://github.com/Rakesh9100/CalcDiverse/assets/73993775/c97c96ff-4468-44bf-b01a-f8f944d07b1e) -

-

(back to top)

- - - - -

Getting Started💥

- -- Fork this Repository. -- Clone the forked repository in your local system. -``` -git clone https://github.com//CalcDiverse.git -``` -- Open `index.html` in your browser. -- View the [Live Project](https://calcdiverse.netlify.app/) here. -- Raise an issue if you find a bug or add a feature. -- Wait for the issue to be assigned and proceed only after the issue is assigned to you. -- Add your codes :- - - - Create a new folder in the `Calculators` folder. - - Put Your calculators code files in your newly created folder. - - Add a `README.md` file in your new folder which includes Description, Tech Stacks, and Screenshots of that calculator. - - Add your calculator's HTML file link in the main `index.html` by continuing a box section. - -- Navigate to the project directory. -``` -cd CalcDiverse -``` -- Create a new branch for your feature. -``` -git checkout -b -``` -- Perform your desired changes to the code base. -- Track and stage your changes. -``` -# Track the changes -git status - -# Add changes to Index -git add . -``` -- Commit your changes. -``` -git commit -m "your_commit_message" -``` -- Push your committed changes to the remote repo. -``` -git push origin -``` -- Go to your forked repository on GitHub and click on `Compare & pull request`. -- Add an appropriate title and description to your pull request explaining your changes and efforts done. -- Click on `Create pull request`. -- Congrats! 🥳 You've made your first pull request to this project repo. -- Wait for your pull request to be reviewed and if required suggestions would be provided to improve it. -- Celebrate 🥳 your success after your pull request is merged successfully. -

(back to top)

- - - -

Contributing Guidelines📑

- -Read our [Contributing Guidelines](https://github.com/Rakesh9100/CalcDiverse/blob/main/.github/CONTRIBUTING_GUIDELINES.md) to learn about our development process, how to propose bugfixes and improvements, and how to build to Click-The-Edible-Game. - - - -

Code Of Conduct📑

- -This project and everyone participating in it is governed by the [Code of Conduct](https://github.com/Rakesh9100/CalcDiverse/blob/main/.github/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. - - - -

This repo has been part of the following Open Source Programs🥳

- - - - - - - - - -
-IWOC2024
IWOC 2k24 -
-JWOC2024
JWOC 2k24 -
-SWOC2024
SWOC 2k24 -
-

(back to top)

- - - -

Project Admin⚡

- - - - - -
-Rakesh Roshan
Rakesh Roshan
-
- - - -

Project Contributors🫂

- - - - - - - -

Contributing is fun🧡

- -[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com) -

Contributions of any kind from anyone are always welcome🌟!!

-

Give it a 🌟 if you ❤ this project. Happy Coding👨‍💻

-

(back to top)

+#

5 Band Resistance Calculator

+ +# Description :- + +As the name suggest this is a Calculator which will help you calculate the resistance value by input the 5 colour bands present on the resistor and it will return the resistance value for it with including the tolerance value. The calculator is responsive also and can be viewed on any device. + +## Tech Stacks :- + +- HTML +- CSS +- Javascript + +## Features :- + +- Gives the theoritical reistance value of a given resistor. + +## Screenshots :- + +![Project demo 1](./assets/demo.png) +--- +![Project demo 2](./assets/demo1.png) +--- + + diff --git a/index.html b/index.html index 974657f14..b3251ab2d 100644 --- a/index.html +++ b/index.html @@ -1,2304 +1,56 @@ - - - - - - - - - - - - CalcDiverse - - - -
-
-
-
-
- - -
- -
- - - -
-
- -

CalcDiverse

-

All calculators, spot in a single place!!

-

- CalcDiverse is a customized collection of calculators for various aspects of mathematics. Individuals - with basic web development knowledge can create distinctive calculators and submit pull requests. -

- - - -
-
- - - -
- - - -
-
-

2D Distance Calculator

-

Calculates the distance between two points on a 2D plane.

- -
-
-
-
-

2D Shapes Calculator

-

Calculates the area and perimeter of different useful 2D shapes.

- -
-
-
-
-

3D Distance Calculator

-

Calculates the distance between 2 points in a 3D space.

- -
-
-
-
-

3D Shapes Calculator

-

Calculates the volume and surface area of different important and useful 3D shapes.

- -
-
-
-
-

4 Band Resistance Calculator

-

Calculate the theoretical resistance of a 4-band resistor.

- -
-
-
-
-

Age Calculator

-

Calculates the person's age by taking in the date of birth as input.

- -
-
-
-
-

Air Quality Index Calculator

-

Calculates the level of the air quality using AQI index as input.

- -
-
-
-
-

Anagram Calculator

-

Calculator which checks whether the two words are Anagram or not.

- -
-
-
-
-

Antilog Calculator

-

Calculates the antilog of the any given number taken over any base.

- -
-
-
-
-

Arithmetic Progression Calculator

-

Calculates nth Term and sum of n Terms present in an Arithmetic Sequence.

- -
-
-
-
-

Armstrong Number Calculator

-

Computes all the Armstrong Numbers for the specified Number of digits.

- -
-
-
-
-

Aspect Ratio Calculator

-

Calculates the aspect ratio of the specified height and width.

- -
-
-
-
-

Averages Calculator

-

Calculates the arithmetic, geometric, and harmonic means.

- -
-
-
-
-

BMI Calculator

-

Calculates the Body Mass Index of a person using Height & Weight.

- -
-
-
-
-

BMR Calculator

-

Calculates the Basal Metabolic Rate of a person using height, weight & age.

- -
-
-
-
-

Basic Calculator

-

Basic old school calculator for simple calculations

- -
-
-
-
-

Bayes Theorem Calculator

-

Calculates the probability of an event A given that event B has occurred.

- -
-
-
-
-

Bill Split Calculator

-

Effortlessly split bills with our calculator. Simplify expense sharing now!

- -
-
-
-
-

Binomial Distribution Calculator

-

Calculates the value of the probability mass function and probability distribution function.

- -
-
-
-
-

Bitwise Calculator

-

Calculates results of different bitwise operations based on inputs.

- -
-
-
-
-

Black Hole Number Calculator

-

Given any number, it reaches to Four.

- -
-
-
-
-

Book Reading Time Calculator

-

Calculates the time required to finish reading a book.

- -
-
-
-
-

Bouncy Number Calculator

-

Check the number is bouncy or not and finds bouncy numbers in a range.

- -
-
-
-
-

CGPA Percentage Calculator

-

Converts CGPA to percentage and vice-versa.

- -
-
-
-
-

CSS Unit Calculator

-

Converts various css units.

- -
-
-
-
-

Calorie Burnt Calculator

-

Calculates the amount of calories burnt from particular exercise.

- -
-
-
-
-

Calorie Intake Calculator

-

Calculates daily calorie intake based on given inputs.

- -
-
-
-
-

Carbon Footprint Calculator

-

Calculates an individual's carbon footprint based on the miles driven per year, per month, and per week.

- -
-
-
-
-

Centripetal Force Calculator

-

Calculates Centripetal force and acceleration.

- -
-
-
-
-

Circular Prime Calculator

-

Checks if a number is circular prime and finds circular prime numbers in a range.

- -
-
-
-
-

Clock Hands Angle Calculator

-

Calculates the angle between the hour and minute hands for a specified time.

- -
-
-
-
-

Clothing Size Calculator

-

Inter-converts clothing sizes from one country to another, the international size, and the exact measurements for each size.

- -
-
-
-
-

Color Code Calculator

-

Interconverts color codes among RGB, RGBA, HEX (Hexadecimal), HSL, HSV and CMYK

- -
-
-
-
-

Complex Number Calculator

-

Perfoms mathematical operations on complex numbers.

- -
-
-
-
-

Compound Interest Calculator

-

Takes Principal amount, time in years, interest rate and Gives compound interest

- -
-
-
-
-

Conductivity And Resistivity Calculator

-

Calculates the Conductivity & Resistivity.

- -
-
-
-
-

Credit Card Payoff Calculator

-

Calculates the time in which you can payoff your Credits.

- -
-
-
-
-

Cricket Calculator

-

Calculates various cricket related terms.

- -
-
-
-
-

Cuban Prime Calculator

-

Checks if a number is cuban prime or not and finds cuban prime numbers in a range.

- -
-
-
-
-

Cube Root Calculator

-

Calculates cube root of any number.

- -
-
-
-
-

Cubic Equation Calculator

-

solves cubic equations, providing real or complex solutions

- -
-
-
-
-

Currency Calculator

-

Converts the value of one Currency unit into another Currency unit.

- -
-
-
-
-

Data Size Calculator

-

Converts input data size to other data sizes instantly.

- -
-
-
-
-

Date Time Calculator

-

Calculates Date & Time of the specific period.

- -
-
-
-
-

Day From The Date Calculator

-

Calculates the day for the specified date.

- -
-
-
-
-

Days Until Deadline Calculator

-

Calculates the number of days remaining until a selected date.

- -
-
-
-
-

Definite Integral Calculator

-

Evaluates integral of mathematical functions with definite limits.

- -
-
-
-
-

Degree Radian Calculator

-

Converts the Degree into Radian and vice-versa.

- -
-
-
-
-

Differential Calculator

-

Evaluates derivatives and mathematical functions.

- -
-
-
-
-

Disarium Number Calculator

-

Checks the number is disarium or not and finds disarium numbers in a range.

- -
-
-
-
-

Discount Calculator

-

Unlock Savings with Precision: Your Ultimate Discount Calculator.

- -
-
-
-
-

Download Time Calculator

-

Calculates the required time for downloading as per different system configurations.

- -
-
-
-
-

EMI Calculator

-

Calculates The EMI based on loan amount, interest rate and tenure.

- -
-
-
-
-

Electricity Bill Calculator

-

Calculates electricity costs based on user-supplied units, time, and cost parameters.

- -
-
-
-
-

Ellipse And Hyperbola Calculator

-

Calculates Area and Perimeter for Ellipse and Hyperbola.

- -
-
-
-
-

Environmental Calculator

-

Estimates the annual energy and water consumption.

- -
-
-
-
-

Equivalent Resistance Calculator

-

Calculates the Equivalent Resistance of the Series and Parallel Configuration.

- -
-
-
-
-

Expenditure And Savings Calculator

-

Calculates the Savings from your income and expenditure.

- -
-
-
-
-

Exponent Calculator

-

Takes two numbers X and Y and then calculate XY.

- -
-
-
-
-

Factorial Calculator

-

Calculates the factorial of any large number instantly.

- -
-
-
-
-

Fibonacci Calculator

-

Calculates the Nth number from Fibonacci Sequence.

- -
-
-
-
-

Fuel Cost Calculator

-

Calculates the cost of fuel based on fuel efficiency and distance travelled.

- -
-
-
-
-

Fuel Efficiency Calculator

-

Calculates the efficiency of a vehicle.

- -
-
-
-
-

GCD Calculator

-

Calculates Greatest Common Divisor of Two values or multiple values.

- -
-
-
-
-

GPA Calculator

-

Calculates SGPA and CGPA on the basis of credits and grades.

- -
-
-
-
-

GST Calculator

-

Calculates the Goods and Service tax of any product in rupees and dollars.

- -
-
-
-
-

General Root Calculator

-

Calculates the nth root of a given number upto n precision.

- -
-
-
-
-

Geometric Progression Calculator

-

Calculates nth Term and sum of n Terms present in an Geometric Sequence.

- -
-
-
-
-

Grade Calculator

-

Calculates the grade based on marks entered.

- -
-
-
-
-

Graphing Calculator

-

Calculator which includes a graphical display to visualize functions.

- -
-
-
-
-

Happy Number Calculator

-

Check if a number is Happy or not and finds happy number in a range.

- -
-
-
-
-

Harmonic Progression Calculator

-

Calculates the nth term of Harmonic Progression series.

- -
-
-
-
-

Heart Rate Calculator

-

Calculates the heart rate monitors.

- -
-
-
-
-

Home Renovation Budget Calculator

-

Calculates total budget for home renovation.

- -
-
-
-
-

Income Tax Calculator

-

Calculates tax liability based on user input annual income.

- -
-
-
-
-

Infix Prefix Postfix Calculator

-

Converts between infix, prefix and postfix expressions.

- -
-
-
-
-

Intelligence Calculator

-

Shows the intelligence using his/her IQ.

- -
-
-
-
-

Investment Risk Tolerance Calculator

-

Calculates the risk in Investment on the basis of some input parameters.

- -
-
-
-
-

LCM Calculator

-

Calculates LCM of multiple numbers.

- -
-
-
-
-

Length Calculator

-

Calculates the length conversion between two specified units.

- -
-
-
-
-

Life Insurance Needs Calculator

-

Calculates the amount we need in Life Insurance.

- -
-
-
-
-

Linear Equation Calculator

-

Calculates values of variables from linear equation in two variables.

- -
-
-
-
-

Loan Amount Calculator

-

Calculator that calculates the amount of money to pay as compound interest.

- -
-
-
-
-

Loan Repayment Date Calculator

-

Calculates the due date of the ongoing loan.

- -
-
-
-
-

Logarithm Calculator

-

Calculates the log of the given number to any base.

- -
-
-
-
-

Love Calculator

-

Calculates a percentage score of love compatibility based on names or birthdates (mostly for fun).

- -
-
-
-
-

Mass Calculator

-

Calculates the Mass conversion between two specified units.

- -
-
-
-
-

Matrix Calculator

-

Your key to matrix operations!

- -
-
-
-
-

Molecular Weight Calculator

-

Computes the total atomic weights of elements in a given chemical formula

- -
-
-
-
-

Mortgage Refinance Calculator

-

It allows users to compare old and new loan terms by inputting relevant information.

- -
-
-
-
-

Multiplication Table Calculator

-

Calculates the multiplication table of any number.

- - -
-
-
-
-

NPV Calculator

-

Calculates the Net Present Value based on initial investment, the discount rate, and the yearly cash flows.

- -
-
-
-
-

Neon Number Calculator

-

Checks the number is neon or not and finds neon numbers in a range.

- -
-
-
-
-

Net Salary Calculator

-

Calculates the actual take-home pay from your Cost to Company (CTC).

- -
-
-
-
-

Net Worth Calculator

-

Calculates the net worth by taking our assets and liabilities.

- -
-
-
-
-

Next Birthday Calculator

-

Calculates the days remaining until the next birthday.

- -
-
-
-
-

Number Of Days Calculator

-

Calculates the number of days between two specified dates.

- -
-
-
-
-

Number System Calculator

-

Converts binary to decimal, octal, hexadecimal and vice versa.

- -
-
-
-
-

Palindrome Calculator

-

Checks if an entered number or string is Palindrome or not.

- -
-
-
-
-

Percentage Calculator

-

Calculates the value percentage of any given number.

- -
-
-
-
-

Percentage Fraction Calculator

-

Converts given Percentage to Fraction and vice-versa with detailed solution.

- -
-
-
-
-

Perfect Number Calculator

-

Check for a number to be perfect or not.

- -
-
-
-
-

Permutation Combination Calculator

-

Calculates nPr and nCr after taking inputs as n and r.

- -
-
-
-
-

Pet Age Calculator

-

Calculates a pet's age in human years.

- -
-
-
-
-

Population Density Calculator

-

Calculates the density of the population in a specific area.

- -
-
-
-
-

Power Calculator

-

Calculates power between different units.

- -
-
-
-
-

Pregnancy Due Date Calculator

-

Designed to estimate the due date for a pregnant woman based on the first day of her last menstrual period.

- -
-
-
-
-

Pressure Calculator

-

Calculates the Pressure conversion between two specified units.

- -
-
-
-
-

Prime Factorization Calculator

-

Calculates the prime factors of the given number.

- -
-
-
-
-

Probability Calculator

-

Calculates the Probability of different events.

- -
-
-
-
-

Projectile Motion Calculator

-

Calculates Max Height, Range, Time Of Flight of Projectile.

- -
-
-
-
-

Pronic Number Calculator

-

Checks if a number is pronic and finds pronic numbers in a range.

- -
-
-
-
-

Proportionality Calculator

-

Input three values to compute the fourth, showcasing proportionality..

- -
-
-
-
-

Pythagorean Theorem Calculator

-

Which takes two sides of right-angled triangle and gives third side.

- -
-
-
-
-

QR Code Generator Calculator

-

Generates the QR Code according to the given input.

- -
-
-
-
-

Quadratic Equation Calculator

-

Calculates the roots of a quadratic equation.

- -
-
-
-
-

Quotient And Remainder Calculator

-

Calculates the Quotient and Remainder.

- -
-
-
-
-

RPN Calculator

-

Reverse Polish Notation calculator which represents expressions by placeing the operator after the operands.

- -
-
-
-
-

Ratio Calculator

-

Which takes two numbers X and Y and then calculate X / Y.

- -
-
-
-
-

Real Estate Calculator

-

This tool allows users to input property details and obtain essential information for financial planning.

- -
-
-
-
-

Recipe Cost Calculator

-

This tool enables users to input ingredients and quantities to calculate the total cost of a recipe.

- -
-
-
-
-

Rectangular Polar Calculator

-

Converts Rectangular form into Polar form and vice versa.

- -
-
-
-
-

Roman Numeral Calculator

-

Converts Roman Numeral form into Decimal form.

- -
-
-
-
-

Salary To Hourly Calculator

-

Calculates salary across across various timeframes simultaneously.

- -
-
-
-
-

Savings Calculator

-

Calculates the total amount we can save over a specified period by making monthly deposits at a fixed interest rate.

- -
-
-
-
-

Short URL Calculator

-

Calculates the Short URL from Long URL.

- -
-
-
-
-

Simple Interest Calculator

-

Calculates the simple interest.

- -
-
-
-
-

Sleep Calculator

-

Calculates the amount of sleep required based on age and activity level.

- -
-
-
-
-

Smith Number Calculator

-

Calculator that determines whether a given number is a Smith number or not.

- -
-
-
-
-

Speed Calculator

-

This tool allows users to convert speeds between different units.

- -
-
-
-
-

Square And Cube Calculator

-

Calculates square and cube of a number.

- -
-
-
-
-

Square Root Calculator

-

Calculates the square root of a number instantly.

- -
-
-
-
-

Statistics Calculator

-

Calculates Maximum, minimum, mean, median, mode, etc.

- -
-
-
-
-

Stress Strain Calculator

-

Computes stress and strain using force, area, and length inputs.

- -
-
-
-
-

Sunrise Sunset Calculator

-

Calculates approximate about when the sun will rise and set at that particular point on the Earth's surface.

- -
-
-
-
-

Systematic Investment Plan Calculator

-

Calculator that gives an idea of the returns on their mutual fund investments made through SIP.

- -
-
-
-
-

Taxi Fare Calculator

-

Calculates the cost of taxi ride based on distance, base fare and time.

- -
-
-
-
-

Taylor Series Calculator

-

Calculates the Taylor Series expansion of a mathematical function.

- -
-
-
-
-

Temperature Calculator

-

Calculates the Temperature conversion between two specified units.

- -
-
-
-
-

Thala For A Reason Calculator

-

Whatever number you give it will return 7.

- -
-
-
-
-

Time Calculator

-

Calculates Hours, Minutes, Seconds for any entered time.

- -
-
-
-
-

Time Zone Calculator

-

Instantly find the time difference anywhere in the world.

- -
-
-
-
-

Triangle Calculator

-

Calculates the different results of a triangle based on input sides.

- -
-
-
-
-

Trigonometric Calculator

-

Calculates trigonometric functions and inverses.

- -
-
-
-
-

Trigonometric Function Graphing Calculator

-

Provides the graph as per the given function like sin, cos, tan, etc.

- -
-
-
-
-

Typing Speed Calculator

-

Calculates the typing speed in two different units.

- -
-
-
-
-

Unit Calculator

-

Converts values between different units of measurement.

- -
-
-
-
-

Vector Calculator

-

Calculates the resultant vector, dot product and angle between 2 vectors.

- -
-
-
-
-

Vowel Consonant Calculator

-

Calculates number of vowels and consonants in a given paragraph.

- -
-
-
-
-

Water Intake Calculator

-

Calculate daily water intake based on weight, activity, and weather.

- -
-
-
-
-

Weather Calculator

-

Calculates wind chill factor, dew point, heat index, reports human thermal comfort and converts temperature.

- -
-
-
-
-

Website Bandwidth Calculator

-

Calculates the bandwidth of a website based on some factors.

- -
-
-
-
-

Weight Calculator

-

Calculates weight from kgs to pounds and vice-versa.

- -
-
-
-
-

Word Count Calculator

-

Counts the Total Words, Unique words, Average word length and Exports the data in JSON.

- -
-
-
-
-

Yarn Density Calculator

-

Calculates the linear density of the yarn from unit system to another.

- -
-
-
- - - - -
- 🠕 -
- - - - - - - - - - - + + + + + + + + + 5 Band Resistance Calculator + + + +

Resistance

Calculator

+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+ + + + + \ No newline at end of file diff --git a/script.js b/script.js index 0c4cf0138..3d4ec5ad1 100644 --- a/script.js +++ b/script.js @@ -1,189 +1,84 @@ -const hamburger = document.querySelector(".hamburger"); -const navMenu = document.querySelector(".nav-menu"); - -document.addEventListener("DOMContentLoaded", function () { - setTimeout(function () { - document.querySelector("body").classList.add("loaded"); - }, 500) -}); - -hamburger.addEventListener("click", mobileMenu); -function mobileMenu() { - hamburger.classList.toggle("active"); - navMenu.classList.toggle("active"); -} - -const navLink = document.querySelectorAll(".nav-link"); -navLink.forEach(n => n.addEventListener("click", closeMenu)); - -function closeMenu() { - hamburger.classList.remove("active"); - navMenu.classList.remove("active"); -} - -const cont = document.getElementById('contributor'); -const owner = 'Rakesh9100'; -const repoName = 'CalcDiverse'; - -async function fetchContributors(pageNumber) { - const perPage = 100; - const url = `https://api.github.com/repos/${owner}/${repoName}/contributors?page=${pageNumber}&per_page=${perPage}`; - - const response = await fetch(url); - if (!response.ok) { - throw new Error(`Failed to fetch contributors data. Status code: ${response.status}`); - } - - const contributorsData = await response.json(); - return contributorsData; -} - -// Function to fetch all contributors -async function fetchAllContributors() { - let allContributors = []; - let pageNumber = 1; - - try { - while (true) { - const contributorsData = await fetchContributors(pageNumber); - if (contributorsData.length === 0) { - break; - } - allContributors = allContributors.concat(contributorsData); - pageNumber++; - } - allContributors.forEach((contributor) => { - const contributorCard = document.createElement('div'); - contributorCard.classList.add('contributor-card'); - - const avatarImg = document.createElement('img'); - avatarImg.src = contributor.avatar_url; - avatarImg.alt = `${contributor.login}'s Picture`; - - const loginLink = document.createElement('a'); - loginLink.href = contributor.html_url; - loginLink.appendChild(avatarImg); - - contributorCard.appendChild(loginLink); - - cont.appendChild(contributorCard); - }); - } catch (error) { - console.error(error); - } -} - -fetchAllContributors(); - -let calcScrollValue = () => { - let scrollProg = document.getElementById("progress"); - let pos = document.documentElement.scrollTop; - let calcHeight = - document.documentElement.scrollHeight - - document.documentElement.clientHeight; - let scrollValue = Math.round((pos * 100) / calcHeight); - if (pos > 100) { - scrollProg.style.display = "grid"; - } else { - scrollProg.style.display = "none"; - } - scrollProg.addEventListener("click", () => { - document.documentElement.scrollTop = 0; - }); - scrollProg.style.background = `conic-gradient(#0063ba ${scrollValue}%, #d499de ${scrollValue}%)`; -}; - -window.addEventListener('scroll', function () { - var scrollToTopButton = document.getElementById('progress'); - if (window.pageYOffset > 200) { - scrollToTopButton.style.display = 'block'; - } else { - scrollToTopButton.style.display = 'none'; - } -}); - -window.onscroll = calcScrollValue; -window.onload = calcScrollValue; - -// Function to filter calculators -function filterCalculators() { - var input, filter, calculators, i; - input = document.getElementById('calculatorSearch'); - filter = input.value.toUpperCase(); - calculators = document.querySelectorAll('.container .box'); - console.log(filter) - console.log(calculators) - - for (i = 0; i < calculators.length; i++) { - var calculator = calculators[i]; - var h2 = calculator.querySelector('h2'); - var calculatorName = h2.textContent || h2.innerText; - - if (calculatorName.toUpperCase().indexOf(filter) > -1) { - calculator.style.display = "flex"; - } else { - calculator.style.display = "none"; - } - } -} - -// Voice command in search bar feature -const searchBar = document.querySelector("#searchBar"); -const searchBarInput = searchBar.querySelector("input"); - -// The speech recognition interface lives on the browser’s window object -const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition; // if none exists -> undefined - -if (SpeechRecognition) { - console.log("Your Browser supports speech Recognition"); - - const recognition = new SpeechRecognition(); - recognition.continuous = true; - // recognition.lang = "en-US"; - - searchBar.insertAdjacentHTML("beforeend", ''); - // searchBarInput.style.paddingRight = "50px"; - - const micBtn = searchBar.querySelector("button"); - const micIcon = micBtn.firstElementChild; - - micBtn.addEventListener("click", micBtnClick); - function micBtnClick() { - if (micIcon.classList.contains("fa-microphone")) { // Start Voice Recognition - recognition.start(); // First time you have to allow access to mic! - } - else { - recognition.stop(); - } - } - - recognition.addEventListener("start", startSpeechRecognition); // <=> recognition.onstart = function() {...} - function startSpeechRecognition() { - micIcon.classList.remove("fa-microphone"); - micIcon.classList.add("fa-microphone-slash"); - searchFormInput.focus(); - console.log("Voice activated, SPEAK"); - } - - recognition.addEventListener("end", endSpeechRecognition); // <=> recognition.onend = function() {...} - function endSpeechRecognition() { - micIcon.classList.remove("fa-microphone-slash"); - micIcon.classList.add("fa-microphone"); - searchBarInput.focus(); - console.log("Speech recognition service disconnected"); - } - - recognition.addEventListener("result", resultOfSpeechRecognition); // <=> recognition.onresult = function(event) {...} - Fires when you stop talking - function resultOfSpeechRecognition(event) { - const current = event.resultIndex; - const transcript = event.results[current][0].transcript; - newtranscript = transcript.endsWith('.') ? transcript.slice(0, -1) : transcript; - console.log(newtranscript) - searchBarInput.value = newtranscript; - filterCalculators(); - } -} -else { - console.log("Your Browser does not support speech Recognition"); - info.textContent = "Your Browser does not support Speech Recognition"; -} +const band1 = document.getElementById('band1'); +const band2 = document.getElementById('band2'); +const band3 = document.getElementById('band3'); +const band4 = document.getElementById('band4'); +const band5 = document.getElementById('band5'); +const calcBtn = document.querySelector('.btn'); + +// Define color options for each band +const colorOptions = { + band1: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band2: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band3: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band4: ['Black', 'Brown', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Violet', 'Gray', 'White'], + band5: ['Gold', 'Silver', 'No Colour'] +}; + +function updateDropdownOptions(dropdown, options) { + dropdown.innerHTML = ''; // Clear existing options + + for (let i = 0; i < options.length; i++) { + const option = document.createElement('option'); + option.value = options[i].toLowerCase(); + option.text = options[i]; + option.style.backgroundColor = options[i]; + dropdown.appendChild(option); + } +} + +// Update dropdown options initially and on change +updateDropdownOptions(band1, colorOptions.band1); +updateDropdownOptions(band2, colorOptions.band2); +updateDropdownOptions(band3, colorOptions.band3); +updateDropdownOptions(band4, colorOptions.band4) +updateDropdownOptions(band5, colorOptions.band5); + +//adding event listener to the button to calculate the resistance +calcBtn.addEventListener('click', calcResistance); + +//resistance calculating function +function calcResistance() { + const band1Value = band1.value.toLowerCase(); + const band2Value = band2.value.toLowerCase(); + const band3Value = band3.value.toLowerCase(); + const band4Value = band4.value.toLowerCase(); + const band5Value = band5.value.toLowerCase(); + console.log(band4Value); + const resistorValues = { + black: 0, + brown: 1, + red: 2, + orange: 3, + yellow: 4, + green: 5, + blue: 6, + violet: 7, + gray: 8, + white: 9 + }; + + const resistanceValue = (resistorValues[band1Value] * 100 + resistorValues[band2Value] * 10 + resistorValues[band3Value]); + + let tolerancePercentage = ''; + + if (band5Value === 'gold') { + tolerancePercentage = '5%'; + } else if (band5Value === 'silver') { + tolerancePercentage = '10%'; + } else { + tolerancePercentage = '20%'; + } + + // Open the popup for the resistance result + const popup = document.getElementById('popup'); + const popupResult = document.getElementById('popup-result'); + popupResult.textContent = `The value of Resistance is ${resistanceValue} x 10^${resistorValues[band4Value]} Ω ± ${tolerancePercentage} tolerance`; + popup.style.display = 'flex'; +} + +// Hide the popup when OK button is clicked +const okButton = document.getElementById('closebtn'); +okButton.addEventListener('click', () => { + const popup = document.getElementById('popup'); + popup.style.display = 'none'; +}); \ No newline at end of file diff --git a/style.css b/style.css index adeb3ce5e..7c88722c6 100644 --- a/style.css +++ b/style.css @@ -1,1725 +1,130 @@ -@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap"); - -:root { - --primary: #ff1b82; - --secondary: #f4eff0; - --ternary: #1327ff; - --light: #f7f26c; - --dark: #f50414; - --track: rgb(111, 111, 139) -} - -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -/* Scrollbar Css */ - -::-webkit-scrollbar { - width: 10px; -} - -::-webkit-scrollbar-track { - background: var(--track); -} - -::-webkit-scrollbar-thumb { - background: var(--light); - border-radius: 25px; -} - -/* Preloader Css */ - -#loader-wrapper { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1001; -} - -#loader-wrapper .loader-section { - position: fixed; - top: 0; - width: 51%; - height: 100%; - background: #fff; - z-index: 1000; - -webkit-transform: translateX(0); - transform: translateX(0); -} - -#loader-wrapper .loader-section.section-left { - left: 0; -} - -#loader-wrapper .loader-section.section-right { - right: 0; -} - -#loader { - display: block; - position: relative; - left: 50%; - top: 50%; - width: 150px; - height: 150px; - margin: -75px 0 0 -75px; - border-radius: 50%; - border: 3px solid transparent; - border-top-color: #3498db; - -webkit-animation: spin 2s linear infinite; - animation: spin 2s linear infinite; - z-index: 99999; -} - -#loader:before { - content: ""; - position: absolute; - top: 5px; - left: 5px; - right: 5px; - bottom: 5px; - border-radius: 50%; - border: 3px solid transparent; - border-top-color: #e74c3c; - -webkit-animation: spin 3s linear infinite; - animation: spin 3s linear infinite; -} - -#loader:after { - content: ""; - position: absolute; - top: 15px; - left: 15px; - right: 15px; - bottom: 15px; - border-radius: 50%; - border: 3px solid transparent; - border-top-color: #f9c922; - -webkit-animation: spin 1.5s linear infinite; - animation: spin 1.5s linear infinite; -} - -.loaded #loader-wrapper { - visibility: hidden; - -webkit-transform: translateY(-100%); - transform: translateY(-100%); - -webkit-transition: all 0.3s 1s ease-out; - transition: all 0.3s 1s ease-out; -} - -.loaded #loader-wrapper .loader-section.section-left { - -webkit-transform: translateX(-100%); - transform: translateX(-100%); - -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -} - -.loaded #loader-wrapper .loader-section.section-right { - -webkit-transform: translateX(100%); - transform: translateX(100%); - -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); - transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); -} - -.loaded #loader { - opacity: 0; - -webkit-transition: all 0.3s ease-out; - transition: all 0.3s ease-out; -} - -@-webkit-keyframes spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -/* Preloader Css Ends */ - -body { - justify-content: center; - align-items: center; - min-height: 100vh; - background-image: url(./assets/images/background.jpg); - background-attachment: fixed; - background-position: center; - background-repeat: no-repeat; - background-size: cover; - font-size: 1.4rem; -} - -html { - font-size: 62.5%; -} - -body, -html { - font-family: 'Montserrat', sans-serif; - font-weight: 300; - line-height: 1.4; - scroll-behavior: smooth; -} - -header { - position: sticky; - top: 0; - z-index: 100; -} - -.navbar { - font-family: 'Poppins', sans-serif; - background-color: rgb(9, 5, 40); - margin: 0 auto; - background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(46, 151, 192, 0.8)); - backdrop-filter: blur(50px); - -webkit-backdrop-filter: blur(50px); - border: 1px solid rgba(255, 255, 255, 0.18); - box-shadow: 0 20px 16px 0 rgba(0, 0, 0, 0.37); -} - -.navbar a { - text-decoration: none; - font-size: 2rem; - font-weight: 700; - padding: 0.5rem 1rem; - border: 1px solid transparent; - color: var(--secondary); - transition: 0.3s ease-in-out; -} - -.image-logo { - float: left; - align-items: center; - display: flex; -} - -.nav-link:hover { - color: #ff1b82; - border-top-color: #ff1b82; - border-bottom-color: #ff1b82; -} - -nav { - display: flex; - justify-content: space-between; - align-items: center; - padding: 0.5rem; -} - -nav ul { - display: flex; - gap: 2rem; - list-style: none; -} - -.logo { - font-size: 2.3rem; - font-weight: 700; - margin-left: -10px; - font-family: Ubuntu; - color: #ffffff; - transition: color 0.3s ease-in-out; -} - -.logo:hover { - color: #b400a5; -} - -.hamburger { - display: none; -} - -.bar { - display: block; - width: 25px; - height: 3px; - margin: 5px auto; - -webkit-transition: all 0.3s ease-in-out; - transition: all 0.3s ease-in-out; - background-color: var(--secondary); -} - -/* Components Section Css */ - -section { - scroll-margin-top: 50px; - z-index: 100; -} - -.comp-section .compcontainer .logo img { - width: 250px; - margin-bottom: -25px; -} - -.comp-section .compcontainer h1, -.comp-section .compcontainer h3 { - display: flex; - flex-direction: column; - gap: 30px; - z-index: 200; -} - -.comp-section .compcontainer h1 { - font-family: Ubuntu; - text-shadow: 2px 2px 10px var(--light); - margin-top: 16px; -} - -.comp-section .compcontainer h3 { - font-family: 'Poppins', sans-serif; - color: rgb(244 239 240 / 91%); - margin-top: 2rem; - font-weight: 400; - font-size: 2.5rem; -} - -.comp-section .compcontainer a { - margin-top: 50px; -} - -.comp-section .compcontainer .started { - font-size: 20px; - font-weight: 700; - border: none; - margin-top: 21px; - padding: 10px 45px; - border-radius: 18px; - color: #ffffff; - background: var(--primary); - cursor: pointer; - transition: 0.5s ease-in-out; -} - -.comp-section .compcontainer .started:hover { - transform: scale(1.02); - background: #ff6984; -} - -.paragraph { - font-size: 2rem; - width: 85%; - text-align: center; - font-weight: 500; - margin: auto; - margin-top: 18px; - padding: 10px; - color: rgb(244 239 240 / 91%); -} - -.comp-section { - display: grid; - color: var(--secondary); - justify-content: center; - align-items: center; - text-align: center; - z-index: 4; -} - -.comp-section h1 { - font-size: 65px; -} - -.comp-section h3 { - font-size: 32px; -} - -.container { - display: flex; - justify-content: center; - align-items: center; - flex-wrap: wrap; - padding: 40px 0; -} - -.container .box { - position: relative; - width: 320px; - height: 400px; - display: flex; - justify-content: center; - align-items: center; - margin: 40px 30px; - transition: 0.5s; -} - -.container .box::before { - content: ""; - position: absolute; - top: 0; - left: 50px; - width: 50%; - height: 100%; - background: #d8de07; - border-radius: 8px; - transform: skewX(15deg); - transition: 0.5s; -} - -.container .box::after { - content: ""; - position: absolute; - top: 0; - left: 50px; - width: 50%; - height: 100%; - background: #de652a; - border-radius: 8px; - transform: skewX(15deg); - transition: 0.5s; - filter: blur(30px); - transition: 0.5s; -} - -.container .box:hover:before, -.container .box:hover:after { - transform: skewX(0deg); - left: 20px; - width: calc((100% - 90px)); -} - -.container .box .content h3 { - font-size: 15px; - color: #efe0f1; - margin-top: 20px; - transition: all 0.3s; -} - -.container .box .content button { - all: unset; - width: 100px; - height: 30px; - font-size: 16px; - background: transparent; - border: none; - position: relative; - color: #f0f0f0; - cursor: pointer; - z-index: 1; - padding: 9px 14px; - display: flex; - align-items: center; - justify-content: center; - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - touch-action: manipulation; -} - -.container .box .content button::after, -.container .box .content button::before { - content: ''; - position: absolute; - bottom: 0; - right: 0; - z-index: -99999; - transition: all .4s; -} - -.container .box .content button::before { - transform: translate(0%, 0%); - width: 100%; - height: 100%; - background: #28282d; - border-radius: 10px; -} - -.container .box .content button::after { - transform: translate(10px, 10px); - width: 35px; - height: 35px; - background: #ffffff15; - backdrop-filter: blur(5px); - -webkit-backdrop-filter: blur(5px); - border-radius: 50px; -} - -.container .box .content button:hover::before { - transform: translate(5%, 20%); - width: 110%; - height: 110%; -} - -.container .box .content button:hover::after { - border-radius: 10px; - transform: translate(0, 0); - width: 100%; - height: 100%; -} - -.container .box .content button:active::after { - transition: 0s; - transform: translate(0, 5%); -} - -.container .box .content img { - float: right; - cursor: pointer; - height: 36px; - width: 36px; - font-weight: 900; - margin-right: -25px; - border-radius: 20px; - background-color: white; - color: #ffffff; - transition: .5s; - z-index: 3; -} - -.container .box .content img:hover { - color: #fff; - transform: rotateY(180deg); -} - -.container .box .content img:before { - content: ""; - position: absolute; - top: 100%; - left: 0; - width: 100%; - height: 100%; - background: #f00; - transition: .5s; - z-index: 2; -} - -.container .box .content img:hover:before { - top: 0; -} - -.container .box .content img:hover { - background-color: #e1ff00; - border: 1px solid #e1ff00; - box-shadow: 0 0 6px 2px #e1ff00; -} - -.card-footer { - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 20px; -} - -.container .box:nth-child(even)::before, -.container .box:nth-child(even)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(odd)::before, -.container .box:nth-child(odd)::after { - background: linear-gradient(315deg, #00ff88, #f200ff); -} - -.container .box:nth-child(2)::before, -.container .box:nth-child(2)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(3)::before, -.container .box:nth-child(3)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(4)::before, -.container .box:nth-child(4)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(5)::before, -.container .box:nth-child(5)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(6)::before, -.container .box:nth-child(6)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(7)::before, -.container .box:nth-child(7)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(8)::before, -.container .box:nth-child(8)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(9)::before, -.container .box:nth-child(9)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(10)::before, -.container .box:nth-child(10)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(11)::before, -.container .box:nth-child(11)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(12)::before, -.container .box:nth-child(12)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(13)::before, -.container .box:nth-child(13)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(14)::before, -.container .box:nth-child(14)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(15)::before, -.container .box:nth-child(15)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(16)::before, -.container .box:nth-child(16)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(17)::before, -.container .box:nth-child(17)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(18)::before, -.container .box:nth-child(18)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(19)::before, -.container .box:nth-child(19)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(20)::before, -.container .box:nth-child(20)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(21)::before, -.container .box:nth-child(21)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(22)::before, -.container .box:nth-child(22)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(23)::before, -.container .box:nth-child(23)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(24)::before, -.container .box:nth-child(24)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(25)::before, -.container .box:nth-child(25)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(26)::before, -.container .box:nth-child(26)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(27)::before, -.container .box:nth-child(27)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(28)::before, -.container .box:nth-child(28)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(29)::before, -.container .box:nth-child(29)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(30)::before, -.container .box:nth-child(30)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(31)::before, -.container .box:nth-child(31)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(32)::before, -.container .box:nth-child(32)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(33)::before, -.container .box:nth-child(33)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(34)::before, -.container .box:nth-child(34)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(35)::before, -.container .box:nth-child(35)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(36)::before, -.container .box:nth-child(36)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(37)::before, -.container .box:nth-child(37)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(38)::before, -.container .box:nth-child(38)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(39)::before, -.container .box:nth-child(39)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(40)::before, -.container .box:nth-child(40)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(41)::before, -.container .box:nth-child(41)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(42)::before, -.container .box:nth-child(42)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(43)::before, -.container .box:nth-child(43)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(44)::before, -.container .box:nth-child(44)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(45)::before, -.container .box:nth-child(45)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(46)::before, -.container .box:nth-child(46)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(47)::before, -.container .box:nth-child(47)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(48)::before, -.container .box:nth-child(48)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(49)::before, -.container .box:nth-child(49)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(50)::before, -.container .box:nth-child(50)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(51)::before, -.container .box:nth-child(51)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(52)::before, -.container .box:nth-child(52)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(53)::before, -.container .box:nth-child(53)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(54)::before, -.container .box:nth-child(54)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(55)::before, -.container .box:nth-child(55)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(56)::before, -.container .box:nth-child(56)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(57)::before, -.container .box:nth-child(57)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(58)::before, -.container .box:nth-child(58)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(59)::before, -.container .box:nth-child(59)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(60)::before, -.container .box:nth-child(60)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(61)::before, -.container .box:nth-child(61)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(62)::before, -.container .box:nth-child(62)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(63)::before, -.container .box:nth-child(63)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(64)::before, -.container .box:nth-child(64)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(65)::before, -.container .box:nth-child(65)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(66)::before, -.container .box:nth-child(66)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(67)::before, -.container .box:nth-child(67)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(68)::before, -.container .box:nth-child(68)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(69)::before, -.container .box:nth-child(69)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(70)::before, -.container .box:nth-child(70)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(71)::before, -.container .box:nth-child(71)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(72)::before, -.container .box:nth-child(72)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(73)::before, -.container .box:nth-child(73)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(74)::before, -.container .box:nth-child(74)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(75)::before, -.container .box:nth-child(75)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(76)::before, -.container .box:nth-child(76)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(77)::before, -.container .box:nth-child(77)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(78)::before, -.container .box:nth-child(78)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(79)::before, -.container .box:nth-child(79)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(80)::before, -.container .box:nth-child(80)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(81)::before, -.container .box:nth-child(81)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(82)::before, -.container .box:nth-child(82)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(83)::before, -.container .box:nth-child(83)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(84)::before, -.container .box:nth-child(84)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(85)::before, -.container .box:nth-child(85)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(86)::before, -.container .box:nth-child(86)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(87)::before, -.container .box:nth-child(87)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(88)::before, -.container .box:nth-child(88)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(89)::before, -.container .box:nth-child(89)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(90)::before, -.container .box:nth-child(90)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(91)::before, -.container .box:nth-child(91)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(92)::before, -.container .box:nth-child(92)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(93)::before, -.container .box:nth-child(93)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(94)::before, -.container .box:nth-child(94)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(95)::before, -.container .box:nth-child(95)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(96)::before, -.container .box:nth-child(96)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(97)::before, -.container .box:nth-child(97)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(98)::before, -.container .box:nth-child(98)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(99)::before, -.container .box:nth-child(99)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(100)::before, -.container .box:nth-child(100)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(101)::before, -.container .box:nth-child(101)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(102)::before, -.container .box:nth-child(102)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(103)::before, -.container .box:nth-child(103)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(104)::before, -.container .box:nth-child(104)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(105)::before, -.container .box:nth-child(105)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(106)::before, -.container .box:nth-child(106)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(107)::before, -.container .box:nth-child(107)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(108)::before, -.container .box:nth-child(108)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(109)::before, -.container .box:nth-child(109)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(110)::before, -.container .box:nth-child(110)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(111)::before, -.container .box:nth-child(111)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(112)::before, -.container .box:nth-child(112)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(113)::before, -.container .box:nth-child(113)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(114)::before, -.container .box:nth-child(114)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(115)::before, -.container .box:nth-child(115)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(116)::before, -.container .box:nth-child(116)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(117)::before, -.container .box:nth-child(117)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(118)::before, -.container .box:nth-child(118)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(119)::before, -.container .box:nth-child(119)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(120)::before, -.container .box:nth-child(120)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(121)::before, -.container .box:nth-child(121)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(122)::before, -.container .box:nth-child(122)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(123)::before, -.container .box:nth-child(123)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(124)::before, -.container .box:nth-child(124)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(125)::before, -.container .box:nth-child(125)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(126)::before, -.container .box:nth-child(126)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(127)::before, -.container .box:nth-child(127)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box:nth-child(128)::before, -.container .box:nth-child(128)::after { - background: linear-gradient(315deg, #03a9f4, #ff0058); -} - -.container .box:nth-child(129)::before, -.container .box:nth-child(129)::after { - background: linear-gradient(315deg, #4dff03, #00d0ff); -} - -.container .box:nth-child(130)::before, -.container .box:nth-child(130)::after { - background: linear-gradient(315deg, #2b3427, #0a596a); -} - -.container .box:nth-child(131)::before, -.container .box:nth-child(131)::after { - background: linear-gradient(315deg, #ffbc00, #ff0058); -} - -.container .box:nth-child(132)::before, -.container .box:nth-child(132)::after { - background: linear-gradient(315deg, #1e470c, #00d0ff); -} - -.container .box:nth-child(133)::before, -.container .box:nth-child(133)::after { - background: linear-gradient(315deg, #3a3f38, #6abd1b); -} - -.container .box span { - display: block; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 50; - pointer-events: none; -} - -.container .box span::before { - content: ""; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - border-radius: 8px; - background: rgba(255, 255, 255, 0.1); - backdrop-filter: blur(10px); - opacity: 0; - transition: 0.5s; - animation: animate 2s ease-in-out infinite; - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); -} - -.container .box:hover span::before { - top: -50px; - left: 50px; - width: 100px; - height: 100px; - opacity: 1; -} - -.container .box span::after { - content: ""; - position: absolute; - bottom: 0; - right: 0; - width: 100%; - height: 100%; - border-radius: 8px; - background: rgba(255, 255, 255, 0.1); - backdrop-filter: blur(10px); - opacity: 0; - transition: 0.5s; - animation: animate 2s ease-in-out infinite; - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); - animation-delay: -1s; -} - -.container .box:hover span::after { - bottom: -50px; - right: 50px; - width: 100px; - height: 100px; - opacity: 1; -} - -@keyframes animate { - - 0%, - 100% { - transform: translateY(10px); - } - - 50% { - transform: translateY(-10px); - } -} - -.container .box .content { - position: relative; - left: 0; - padding: 20px 40px; - background: rgba(255, 255, 255, 0.05); - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); - border-radius: 8px; - backdrop-filter: blur(10px); - z-index: 1; - transition: 0.5s; - color: #fff; -} - -.container .box:hover .content { - left: -25px; - padding: 60px 40px; -} - -.container .box .content h2 { - font-size: 2em; - color: #fff; - margin-bottom: 10px; - text-align: center; -} - -.container .box .content p { - font-size: 1.1em; - margin-bottom: 10px; - line-height: 1.4em; -} - -.container .box .content a { - display: inline-block; - font-size: 1.1em; - color: #f7dafb; - padding: 10px; - border-radius: 4px; - text-decoration: none; - font-weight: 700; - margin-top: 5px; -} - -/* Contributors Styling */ - -.contributors { - margin: 0; - padding: 0; - padding-bottom: 50px; -} - -.contributors h1 { - text-align: center; - color: #cb73d8; - font-size: 4rem; - margin-bottom: 50px; -} - -.contributors h1:hover { - text-decoration: underline; -} - -#contributor { - margin: 0; - padding: 0; - display: flex; - flex-wrap: wrap; - justify-content: center; -} - -.contributor-card { - width: 65px; - height: 65px; - clip-path: polygon(50% 0%, 91% 25%, 91% 75%, 50% 100%, 9% 75%, 9% 25%); - margin: 5px; - transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; -} - -.contributor-card:hover { - transform: scale(1.35); - opacity: 0.85; -} - -.contributor-card img { - width: 100%; - height: 100%; - object-fit: cover; -} - -.contributor-card:nth-child(4n+1), -.contributor-card:nth-child(4n+3) { - margin-top: -4px; -} - -/* Contributors Styling Ends */ - -/* Progress Bar */ - -#progress { - position: fixed; - bottom: 20px; - right: 10px; - height: 50px; - width: 50px; - z-index: 10; - display: none; - place-items: center; - border-radius: 50%; - transition: opacity 0.3s, background-color 0.3s; - box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .3), -4px -4px 6px 0 rgba(116, 125, 136, .2), inset -4px -4px 6px 0 rgba(255, 255, 255, .2), inset 4px 4px 6px 0 rgba(0, 0, 0, .2); - cursor: pointer; -} - - -#progress-value { - display: block; - height: calc(100% - 15px); - width: calc(100% - 15px); - background-color: rgb(104, 98, 232); - background: linear-gradient(90deg, rgb(159, 157, 235) 0%, rgb(212, 153, 222) 39%, rgb(253, 199, 134) 100%); - border-radius: 50%; - display: grid; - place-items: center; - font-size: 26px; - color: black; -} - -/* Footer Section Css */ - -.footer-basic { - width: 100%; - padding: 40px 0; - background-color: rgb(9, 5, 40, 0.9); -} - -.footer-basic ul { - padding: 0; - list-style: none; - text-align: center; - font-size: 18px; - line-height: 1.6; - margin-bottom: 0; - display: flex; - justify-content: center; - align-items: center; - flex-wrap: wrap; -} - -.footer-basic li { - padding: 0 10px; -} - -.footer-basic ul a { - color: var(--light); - padding: 8px; - font-weight: 500; - border: 1px solid transparent; - text-decoration: none; - transition: 0.3s ease-in; - opacity: 0.8; -} - -.footer-basic ul a:hover { - opacity: 1; - color: var(--primary); - border-top-color: var(--primary); - border-bottom-color: var(--primary); -} - -.footer-basic .social { - text-align: center; - padding-bottom: 25px; - display: flex; - justify-content: center; - align-items: center; - flex-wrap: wrap; -} - -.social { - font-size: 3.5rem; - text-decoration: none; - margin: 0 1rem; - transition: 0.3s ease-in-out; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - gap: 2rem; -} - -.social a { - color: var(--secondary); -} - -.social a:hover { - color: var(--primary); -} - -.footer-basic .copyright { - margin-top: 15px; - text-align: center; - font-size: 13px; - color: rgb(255, 255, 255); - margin-bottom: 0; -} - -/* Sticky ScrollToTop Button */ - -.scrollToTopContainer { - position: fixed; - bottom: 0; - right: 0; - margin: 0 2rem 2rem 0; - - height: fit-content; - width: fit-content; - z-index: 100000; -} - -.scrollToTopButton { - border-radius: 100%; - height: 42px; - width: 42px; - background-color: rgba(255, 255, 255, 0.9); - - border: 0; - cursor: pointer; - box-shadow: 0px 0px 10px 1px palevioletred; -} - -.HideElement { - display: none; -} - -.trynow-button { - transition: transform .2s; -} - -.trynow-button:hover { - transform: scale(1.15); -} - -.footer-links { - transition: transform .2s; -} - -.footer-links:hover { - transform: scale(1.1); -} - -/* Search Bar Css */ - -#searchBar { - text-align: center; - border-radius: 14px; - margin: 2rem 2rem 0; - color: white; - width: 100%; -} - -#searchBar h1 { - font-family: Ubuntu; - font-size: 4rem; - text-shadow: 2px 2px 10px var(--light); - margin-top: 16px; -} - -.search-input-container { - margin-left: 8rem; - align-items: center; - display: inline; -} - -#searchBar button { - font-size: 2rem; - background: transparent; - border: 0; - color: white; - margin-left: 5px; - background-color: #ff1b82; - padding: .7rem; - width: 8rem; - border-radius: 5rem; -} - -#searchBar button:hover { - transform: scale(1.02); - background: #ff6984; -} - -#searchBar input { - font-family: 'Poppins', sans-serif; - border: 0; - padding: 1rem; - height: 4rem; - font-size: 2rem; - text-align: center; - border-radius: 2rem; - width: 40rem; - transition: all linear .2s; - font-weight: 600; -} - -#searchBar input:hover { - transform: scale(1.02); - box-shadow: -5px -5px 10px #682572; -} - -/* Media Queries */ - -@media (max-width: 1030px) { - .hero-section { - flex-direction: column; - text-align: center; - width: auto; - height: 80vh; - } -} - -@media (max-width: 925px) { - .hero-section { - flex-direction: column; - text-align: center; - width: auto; - height: 85vh; - } - - .herocontainer { - border: 1px transparent; - padding-bottom: 10px; - } -} - -@media (max-width: 786px) { - .hero-section { - flex-direction: column; - text-align: center; - width: auto; - height: 95vh; - } - - .herocontainer { - border: 1px transparent; - - padding-bottom: 10px; - } - - #mySearch { - height: 6rem; - width: 50rem; - } - - .comp-section h1 { - font-size: 55px; - } - - .footer-basic>footer>ul>li>a { - font-size: 15px; - } -} - -@media (max-width: 500px) { - .hero-section { - height: 98vh; - } - - .herocontainer { - border: 1px transparent; - padding-bottom: 10px; - } - - #mySearch { - height: 5rem; - width: 30rem; - font-size: 1.6rem; - } -} - -@media only screen and (max-width: 768px) { - .nav-menu { - position: fixed; - height: 100vh; - left: -100%; - top: 0rem; - flex-direction: column; - background-color: rgba(26, 9, 46, 0.9); - width: 100%; - border-radius: 10px; - text-align: center; - padding: auto; - transition: 0.3s; - box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); - transition: 0.5s ease-in-out; - } - - .herocontainer { - padding: 40px; - } - - .herocontainer h1 { - font-size: 400%; - padding-bottom: 40px; - } - - .herocontainer h3 { - font-size: 200%; - padding-bottom: 40px; - } - - .herocontainer p { - font-size: 120%; - text-align: center; - } - - .nav-menu.active { - left: 0; - height: 100vh; - backdrop-filter: blur(7px); - transition: 0.5s ease-in-out; - } - - .nav-item { - margin: 3.5rem 0; - font-size: 20px; - } - - nav li:hover { - border-bottom: 0.4rem var(--secondary-color) solid; - transition: 0.3s ease-in-out; - } - - .hamburger { - display: block; - cursor: pointer; - } - - .hamburger.active .bar:nth-child(2) { - opacity: 0; - } - - .hamburger.active .bar:nth-child(1) { - transform: translateY(8px) rotate(45deg); - } - - .hamburger.active .bar:nth-child(3) { - transform: translateY(-8px) rotate(-45deg); - } -} - -@media (max-width: 650px) { - #searchBar input { - width: 100%; - font-size: 1.5rem; - align-items: center; - display: flex; - } - - #searchBar button { - margin-top: 0.5em; - } +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background: rgb(244, 240, 240); + background: linear-gradient(180deg, rgba(244, 240, 240, 1) 0%, rgba(244, 118, 107, 1) 99%); + background-repeat: no-repeat; + background-size: cover; + text-align: center; + justify-content: center; + align-items: center; + height: 120vh; +} + +.title { + color: rgb(107, 30, 2); +} + +.container { + display: flex; +} + +.value_inp { + font-size: 1.2rem; + font-weight: 600; + width: 30%; + margin: auto; + padding: 3%; + background-color: aliceblue; + border-radius: 10px; + -webkit-box-shadow: -7px 0px 93px 19px rgba(0, 0, 0, 0.23); + -moz-box-shadow: -7px 0px 93px 19px rgba(0, 0, 0, 0.23); + box-shadow: -7px 0px 93px 19px rgba(0, 0, 0, 0.23); +} + +label { + display: block; + text-align: left; +} + +select { + font-weight: 650; + width: 100%; + margin: 5% 0; + border: hidden; + border-radius: 2px; + padding: 2%; +} + +.btn { + font-size: 1.3rem; + width: 40%; + border: 5px solid brown; + border-radius: 5px; + font-weight: 600; +} + + +.popup { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.6); + z-index: 999; +} + +.popup-content { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background-color: white; + padding: 20px; + border-radius: 10px; +} + +#closebtn { + margin-top: 10px; + width: 40%; + border: 5px solid brown; +} + + +@media only screen and (max-width: 786px) { + body { + font-size: 14px; + /* height: auto; */ + overflow-y: hidden; + margin-top: 10%; + } + + .title { + padding-bottom: 11%; + } + + .container { + flex-wrap: wrap; + } + + .value_inp { + width: 80%; + padding: 2%; + } + + .btn { + width: 60%; + } + + select { + margin: 2% 0; + } + + .popup-content { + width: 90%; + padding: 10px; + } + + #popup-result { + font-size: 20px; + } + + #closebtn { + width: 60%; + } } \ No newline at end of file